On 6/7/06, John Mettraux <[EMAIL PROTECTED] > wrote:
>  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,

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

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

1.  from openwfe.rest.wlclient import WorkSession
>>> dir (WorkSession)
['__doc__', '__init__', '__module__', '_computeUrl', '_doPost', '_get', '_getXml', '_post', '_postXml', 'close', 'delegate', 'delegateToParticipant', 'findFlowInstance', 'forwardWorkitem', 'getAndLockWorkitem', 'getHeaders', 'getStoreNames', 'getWorkitem', 'launchFlow', 'listLaunchables', 'listStores', 'queryStore', 'releaseWorkitem', 'saveWorkitem']

_______________________________________________
OpenWFE - Open source WorkFlow Engine
OpenWFE-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openwfe-users

Reply via email to