On Mon, Feb 27, 2012 at 12:50:29PM -0800, Reed Law wrote: > > Manipulating and finding things inside a running process remains > mysterious, but your examples help point me in the right direction. I > am also looking at the source of RuoteKit quite a bit. The ruote > documentation is excellent for the most part, but I keep wishing for > more examples. > > Has anyone open sourced a recent Rails + Ruote > integration? > > I'm working on my second such app (closed source I'm > afraid) and the challenge is how to keep things synced up. For > example, a controller action can launch a process that goes to a user > participant to reply to. When the user replies, the workitem needs to > be updated, and often the associated object needs saving as well. So > I'm thinking about storing most of the object in the workitem fields > and then either using a custom participant to sync with the > ActiveModel object or doing it in the controller on each update. > Another issue is that the model needs to keep track of the workflow > and workitems somehow. The way I'm doing it right now is having the > workflow belong to the ActiveModel object and passing around workitem > ids in the views. It seems like a lot of glue and repetition so I'm > looking for ways to DRY it up.
Hello, most of the examples I have are closed source as well. I tend to avoid storing too much business info in the workitem (only storing what's useful for routing) and point at business objects (via their primary key usually). The participants do a "update the business object and then give the workitem back". I want them really separated, else I would use a state machine focusing on the business object. My workflows orchestrate the work of one or more persons around one or more business objects. Sorry for being so vague, -- John Mettraux - http://lambda.io/processi -- 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
