Hi Tammo,

I am now trying to retrieve the Process Model by parsing the bpel file.
By process model I assume that it is the object of class
org.apache.ode.bpel.compiler.bom.Process. Or is it
org.apache.ode.bpel.o.OProcess that you were mentioning?


>From org.apache.ode.bpel.compiler.bom.Process object I get the root
activity and then the sources and targets. But both of them are empty.

In the org.apache.ode.bpel.o.OProcess object I don't see anything
helpful except for children attribute. But that also doesn't guarantee
any thing in the case of Flow. There are no traces of successor or
predecessor in those activities.

Or the process model you are referring to is something different from
either of these?

Thanks 
Dhanush 


-----Original Message-----
From: Tammo van Lessen [mailto:[email protected]] 
Sent: Thursday, May 20, 2010 2:13 PM
To: [email protected]
Subject: Re: Events Fired in a Flow activity

Hi Dhanush,

the event has a processName property, which value is the QName of the
process (name and targetNamespace of the BPEL process). Conceptually,
this information should be enough to retrieve the process model from
some kind of registry, however, I think there is no sound way to
retrieve the model from ODE's process store from the event listener's
scope. It would make a good addition to the management API though.

HTH,
  Tammo

On 20.05.2010 08:23, Dhanush Gopinath wrote:
> Hi Tammo,
> 
> I just realized that in the event we get from the event listener there
> is no way to get the process model.
> 
> Please advise if there a way.
> 
> Regards
> Dhanush
> -----Original Message-----
> From: Dhanush Gopinath [mailto:[email protected]] 
> Sent: Wednesday, May 19, 2010 2:39 PM
> To: [email protected]
> Subject: RE: Events Fired in a Flow activity
> 
> Hi Tammo,
> Thanks for the information. But wouldn't help if ODE fires event when
it
> addresses a <flow> activity's start just like it does for a <while> or
> <sequence>
> 
> Dhanush
> 
> -----Original Message-----
> From: Tammo van Lessen [mailto:[email protected]] 
> Sent: Wednesday, May 19, 2010 2:18 PM
> To: [email protected]
> Cc: Dhanush Gopinath
> Subject: Re: Events Fired in a Flow activity
> 
> Hi Dhanush,
> 
> since the children of flow activities are executed in parallel, there
is
> no serialized order despite the order you get with the events. The
> information about predecessors and successors of a particular activity
> is however materialized in the process model. So currently the only
way
> is to check the control flow there and correlate it with the
information
> you get with the event stream.
> 
> HTH,
>   Tammo
> 
> On 19.05.2010 09:48, Dhanush Gopinath wrote:
>> Hi,
>> I have asked this earlier, but will ask again since I didn't get any
>> response. 
>> Is there any way by which we can track a Flow Activity? Right now it
>> doesn't throw any event while the flow activity starts?
>>
>> Thanks & Regards
>> Dhanush
>>
>> -----Original Message-----
>> From: Dhanush Gopinath [mailto:[email protected]] 
>> Sent: Tuesday, February 16, 2010 9:07 PM
>> To: [email protected]
>> Subject: Events Fired in a Flow activity
>>
>> Hi,
>>
>>  
>>
>> I have implemented an Event Listener for ODE and I getting all the
>> events that are fired. However I am having an issue in tracing the
> flow
>> activity.
>>
>> I have given the snippet of the flow activity below. After getting
the
>> ActivityExecStartEvent of the Flow1 activity, I am getting the next
>> ActivityExecStartEvent and ActivityExecEndEvent event of the
> subsequent
>> activities in no particular order. My problem is I am not able to
> trace
>> the actual flow in this case. Like if AssignCS1 activity's end event
> is
>> fired then it may fire start event of Sequence4 activity and hence I
> am
>> not able to determine if Sequence4 is actually after AssignCS1 (which
> in
>> this case is wrong). Is there any way in which I can know if a start
>> event caught is the actual successor of a previous end event which
>> actually follows it in the process also?
>>
>> Please let me know how can I solve this issue, if any of you guys
have
>> come across such a situation.
>>
>>  
>>
>> <flow name="Flow1">
>>
>>                 <sequence name="Sequence3">
>>
>>                     <assign name="AssignCS1">
>>
>>                         <copy> 
>>
>>                             <!-- Some Copy -->
>>
>>                         </copy>
>>
>>                     </assign>
>>
>>                     <invoke .. some invoke ../>
>>
>>                     <assign name="AssignFlow1">
>>
>>                         <copy>
>>
>>                                                         <!-- Some
Copy
>> -->
>>
>>                         </copy>
>>
>>                     </assign>
>>
>>                     <invoke .. some invoke ../>
>>
>>  
>>
>>                 </sequence>
>>
>>                 <sequence name="Sequence4">
>>
>>                     <assign name="AssignCS2">
>>
>>                         <copy>
>>
>>                                                         <!-- Some
Copy
>> -->
>>
>>                         </copy>
>>
>>                     </assign>
>>
>>                     <invoke .. some invoke ..>
>>
>>                         <copy>
>>
>>                                                        <!-- Some Copy
>> -->
>>
>>                         </copy>
>>
>>                     </assign>
>>
>>                     <invoke name=.. some invoke ../>
>>
>>             
>>
>>                 </sequence>
>>
>>             </flow>                                
>>
>> Thanks & Regards
>>
>> Dhanush Gopinath
>>
>>  
>>
> 

-- 
Tammo van Lessen - http://www.taval.de

Reply via email to