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();