You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by bimalee salpitikorala <bi...@gmail.com> on 2006/12/27 10:18:01 UTC

[ws-ba] Is it possible to have a single acitvity with participants registered for both participant completion and coordinator completion protocols

Hi All,
There are two type of coordination types (AtomicOutcome and MixedOutcome)
with two protocols( participant completion and coordinator completion).. Is
it possible for a Business Activity of a certain type to have separate
participants registered for both the protocols. It seems impossible but we
thought it's worth discussing the possibility since it is not clearly
mentioned in the spec. Any help from somebody with past experience is more
than welcome..

Thanx,
Bimalee

Re: [ws-ba] Is it possible to have a single acitvity with participants registered for both participant completion and coordinator completion protocols

Posted by Thilina Gunarathne <cs...@gmail.com>.
Hi Hannes & Sanjaya,

Thanx a lot for the explanation .. Things are much more clear to me
now.. Now I'm ready to get my feet wet with coding for WS-BA.. I'm
sure it'll be a extiting experience  with having Sanjaya, Hannes and
Bimalee's team on board..

~Thilina

PS: BTW I'm eager to know when Hannes will be able to contribute the
source to Kandula 1..

On 12/28/06, Hannes Erven <ha...@erven.at> wrote:
> Hi Thilina,
>
>
> > What I wanted to ask is the case where some participants registered
> > for CC while others are registered for the PC ..  Hannes has already
> > answered it by telling to handle two kinds of participants
> > separately...
>
> More or less, yes. The CoordinatorCompletion protocol is actually an
> extension of the ParticipantCompletion protocol with just one additional
> message, "Complete", and the associated state changes.
>
> In a business activity with both PC and CC participants, the initiator
> needs to tell the CC participants to complete. After that, CC and PC are
> identical so there is no need to handle them separately: both start by
> reporting "Completed". The only difference is that PC participants
> decide for themselves when work is completed, while CC participants need
> to be told by the coordinator.
>
>
> The "separate handling" referred to one business partner enrolling
> multiple participants in one transaction context. While I think this is
> legal, they still look like distinct participants to the coordinator and
> are handled independently from each other.
>
>
> -hannes
>


-- 
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org


Re: [ws-ba] Is it possible to have a single acitvity with participants registered for both participant completion and coordinator completion protocols

Posted by Thilina Gunarathne <cs...@gmail.com>.
Hi Hannes & Sanjaya,

Thanx a lot for the explanation .. Things are much more clear to me
now.. Now I'm ready to get my feet wet with coding for WS-BA.. I'm
sure it'll be a extiting experience  with having Sanjaya, Hannes and
Bimalee's team on board..

~Thilina

PS: BTW I'm eager to know when Hannes will be able to contribute the
source to Kandula 1..

On 12/28/06, Hannes Erven <ha...@erven.at> wrote:
> Hi Thilina,
>
>
> > What I wanted to ask is the case where some participants registered
> > for CC while others are registered for the PC ..  Hannes has already
> > answered it by telling to handle two kinds of participants
> > separately...
>
> More or less, yes. The CoordinatorCompletion protocol is actually an
> extension of the ParticipantCompletion protocol with just one additional
> message, "Complete", and the associated state changes.
>
> In a business activity with both PC and CC participants, the initiator
> needs to tell the CC participants to complete. After that, CC and PC are
> identical so there is no need to handle them separately: both start by
> reporting "Completed". The only difference is that PC participants
> decide for themselves when work is completed, while CC participants need
> to be told by the coordinator.
>
>
> The "separate handling" referred to one business partner enrolling
> multiple participants in one transaction context. While I think this is
> legal, they still look like distinct participants to the coordinator and
> are handled independently from each other.
>
>
> -hannes
>


-- 
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org


Re: [ws-ba] Is it possible to have a single acitvity with participants registered for both participant completion and coordinator completion protocols

Posted by Hannes Erven <ha...@erven.at>.
Hi Thilina,


> What I wanted to ask is the case where some participants registered
> for CC while others are registered for the PC ..  Hannes has already
> answered it by telling to handle two kinds of participants
> separately...

