You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Dhanush Gopinath <dh...@altair.com> on 2010/01/20 15:29:17 UTC

ID of Process Instance Created

Hi,

 

How do I get the process instance id (or process instance info) of a
process which I started recently?

 

I know I can use the WS API listInstances by giving a filter and order
and get it, but how does it guarantee me that it is the same process
instance that I have started. I may order it with the help of started
date/time, but somebody else can start another instance of the same
process at around the same time right?

 

Is there any API to start a process and returns the id?

 

Thanks & Regards

Dhanush Gopinath

 


RE: ID of Process Instance Created

Posted by Dhanush Gopinath <dh...@altair.com>.
Thanks Łukasz

It was of much help. Can I anyway use this variable to get the process instance id using any of the ODE API's? The thing is I would like to get the process instance value in my Java code rather than in the process. I do not want to store the process instance id in any of the schema elements. Rather I would like to get it from any of the ODE API's

Thanks Again
Dhanush

-----Original Message-----
From: Łukasz Budnik [mailto:lukasz.budnik@gmail.com] 
Sent: Monday, January 25, 2010 5:41 PM
To: user@ode.apache.org
Subject: Re: ID of Process Instance Created

Hi Dhanush,

Here you can find an example of using ode namespace to retrieve
process' id: http://jee-bpel-soa.blogspot.com/2008/11/complex-types-as-inputoutput-parameters.html

cheers,
Łukasz

2010/1/25 Dhanush Gopinath <dh...@altair.com>:
> Hi,
>
> Is this variable to be used in XPATH in the process definition? Or can I use it. I saw in the test cases that it is used in process as an XPath variable.
>
> Thanks
> Dhanush
>
> -----Original Message-----
> From: Rafal Rusin [mailto:rafal.rusin@gmail.com]
> Sent: Thursday, January 21, 2010 5:37 AM
> To: user@ode.apache.org
> Subject: Re: ID of Process Instance Created
>
> You can use $ode:pid variable. You can grep for it in ODE tests.
>
> 2010/1/20 Dhanush Gopinath <dh...@altair.com>:
>> Hi,
>>
>>
>>
>> How do I get the process instance id (or process instance info) of a
>> process which I started recently?
>>
>>
>>
>> I know I can use the WS API listInstances by giving a filter and order
>> and get it, but how does it guarantee me that it is the same process
>> instance that I have started. I may order it with the help of started
>> date/time, but somebody else can start another instance of the same
>> process at around the same time right?
>>
>>
>>
>> Is there any API to start a process and returns the id?
>>
>>
>>
>> Thanks & Regards
>>
>> Dhanush Gopinath
>>
>>
>>
>>
>
>
>
> --
> Rafał Rusin
> http://rrusin.blogspot.com
> http://www.touk.pl
> http://top.touk.pl
>

Re: ID of Process Instance Created

Posted by Łukasz Budnik <lu...@gmail.com>.
Hi Dhanush,

Here you can find an example of using ode namespace to retrieve
process' id: http://jee-bpel-soa.blogspot.com/2008/11/complex-types-as-inputoutput-parameters.html

cheers,
Łukasz

2010/1/25 Dhanush Gopinath <dh...@altair.com>:
> Hi,
>
> Is this variable to be used in XPATH in the process definition? Or can I use it. I saw in the test cases that it is used in process as an XPath variable.
>
> Thanks
> Dhanush
>
> -----Original Message-----
> From: Rafal Rusin [mailto:rafal.rusin@gmail.com]
> Sent: Thursday, January 21, 2010 5:37 AM
> To: user@ode.apache.org
> Subject: Re: ID of Process Instance Created
>
> You can use $ode:pid variable. You can grep for it in ODE tests.
>
> 2010/1/20 Dhanush Gopinath <dh...@altair.com>:
>> Hi,
>>
>>
>>
>> How do I get the process instance id (or process instance info) of a
>> process which I started recently?
>>
>>
>>
>> I know I can use the WS API listInstances by giving a filter and order
>> and get it, but how does it guarantee me that it is the same process
>> instance that I have started. I may order it with the help of started
>> date/time, but somebody else can start another instance of the same
>> process at around the same time right?
>>
>>
>>
>> Is there any API to start a process and returns the id?
>>
>>
>>
>> Thanks & Regards
>>
>> Dhanush Gopinath
>>
>>
>>
>>
>
>
>
> --
> Rafał Rusin
> http://rrusin.blogspot.com
> http://www.touk.pl
> http://top.touk.pl
>

RE: ID of Process Instance Created

Posted by Dhanush Gopinath <dh...@altair.com>.
Hi,

Is this variable to be used in XPATH in the process definition? Or can I use it. I saw in the test cases that it is used in process as an XPath variable.

Thanks 
Dhanush 

-----Original Message-----
From: Rafal Rusin [mailto:rafal.rusin@gmail.com] 
Sent: Thursday, January 21, 2010 5:37 AM
To: user@ode.apache.org
Subject: Re: ID of Process Instance Created

You can use $ode:pid variable. You can grep for it in ODE tests.

2010/1/20 Dhanush Gopinath <dh...@altair.com>:
> Hi,
>
>
>
> How do I get the process instance id (or process instance info) of a
> process which I started recently?
>
>
>
> I know I can use the WS API listInstances by giving a filter and order
> and get it, but how does it guarantee me that it is the same process
> instance that I have started. I may order it with the help of started
> date/time, but somebody else can start another instance of the same
> process at around the same time right?
>
>
>
> Is there any API to start a process and returns the id?
>
>
>
> Thanks & Regards
>
> Dhanush Gopinath
>
>
>
>



-- 
Rafał Rusin
http://rrusin.blogspot.com
http://www.touk.pl
http://top.touk.pl

Re: ID of Process Instance Created

Posted by Rafal Rusin <ra...@gmail.com>.
You can use $ode:pid variable. You can grep for it in ODE tests.

2010/1/20 Dhanush Gopinath <dh...@altair.com>:
> Hi,
>
>
>
> How do I get the process instance id (or process instance info) of a
> process which I started recently?
>
>
>
> I know I can use the WS API listInstances by giving a filter and order
> and get it, but how does it guarantee me that it is the same process
> instance that I have started. I may order it with the help of started
> date/time, but somebody else can start another instance of the same
> process at around the same time right?
>
>
>
> Is there any API to start a process and returns the id?
>
>
>
> Thanks & Regards
>
> Dhanush Gopinath
>
>
>
>



-- 
Rafał Rusin
http://rrusin.blogspot.com
http://www.touk.pl
http://top.touk.pl