On Fri, Jul 20, 2012 at 03:18:49AM -0700, jordi wrote:
>
> Sorry, I didn't give enough details of my problem.
>
> I have a participant called finalized , the class is Finalized.
> In my test workflow, that looks like this:
>
>   Ruote.process_definition :name => 'normal', :revision => '0.1' do
>     sequence do
>       lower_case_string
>       trim_string
>       write_results_to_log
>       finalized
>     end
>   end
>
> Then my finalized participant is called. I put a debugger there and I am
> stopped there.
>
> If I delete the participant from this workflow, so I have this:
>
>   Ruote.process_definition :name => 'normal', :revision => '0.1' do
>     sequence do
>       lower_case_string
>       trim_string
>       write_results_to_log
>     end
>   end
>
> BUT I do this:
>     # @engine.register_participant ....
>    #
>    @engine.on_terminate = 'finalized'
>    #
>    # @engine.launch ....
>
> Then the participant is not called, debugger will not stop, etc.
> This is what I meant by not working.

Hello again,

how do you register the participant?
What does the participant code look like?

I have the impression that you are not registering the participant. You seem
to comment out the participant registration... If a participant is not
registered, it cannot get used for on_terminate and co.


> And yes, for my case I would need that the termination participan run under
> the same flow (same wfid) than the others.

If I remember correctly, the goal is to keep track of terminated workflow
instances, not to run termination participants in the same flow. Participants
called via on_terminate have a "__terminate__" field containing a hash of
info about the terminated flow. Currently the only entry in that hash is
"wfid" => "xxx". So if we stick to the initial goal and don't get distracted
by side issue, on_terminate => 'participant_name' should be OK.


Best regards,

--
John Mettraux - http://lambda.io/jmettraux

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