On Sun, Aug 23, 2009 at 11:11 PM, lanfeust21<[email protected]> wrote:
>
>> I assume you're writing about 2.0 from now on.
> YES :-)
>
>> > 1) The process did not stop at the user expression
> ....
>> > i want the process to stop in the sequence at the first user
>> > participant , to wait he's input.
>> > That is not the case
>>
>> I'm sorry, could you please tell me which participant is handling "user" ?
>
> engine.register_participant :user, ::Ruote::FsParticipant do |
> workitem|
>  puts "user : #{inspect_params(workitem)}\n"
> end
>
> Yes that is quite what i expected ;)  Just it seems that Fsparticipant
> does not save themself and do not stop the process.

Hello,

my fault then. FsParticipant does not expect any block.

I've added some rdocumentation :

  
http://github.com/jmettraux/ruote/blob/ef424478e42949e3787a99bb34953acfa7c837ff/lib/ruote/part/fs_participant.rb#L32-62

FsParticipant keeps the workitem and does not reply to the engine, so
that the process instance stops :

  
http://github.com/jmettraux/ruote/blob/470594686ee5c4d7110199b86fa9adb6828977c0/test/functional/ft_20_fs_participant.rb

(have to call participant.reply to let the flow resume)


>> If you use DmParticipant, the workitem will quietly sit the the
>> database and wait for someone to "dmParticipantInstance.reply(it)"
>>
>> > 2) it is rails specific,
> ....
>
> yes if the first participant is DmParticipant, it will stop directly.
>
> i have several BlockParticipant that conditionnaly prepare the data
> before the first Fs/Ar/DmParticipant
> So i need to give the engine enough time but outside the controller
> process, in the background . I have no specific screen for them

You could try to regroup those block participant into one. Or pass the
data at launch time.

  engine.launch(process_definition, :fields => { 'initial_value' =>
'whatever' })

or using a Launchitem :

  li = Ruote::Launchitem.new(process_definition, 'initial_value' => 'whatever')
  engine.launch(li)


Best regards,

-- 
John Mettraux   -   http://jmettraux.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to