On 1/12/07, Gustavo Gonzalez <[EMAIL PROTECTED]> wrote:
> Hi John,
> A couple of days ago I added the method to create stores at
> runtime. I modified WorkSession and
>  RmiWorkSession, and it works fine. I also had to modify
> ApplicationContext though, because I need
> the path to the config file to register the store (I setted
> it in XmlApplicationContexBuilder). If you have
> a better idea to manage the config file, I could implement it. I could send
> you the patch if you want (when
> I have time to code it properly).

Hi Gustavo,

patches are welcome of course.

Usually OpenWFE components are services that read their configuration
from engine-configuration.xml or worklist-configuration.xml. Some of
them simply read from this "service configuration" the path to a more
specific configuration file (with their own syntax).

> I have one question now, about finished workflows. I need some way to detect
> when a process instance
> finishes (to log this instance as "closed"), and reading throug the engine
> code, I still don't know how I
> could do that. I hope you can help me with this one.

There is a History service. Out of the box, it logs process activity
to logs/history.log without much. You could provide your own
implementation of HistoryService that intercepts this termination
info.

If you need to know when a process terminates you could also place a
specific particiant/expression/subprocess at the end of your process.

These days I'd like to add some listeners to the engine for such
cases. Maybe we could work on that together. It could look like :

expressionPool.addProcessTerminatesListener(new ProcessListener()
{
    public onProcessEvent (InFlowWorkItem wi)
    {
        // ... do whatever is necessary
    }
});

It would particularly suit the embedded engine, but coud be adapted to
the standalone engine via a service (some kind of plugin then).

That just an idea for now, I'm taking the time to let the idea mature,
but once I'm set, it would be quick to implement.

(this new discussion would certainly require its own thread, feel free
to start it).


Best regards,


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

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"OpenWFE users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwfe-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to