More or less, yes. The CoordinatorCompletion protocol is actually an 
extension of the ParticipantCompletion protocol with just one additional 
message, "Complete", and the associated state changes.

In a business activity with both PC and CC participants, the initiator 
needs to tell the CC participants to complete. After that, CC and PC are 
identical so there is no need to handle them separately: both start by 
reporting "Completed". The only difference is that PC participants 
decide for themselves when work is completed, while CC participants need 
to be told by the coordinator.


The "separate handling" referred to one business partner enrolling 
multiple participants in one transaction context. While I think this is 
legal, they still look like distinct participants to the coordinator and 
are handled independently from each other.


-hannes

---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org


Re: [ws-ba] Is it possible to have a single acitvity with participants registered for both participant completion and coordinator completion protocols

Posted by Hannes Erven <ha...@erven.at>.
Hi Thilina,


> What I wanted to ask is the case where some participants registered
> for CC while others are registered for the PC ..  Hannes has already
> answered it by telling to handle two kinds of participants
> separately...

More or less, yes. The CoordinatorCompletion protocol is actually an 
extension of the ParticipantCompletion protocol with just one additional 
message, "Complete", and the associated state changes.

In a business activity with both PC and CC participants, the initiator 
needs to tell the CC participants to complete. After that, CC and PC are 
identical so there is no need to handle them separately: both start by 
reporting "Completed". The only difference is that PC participants 
decide for themselves when work is completed, while CC participants need 
to be told by the coordinator.


The "separate handling" referred to one business partner enrolling 
multiple participants in one transaction context. While I think this is 
legal, they still look like distinct participants to the coordinator and 
are handled independently from each other.


-hannes

---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org


Re: [ws-ba] Is it possible to have a single acitvity with participants registered for both participant completion and coordinator completion protocols

