Hi guys, I've not really got a good understanding of long running processes. I'll outline a simplified work flow, and say what I'm trying to achieve.
https://gist.github.com/43269375d4f3d82ca579 So, what I want to happen, in a simplified way, is this: An incident is created (rails) and the process above is launched. If there are any witnesses (as a flag) enter the witness sequence: Gather the names for the witnesses (all of them) Then, send emails to the witnesses with a link to complete a report (via a webform into the rails app) When all witnesses have responded to the emails, the witness reports are done To be honest, I have no idea how to structure the participants for this scenario. Do I query the storage engine? The flow would be launched with :incident_id => 1234 In the "witness report" controller action do I do something like : if (witness.count == witness_reports.count) work_items = engine.storage_participant.query(:participant => "incidents", "incident_id" => 1234, "f.params.command" => "/ gather_witness_reports") engine.storage_participant.reply(work_items.first) end I'm guessing here... I'd really appreciate some feedback on how to go about something like this. My main source of misunderstanding is, how do I correctly lookup / link to the right work item, and then, how do I correctly respond to it. These kind of broken up processes are not going into my head yet : ( Thanks for any feedback guys :D -- 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
