Hi Anthony,

On 3/22/06, Anthony Bigbee <[EMAIL PROTECTED]> wrote:
> Two more hopefully quick questions.
>
>  1.  How do I control the verbosity of the logs, particularly engine.log,
> history.log, worklist.log and webclient.log?   It looks like engine defaults
> to "DEBUG" using log4j parameters in etc/engine/logging.xml  , but
> history.log has entries that don't appear to be log4j driven.
>  I'm assuming I would modify
>
>  <category name="openwfe.org">
>          <appender-ref ref="file" />
>   </category>
>
>  to include <priority-value="ERROR"> in the case the engine itself to reduce
> verbosity.

The HistoryService has its parameters in
etc/engine/engine-configuration.xml, it's not following log4j
directives, but takes some inspiration from them.

>  2.  I'm trying to have a pyya apre agent decide whether the next
> agent/participant in a sequence has more than N workitems and have it wait
> before that agent's store drops below N.   Is there a way besides counting
> the headers from: workSession.getHeaders(storeName)
>
>  to determine how many work items an agent/store has?  I see that
> openwfe.rest.wlclient has a method called queryStore that appears to do the
> above and apply regex(es) via the 'query' parameter passed to the method.
> Finally is 'Store.query' the store that is prefered for doing queries as it
> theoretically could contain information on all workitems?

Woah, seems you're confusing things a bit (but please don't take it
has an offense, I'm only saying it in the good way...).

So somehow your AP (automatic participant) is instantiated 'once' and
may hold incoming workitems from different flows ?

Within a sequence, there's 1! (one and only one) workitem. Within a
concurrence there are as many workitems as there are children to the
concurrence expression.
That's why your question is confusing (to me at least).

About workSession.getHeaders().size() : there is also a
public int countWorkItems (String storeName)
method.

Yes, there is the queryStore() method and the "query.store". As you've
found out, the method does regex matching, but the query.store is
driven by QueryStrategies (and it's tuned in the file
etc/worklist/worklist-configuration.xml). Those QueryGetStrategies
allows you to define views on workitem stores.


Thanks for using the mailing-list facility : the email interface is so
much comfy than the small forum box on sf.net.

Best regards,

--
John Mettraux   -///-   http://jmettraux.openwfe.org


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