Posted by Thilina Gunarathne <cs...@gmail.com>.
Ooops. Seems I messed up with wrong wording.. I was going to ask about
protocols, but some how my mail ended up with types :(...

What I wanted to ask is the case where some participants registered
for CC while others are registered for the PC ..  Hannes has already
answered it by telling to handle two kinds of participants
separately...

In this case if we assume a atomic outcome, it seems like the volatile
& durable participants in ws-at to me...

thanx all,
~Thilina

On 12/27/06, Sanjaya Amarasekera <cr...@yahoo.com> wrote:
> Hi,
>
> The AtomicOutcome is the decesion that Coordinator makes. If all the
> participants are not Completed(Close) the outcome will be negative (i.e
> Compansate). This is more or less similar Atomic Tranaction. i.e either all
> the participants will complete(Close) or compansateThis is not specificaly
> mentioned in the Specification.
>
> The MixedOutcome stands for the scenario where each participant will/may
> receive diferent type outcomes. i.e some of them will Complete(Close) while
> others are Compansating.
>
>
> Again, DO NOT mix up coordination Types and Protocols.
>
> participants register for either ParticipantCompletion or
> CoordinatorCompletion Protocols. NOT for  AtomicOutcome or MixedOutcome
> Type. The Type of the Buisiness Activity will be decided by the Initiator.
> So the participant will just join/register for a business activity (the type
> of which is already defined by the initiator) The activity could be either
> AtomicOutcome or MixedOutcome type.
>
>
>
>
>
> Thilina Gunarathne <cs...@gmail.com> wrote:
> Hi,
> AFAIK AtomicOutcome means all the participants under that activity
> needs to come to a single resolution (eg: close or compensate)..
>
> In that case if there are some participants registered for
> MixedOutcome while others are registered for the Atomic how the final
> resolution needs to be achieved is not clear to me... Is it expected
> to treat Atomic once and Mixed once separately..
>
> thanks in advance,
> ~Thilina
>
> On 12/27/06, Sanjaya Amarasekera wrote:
> > If your question is whether the participants can join a busniness activity
> > of any coordination type (ie. AtomicOutcome and MixedOutcome) with any of
> > the coordination protocols (i.e ParticipanCompletion and
> > CoordinatorCompletion) - Yes, the participants can choose what protocol
> > they would like to use, and hence there will be participants with both
> types
> > of prtocols joining a business activity.
> >
> > pls make note that the participants can only decide the protocol that they
> > would use for the activity. The Coordinattion type is always decided by
> the
> > Initiator when the activity is intiazing.
> >
> >
> > bimalee salpitikorala wrote:
> >
> > Hi All,
> > There are two type of coordination types (AtomicOutcome and MixedOutcome)
> > with two protocols( participant completion and coordinator completion)..
> Is
> > it possible for a Business Activity of a certain type to have separate
> > participants registered for both the protocols. It seems impossible but we
> > thought it's worth discussing the possibility since it is not clearly
> > mentioned in the spec. Any help from somebody with past experience is more
> > than welcome..
> >
> > Thanx,
> > Bimalee
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
>
>
> --
> Thilina Gunarathne
> WSO2, Inc.; http://www.wso2.com/
> Home page: http://webservices.apache.org/~thilina/
> Blog: http://thilinag.blogspot.com/
>
>
>
>  __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com


-- 
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org


Re: [ws-ba] Is it possible to have a single acitvity with participants registered for both participant completion and coordinator completion protocols

Posted by Thilina Gunarathne <cs...@gmail.com>.
Ooops. Seems I messed up with wrong wording.. I was going to ask about
protocols, but some how my mail ended up with types :(...

What I wanted to ask is the case where some participants registered
for CC while others are registered for the PC ..  Hannes has already
answered it by telling to handle two kinds of participants
separately...

In this case if we assume a atomic outcome, it seems like the volatile
& durable participants in ws-at to me...

thanx all,
~Thilina

On 12/27/06, Sanjaya Amarasekera <cr...@yahoo.com> wrote:
> Hi,
>
> The AtomicOutcome is the decesion that Coordinator makes. If all the
> participants are not Completed(Close) the outcome will be negative (i.e
> Compansate). This is more or less similar Atomic Tranaction. i.e either all
> the participants will complete(Close) or compansateThis is not specificaly
> mentioned in the Specification.
>
> The MixedOutcome stands for the scenario where each participant will/may
> receive diferent type outcomes. i.e some of them will Complete(Close) while
> others are Compansating.
>
>
> Again, DO NOT mix up coordination Types and Protocols.
>
> participants register for either ParticipantCompletion or
> CoordinatorCompletion Protocols. NOT for  AtomicOutcome or MixedOutcome
> Type. The Type of the Buisiness Activity will be decided by the Initiator.
> So the participant will just join/register for a business activity (the type
> of which is already defined by the initiator) The activity could be either
> AtomicOutcome or MixedOutcome type.
>
>
>
>
>
> Thilina Gunarathne <cs...@gmail.com> wrote:
> Hi,
> AFAIK AtomicOutcome means all the participants under that activity
> needs to come to a single resolution (eg: close or compensate)..
>
> In that case if there are some participants registered for
> MixedOutcome while others are registered for the Atomic how the final
> resolution needs to be achieved is not clear to me... Is it expected
> to treat Atomic once and Mixed once separately..
>
> thanks in advance,
> ~Thilina
>
> On 12/27/06, Sanjaya Amarasekera wrote:
> > If your question is whether the participants can join a busniness activity
> > of any coordination type (ie. AtomicOutcome and MixedOutcome) with any of
> > the coordination protocols (i.e ParticipanCompletion and
> > CoordinatorCompletion) - Yes, the participants can choose what protocol
> > they would like to use, and hence there will be participants with both
> types
> > of prtocols joining a business activity.
> >
> > pls make note that the participants can only decide the protocol that they
> > would use for the activity. The Coordinattion type is always decided by
> the
> > Initiator when the activity is intiazing.
> >
> >
> > bimalee salpitikorala wrote:
> >
> > Hi All,
> > There are two type of coordination types (AtomicOutcome and MixedOutcome)
> > with two protocols( participant completion and coordinator completion)..
> Is
> > it possible for a Business Activity of a certain type to have separate
> > participants registered for both the protocols. It seems impossible but we
> > thought it's worth discussing the possibility since it is not clearly
> > mentioned in the spec. Any help from somebody with past experience is more
> > than welcome..
> >
> > Thanx,
> > Bimalee
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
>
>
> --
> Thilina Gunarathne
> WSO2, Inc.; http://www.wso2.com/
> Home page: http://webservices.apache.org/~thilina/
> Blog: http://thilinag.blogspot.com/
>
>
>
>  __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com


-- 
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org


Re: [ws-ba] Is it possible to have a single acitvity with participants registered for both participant completion and coordinator completion protocols

Posted by Hannes Erven <ha...@erven.at>.
Folks,


> AFAIK AtomicOutcome means all the participants  under that activity
> needs to come to a single resolution (eg: close or compensate)..
> 
> In that case if there are some participants registered for
> MixedOutcome while others are registered for the Atomic how the final
> resolution needs to be achieved is not clear to me...   Is it expected
> to treat Atomic once and Mixed once separately..

As was already pointed out by Sanjaya, Atomic/Mixed Outcome is chosen by 
the initiator for the whole transaction context and not on a 
per-participant basis.


In my point of view, it is perfectly legal for a participant to join a 
transaction in both the PC and the CC protocol, as long as the 
initiator's application logic can deal with it. (I can't think of a 
business case that would require that, though.) Those participants would 
look like distinct participants to the coordinator and initiator, so 
they would be distinctly handled.


-hannes

---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org


Re: [ws-ba] Is it possible to have a single acitvity with participants registered for both participant completion and coordinator completion protocols

Posted by Hannes Erven <ha...@erven.at>.
Folks,


> AFAIK AtomicOutcome means all the participants  under that activity
> needs to come to a single resolution (eg: close or compensate)..
> 
> In that case if there are some participants registered for
> MixedOutcome while others are registered for the Atomic how the final
> resolution needs to be achieved is not clear to me...   Is it expected
> to treat Atomic once and Mixed once separately..

As was already pointed out by Sanjaya, Atomic/Mixed Outcome is chosen by 
the initiator for the whole transaction context and not on a 
per-participant basis.


In my point of view, it is perfectly legal for a participant to join a 
transaction in both the PC and the CC protocol, as long as the 
initiator's application logic can deal with it. (I can't think of a 
business case that would require that, though.) Those participants would 
look like distinct participants to the coordinator and initiator, so 
they would be distinctly handled.


