To get variable data you can call getVariableInfo(scopeId, variableName).
The id of the scope you're interested in can be retrieved with
getInstanceInfo(instanceId). For the current activity being executed,
getEventTimeline returns an order list of events that occured on a given
instance. The last event will tell you which activity was executed last. All
the type of events generated are listed here:

http://ode.apache.org/user-guide.html#UserGuide-ODEExecutionEvents

Matthieu

On Wed, Sep 10, 2008 at 5:34 AM, <[EMAIL PROTECTED]> wrote:

>
>  Thank you much, but now I have another question: the tutorial on
> http://ode.apache.org/bpel-management-api-specification.html says many
> useful things, except one - how do I obtain variables from particular
> process instances? I would like extract a part of the variable (declared as
> wsdl:message) and return it as org.w3c.dom.Document (the data itself is
> actually an xforms model). And the last thing I would like to know (so far
> ;-) is how to find out, which activity is currently being executed and to
> which operation this activity points. I would by very thankful for any
> suggestions.
>
> Jan Michalica
>
>
>
>
>
>
>
> -----Original Message-----
> From: Matthieu Riou <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Tue, 2 Sep 2008 7:09 pm
> Subject: Re: Access Process management API from Java code
>
>
>
>
>
>
>
>
>
>
> On Tue, Sep 2, 2008 at 4:20 AM, <[EMAIL PROTECTED]> wrote:
>
> > Hello, I would like ask a very beginner's question about Process
> Management
> > API. I would like to use interfaces from org.apache.ode.bpel.pmapi
> package.
> > My intention is to use that API to obtain some variables' data from
> process
> > instances. The question is: how do I obtain a reference to objects
> > implementing those interfaces from another web application (my container
> is
> > Tomcat 6). I have understood that special web services are dedicated to
> > process management, however I would like to bypass web interface as my
> > application will always run in the same container as ODE will.
> >
>
> You could hook to org.apache.ode.axis2.ODEServer.init(...) by subclassing
> ODEServer and basically just calling super. Then use
> getInstanceManagement()
> and getProcessManagement() to access the management interfaces and do
> whatever you want with them.
>
> Cheers,
> Matthieu
>
>
>
>
>
>

Reply via email to