my pdef:

cursor do
      user_3 :task => 'doing user_3 stuff...'
      echo 'back from participant-implementation...'
      user_4 :task => 'doing user_4 stuff now...'
      echo 'end of Pdef reached'
end


My registration:

    @dboard.register do
      participant /^user_/, Klaus::SkilledParticipant
    end


My Participant-Impl:

class SkilledParticipant < Ruote::StorageParticipant
      include Ruote::LocalParticipant
      def on_workitem
         puts "partitcipant-name: * #{workitem.participant_name}"
         level = workitem.participant_name.match(/^user_(\d+)/)
[1].to_i
         puts "level=#{level}"

         puts "i am into local Participant now!"
         super
         reply_to_engine(workitem)
      end
   end


if i login, say my user-name and launch the process-definition, it
says:

username: user_3
skill-level: 0
registered participant...
user_3> launch
user= user_3
skill= 0
launched process instance 20120509-0739-duduwaja-nazegiku
user_3> my skill level is: 0
do level 0 jobs
do the task now!
partitcipant-name: * user_3
level=3
i am into local Participant now!
back from participant-implementation...
partitcipant-name: * user_4
level=4
i am into local Participant now!
end of Pdef reached

it seems as during launching the pdef, all code from my participant-
implementation will be executed, no matter of sequence or waiting for
the next participant.

if I now ask for workitems, it says:
workitems
  N ID                                   PARTICIPANT
TASK
  0 20120509-0740-rajobiza-gidogebu 0_0_0_4 user_3         doing
user_3 stuff...
  1 20120509-0740-rajobiza-gidogebu 0_0_0_6 user_4         doing
user_4 stuff now...
workitems: 2

I thought the participiant "user_4" can only be executed if
participant "user_3" has his work done...
like a storage-participant does.

My main question is: I do not know where to put the main logic - into
pdef or into implementation - of the participant.
Sorry, but already I Do not understand why the "launch" action
consumes the whole workflows, with all participants without waiting
for a "proceed" action or waiting for the special participant, logged
in.


greetings
Klaus

-- 
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