Hi Maarten, On 10/4/07, Maarten <[EMAIL PROTECTED]> wrote: > > Or can I add the mobile number as a workitem attribute and search in > the current workitems of all process instances while matching on the > attribute? In that case I can avoid the dependency between Participant > and Listener.
Yes, you can, it's a good idea. But in that case I would extend/encapsulate ActiveParticipant to benefit from database queries like : workitem = Field.find_by_svalue(mobile_id).workitem (because there is no facility in the engine itself for querying workitems sleeping in participant expressions). You could thus end up with a participant that emits the SMS then stores in the database the workitem and then a listener that looks up in the database for the workitem and then replies to the engine (just putting your idea in full words). Sounds like you're having fun, cheers, -- 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 -~----------~----~----~----~------~----~------~--~---
