Package com.arjuna.mwlabs.wst.ba.participants

Examples of com.arjuna.mwlabs.wst.ba.participants.BusinessAgreementWithParticipantCompletionImple


      final String id = new Uid().stringForm();

      try
      {
                final ParticipantCompletionCoordinatorEngine engine = new ParticipantCompletionCoordinatorEngine(id, participantProtocolService) ;
        BusinessAgreementWithParticipantCompletionImple participant = new BusinessAgreementWithParticipantCompletionImple(
            new BusinessAgreementWithParticipantCompletionStub(engine), id);
                engine.setCoordinator(participant.participantManager()) ;

        _coordManager.enlistParticipant(participant);

        _coordManager.suspend();

        return getParticipantManager(
            BusinessActivityConstants.SERVICE_PARTICIPANT_COMPLETION_COORDINATOR,
            id);
      }
      catch (Exception ex)
      {
        throw new InvalidStateException();
      }
    }
    else
      if (BusinessActivityConstants.WSBA_SUB_PROTOCOL_COORDINATOR_COMPLETION
          .equals(protocolIdentifier))
      {
        final String id = new Uid().stringForm();
        try
        {
                    final CoordinatorCompletionCoordinatorEngine engine = new CoordinatorCompletionCoordinatorEngine(id, participantProtocolService) ;
          BusinessAgreementWithCoordinatorCompletionImple participant = new BusinessAgreementWithCoordinatorCompletionImple(
              new BusinessAgreementWithCoordinatorCompletionStub(engine), id);
                    engine.setCoordinator(participant.participantManager()) ;

          _coordManager.enlistParticipant(participant);

          _coordManager.suspend();
View Full Code Here


      final String id = new Uid().stringForm();

      try
      {
                final ParticipantCompletionCoordinatorEngine engine = new ParticipantCompletionCoordinatorEngine(id, participantProtocolService) ;
        BusinessAgreementWithParticipantCompletionImple participant = new BusinessAgreementWithParticipantCompletionImple(
            new BusinessAgreementWithParticipantCompletionStub(engine), id);
                engine.setCoordinator(participant.participantManager()) ;

        _coordManager.enlistParticipant(participant);

        _coordManager.suspend();

        return getParticipantManager(
            BusinessActivityConstants.SERVICE_PARTICIPANT_COMPLETION_COORDINATOR,
            id);
      }
      catch (Exception ex)
      {
        throw new InvalidStateException();
      }
    }
    else
      if (BusinessActivityConstants.WSBA_SUB_PROTOCOL_COORDINATOR_COMPLETION
          .equals(protocolIdentifier))
      {
        final String id = new Uid().stringForm();
        try
        {
                    final CoordinatorCompletionCoordinatorEngine engine = new CoordinatorCompletionCoordinatorEngine(id, participantProtocolService) ;
          BusinessAgreementWithCoordinatorCompletionImple participant = new BusinessAgreementWithCoordinatorCompletionImple(
              new BusinessAgreementWithCoordinatorCompletionStub(engine), id);
                    engine.setCoordinator(participant.participantManager()) ;

          _coordManager.enlistParticipant(participant);

          _coordManager.suspend();
View Full Code Here

TOP

Related Classes of com.arjuna.mwlabs.wst.ba.participants.BusinessAgreementWithParticipantCompletionImple

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.