[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [wsbpel] Semantic difference in the first <receive>
Forget to mention in my previous response. <triggeredBy> is different from <receive createInstance="yes"> in the following way. 1) <triggeredBy> is defined outside the root process activity, while <receive> is defined inside the root process activity, maybe even multiple level of nesting down. 2) <triggeredBy> is using a different element tag which makes its intention more explicit. 3) There is a <receive> nested inside the <triggerBy>, so we can easily add other ways to start a process by putting other elements under <triggerBy> Rgds, Ricky At 09:21 AM 9/13/2003 +0200, Dieter Roller wrote: >Aren't createInstance="yes" and triggeredBy just two different ways of >saying the same ? > >Cheers, > >dieter > > > >|---------+----------------------------> >| | Ricky Ho | >| | <riho@cisco.com> | >| | | >| | 09/13/2003 05:05 | >| | AM | >| | | >|---------+----------------------------> > > >---------------------------------------------------------------------------------------------------------------------------------------------| > | > | > | To: wsbpel@lists.oasis-open.org > | > | cc: > | > | Subject: [wsbpel] Semantic difference in the first > <receive> > | > | > | > | > | > > >---------------------------------------------------------------------------------------------------------------------------------------------| > > > >There is no way to pass data to "initialize the variables" of a newly >creating process instance. The only thing that you can do is to put a ><receive ... createInstance="yes"/> as the first activity so that the >process instance can receive external data for variable initialization. In > >this case, the first <receive> has very different semantics from subsequent > ><receive> and I argue that this should be model explicitly. Therefore, >rather than using the following .... > ><process> > .... > <sequence> > .... > <receive partner="buyer" portType="p1" operation >="submitOrder" >variable="var1" createInstance="yes"/> > .... > <receive ..../> > <sequence> ></process> > >We should use this ... > ><process> > ... > <triggeredBy> > <receive partner="buyer" portType="p1" variable >="var1" >operation="submitOrder"/> > </triggeredBy> > ... > <sequence> > .... > <receive ..../> > <sequence> ></process> > >Best regards, >Ricky > > >To unsubscribe from this mailing list (and be removed from the roster of >the OASIS TC), go to >http://www.oasis-open.org/apps/org/workgroup/wsbpel/members/leave_workgroup.php >.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]