-hannes

---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org


Re: [ws-ba] Is it possible to have a single acitvity with participants registered for both participant completion and coordinator completion protocols

Posted by Thilina Gunarathne <cs...@gmail.com>.
Hi,
AFAIK AtomicOutcome means all the participants  under that activity
needs to come to a single resolution (eg: close or compensate)..

In that case if there are some participants registered for
MixedOutcome while others are registered for the Atomic how the final
resolution needs to be achieved is not clear to me...   Is it expected
to treat Atomic once and Mixed once separately..

thanks in advance,
~Thilina

On 12/27/06, Sanjaya Amarasekera <cr...@yahoo.com> wrote:
> If your question is whether the participants can join a busniness activity
> of any coordination type (ie. AtomicOutcome and MixedOutcome) with any of
> the coordination protocols (i.e ParticipanCompletion and
> CoordinatorCompletion) -  Yes, the participants can choose what protocol
> they would like to use, and hence there will be participants with both types
> of prtocols joining a business activity.
>
> pls make note that the participants can only decide the protocol that they
> would use for the activity. The Coordinattion type is always decided by the
> Initiator when the activity is intiazing.
>
>
> bimalee salpitikorala <bi...@gmail.com> wrote:
>
> Hi All,
> There are two type of coordination types (AtomicOutcome and MixedOutcome)
> with two protocols( participant completion and coordinator completion).. Is
> it possible for a Business Activity of a certain type to have separate
> participants registered for both the protocols. It seems impossible but we
> thought it's worth discussing the possibility since it is not clearly
> mentioned in the spec. Any help from somebody with past experience is more
> than welcome..
>
> Thanx,
> Bimalee
>
>
>  __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com


