On 7/6/07, Igor Sutton <[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
> I'm trying implementing an OpenWFEru and Rails application, but I have
> no idea on how can I interact with the workflow.
>
> I need some user input at each workflow step, but I have no success
> and no idea on how to proceed about it.

Hi Igor,

you have to store the workitems for the 'user input' into some kind of
persisted participant.

The engine will put the workitems in those store participants and your
application can then interact with them, manipulating the workitems,
and then you can forward (proceed) the workitem back into its process
via the store's forward method.


You could use HashParticipant
(http://openwferu.rubyforge.org/participants.html#HashParticipant),
but it's not persisted at all (you restart your application and the
workitems are gone).

There is then the YamlParticipant
(http://openwferu.rubyforge.org/participants.html#YamlParticipant)
which behaves as the HashParticipant but the workitems are persisted.

The YamlParticipant is used in this example :
http://openwferu.rubyforge.org/examples/mano_tracker.rb
It shows how to interact with those 'store participants'.

You can consider those participants as "workitem stores" for workitems
ready for user input are stored.


There is a third participant that you might consider, it's not yet
publicly released. It stores the records in your database via
ActiveRecord. It's at
http://viewvc.rubyforge.mmmultiworks.com/cgi/viewvc.cgi/trunk/densha/?root=openwferu

The core is at 
http://viewvc.rubyforge.mmmultiworks.com/cgi/viewvc.cgi/trunk/densha/lib/openwfe/densha/?root=openwferu

There is a test case that my help you :
http://viewvc.rubyforge.mmmultiworks.com/cgi/viewvc.cgi/trunk/densha/test/with_engine_test.rb?root=openwferu&view=markup


If you have any other question, just ask. Feedback is welcome. Best regards,

-- 
John Mettraux   -///-   http://jmettraux.openwfe.org

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