On Thu, Dec 4, 2008 at 4:21 PM, Kenneth Kalmer <[EMAIL PROTECTED]> wrote:
> On Thu, Dec 4, 2008 at 2:45 PM, John Mettraux <[EMAIL PROTECTED]> wrote:
>>
>> On Thu, Dec 4, 2008 at 6:32 PM, Kenneth Kalmer <[EMAIL PROTECTED]> wrote:
>>> On Thu, Dec 4, 2008 at 11:26 AM, John Mettraux <[EMAIL PROTECTED]> wrote:
>>>
>>>> OK, let's implement "on_cancel", it makes sense. I'd like to implement
>>>> it myself, but could you "pair" with me ? I'm fresh from implementing
>>>> "on_error" and kind of a similar endeavour. Need your critical eye.
>>>>
>>>> I will start a branch for that. I have the impression it should be
>>>> over by the beginning of next week.
>>>
>>> Good idea, I might just be distracted at times but review as the
>>> changes go in. MASSIVE deadline next week (10th go live), and ruote is
>>> already getting itself baked into the release very nicely...
>>>
>>> For my current needs I'll use the #cancel callback on the custom
>>> participants, and then refine the processes as time goes on.
>>
>>
>> OK, work started on branch "on_cancel", added an initial test
>> (http://github.com/jmettraux/ruote/tree/on_cancel/test/ft_95_on_cancel.rb)
>>
>> http://github.com/jmettraux/ruote/tree/on_cancel

Seems I'm too rushed to figure how to implement this properly right
now, but have a look at
http://github.com/kennethkalmer/ruote/commit/4d4ff3f66581eaf8edf7cd9f5ebc122e09b0d924
where I added a failing test with this process:

class Test1 < OpenWFE::ProcessDefinition
    sequence :on_cancel => 'decommission' do
      alpha
    end

    process_definition :tag => 'decommission' do
      sequence do
        decommission_agent
      end
    end
  end

This would be very handy in long running processes that interact with
a lot of outside systems, but somehow I can't find the spot to get it
implemented (yet).

Ciao

-- 
Kenneth Kalmer
[EMAIL PROTECTED]
http://opensourcery.co.za

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ruote (OpenWFEru) users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to