-- 
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org


Re: [ws-ba] Is it possible to have a single acitvity with participants registered for both participant completion and coordinator completion protocols

Posted by Thilina Gunarathne <cs...@gmail.com>.
Hi,
AFAIK AtomicOutcome means all the participants  under that activity
needs to come to a single resolution (eg: close or compensate)..

In that case if there are some participants registered for
MixedOutcome while others are registered for the Atomic how the final
resolution needs to be achieved is not clear to me...   Is it expected
to treat Atomic once and Mixed once separately..

thanks in advance,
~Thilina

On 12/27/06, Sanjaya Amarasekera <cr...@yahoo.com> wrote:
> If your question is whether the participants can join a busniness activity
> of any coordination type (ie. AtomicOutcome and MixedOutcome) with any of
> the coordination protocols (i.e ParticipanCompletion and
> CoordinatorCompletion) -  Yes, the participants can choose what protocol
> they would like to use, and hence there will be participants with both types
> of prtocols joining a business activity.
>
> pls make note that the participants can only decide the protocol that they
> would use for the activity. The Coordinattion type is always decided by the
> Initiator when the activity is intiazing.
>
>
> bimalee salpitikorala <bi...@gmail.com> wrote:
>
> Hi All,
> There are two type of coordination types (AtomicOutcome and MixedOutcome)
> with two protocols( participant completion and coordinator completion).. Is
> it possible for a Business Activity of a certain type to have separate
> participants registered for both the protocols. It seems impossible but we
> thought it's worth discussing the possibility since it is not clearly
> mentioned in the spec. Any help from somebody with past experience is more
> than welcome..
>
> Thanx,
> Bimalee
>
>
>  __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com


-- 
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org


Re: [ws-ba] Is it possible to have a single acitvity with participants registered for both participant completion and coordinator completion protocols

Posted by Sanjaya Amarasekera <cr...@yahoo.com>.
If your question is whether the participants can join a busniness activity of any coordination type (ie. AtomicOutcome and MixedOutcome) with any of the coordination protocols (i.e ParticipanCompletion and CoordinatorCompletion) -  Yes, the participants can choose what protocol they would like to use, and hence there will be participants with both types of prtocols joining a business activity. 
   
  pls make note that the participants can only decide the protocol that they would use for the activity. The Coordinattion type is always decided by the Initiator when the activity is intiazing. 
  
bimalee salpitikorala <bi...@gmail.com> wrote:
    Hi All,
  There are two type of coordination types (AtomicOutcome and MixedOutcome) with two protocols( participant completion and coordinator completion).. Is it possible for a Business Activity of a certain type to have separate participants registered for both the protocols. It seems impossible but we thought it's worth discussing the possibility since it is not clearly mentioned in the spec. Any help from somebody with past experience is more than welcome..  
   
  Thanx,
  Bimalee


 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [ws-ba] Is it possible to have a single acitvity with participants registered for both participant completion and coordinator completion protocols

Posted by Sanjaya Amarasekera <cr...@yahoo.com>.
If your question is whether the participants can join a busniness activity of any coordination type (ie. AtomicOutcome and MixedOutcome) with any of the coordination protocols (i.e ParticipanCompletion and CoordinatorCompletion) -  Yes, the participants can choose what protocol they would like to use, and hence there will be participants with both types of prtocols joining a business activity. 
   
  pls make note that the participants can only decide the protocol that they would use for the activity. The Coordinattion type is always decided by the Initiator when the activity is intiazing. 
  
bimalee salpitikorala <bi...@gmail.com> wrote:
    Hi All,
  There are two type of coordination types (AtomicOutcome and MixedOutcome) with two protocols( participant completion and coordinator completion).. Is it possible for a Business Activity of a certain type to have separate participants registered for both the protocols. It seems impossible but we thought it's worth discussing the possibility since it is not clearly mentioned in the spec. Any help from somebody with past experience is more than welcome..  
   
  Thanx,
  Bimalee


 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com