Hi Anthony,

On 3/22/06, Anthony Bigbee <[EMAIL PROTECTED]> wrote:
> I'm new to openwfe-- I can't find in the documentation direct answers to the
> following:
>
> 1.  What are the allowable values for the instantiate  parameter for each
> agent in etc/apre/agents.xml  ?  I see examples of "each-time"  and "once."
> What effects do they have?

"each-time" means that the agent is instantiated for each incoming workitem.
"once" means the agent is always the same (once loaded), data can thus
be shared among agent usages.

> 2.  Is there a way to wakeup an apre agent (pyya in this case) automatically
> with some periodicity other than using a straight cron job?    In ch09s03 of
> the docbook, I see a participant called 'preload-agent' in the workflow.
> Given that that 'preload-agent' is just a name (or does that tie in to
> invocation machinery somehow?), how can I associate a specific worflow with
> a periodically apre invoked agent?

Well, agents (automatic participants) are meant to react upon incoming
workitem, not to wake up from time to time.
But of course, you can set up a cron job (OpenWFE-style) to send a
workitem to an AP.


> I see in ch06s08 examples of a cron job in a workflow at the engine level
> (//) that uses a concurrent pattern.  But that example doesn't show how the
> workflow itself is started (assuming I want to use this approach to have a
> cron job notify the (apre?) agent.

There is a cron.xml file under etc/engine/ Its 'process definitions'
are interpreted at each engine startup. That may perhaps suit you, it
may be the equivalent of a unix crontab.

> Basically I'm trying to have an agent periodically invoked that checks a
> separate database to see if there is anything new to be done.  If so, it
> would pass on information to the next participant in the workflow --all this
> via APRE.

I think the cron.xml solution might be what you need.

http://www.openwfe.org/docbook/build/ch12s07.html


HTH, best regards,

John


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
OpenWFE - Open source WorkFlow Engine
OpenWFE-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openwfe-users

Reply via email to