On Mon, Apr 28, 2008 at 2:57 PM, Arjan van Bentem
<[EMAIL PROTECTED]> wrote:
>
>  By the way: I did consider using sleep, but for my process definition
>  that would imply a concurrence spanning from the very start of my
>  process all the way to the end (after some initial steps, the user is
>  to receive an email some days after starting the process, and the
>  process is to be cancelled if not completed within some specific time).

Hello,

something like :

---8<---
class ArjanProcess0 < OpenWFE::ProcessDefinition

    concurrence :count => 1 do
        # with count set to 1, when 1 branch replies
        # the other branches get cancelled

        core

        sequence do
            sleep "7d"
            send_warning
            sleep "3d"
            # exit (other branches will get cancelled)
        end
    end

    process_definition :name => "core" do
        # ...
    end
end
--->8---

?

Note that the process "core" could be another process (document)
referenced by URL or name. This this "ArjanProcess0" could become a
"pattern" and wrap any other process. See
http://openwferu.rubyforge.org/expressions.html#exp_subprocess or
http://github.com/jmettraux/ruote/tree/master/test/ft_29_httprb.rb
(where the <subprocess ref="http://process.server/definitionX.xml"; />
is used).


Cheers,

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"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