On 6/6/06, Anthony Bigbee <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to figure out how best to throttle/regulate the launching > of workflows. I have a python apre agent that is a cron engine-level > service. It has the potential of launching workflows faster than the > java apre agent can finish them. One approach I am trying is to have > the python apre agent query the store associated with the first apre > participant in a workflow sequence. If that store items size is > larger than N, no workflow is launched. So my question is: if an > apre agent is executing use(), will work items stack up in its store > until use() completes if the agent is a 'once' type?
Hi Anthony, seems like the sf.net mailing list finally woke up. Here is my yesterday's reply : (trying to keep some consistency within the mailing list thread so that further readers may find help) ---8<--- Hi Anthony, well, agents do not have stores associated with them... Maybe your launching agent/service could keep a count of the flows it launched in within the last 30 secs and pause itself until that count, having reached a limit, drops to zero. I hope this will help... --->8--- And you replied : ---8<--- Yes, thank you. I must have mistaken a role in worklist-configuration.xml for an agent name. The launch flow count concept sounds like a reasonable one. I'm also trying to imagine how to use the stores and workitems in the stores 'manually' via WorkSession. methods/functions [note 1] in concert with workitems as delivered to use(), but it seems like managing two sets of workitems would be a little complicated. Tony --->8--- Best regards, -- John Mettraux -///- http://jmettraux.openwfe.org _______________________________________________ OpenWFE - Open source WorkFlow Engine OpenWFE-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openwfe-users
