private static CollaborationBean buildCollaboration(DefinitionsBean globalResult) { COLLABORATION_ID = createUniqueId(); CollaborationBean result = new CollaborationBean(COLLABORATION_ID); result.setName("DocumentWriting"); result.addParticipant(buildUpperParticipant(globalResult)); result.addParticipant(buildLowerParticipant(globalResult)); result.setMessageFlows(buildMessageFlows()); return result; }
private static CollaborationBean buildCollaboration(DefinitionsBean globalResult) { COLLABORATION_ID = createUniqueId(); CollaborationBean result = new CollaborationBean(COLLABORATION_ID); result.setName("AlertConfirmation"); result.addParticipant(buildUpperParticipant(globalResult)); result.addParticipant(buildlowerParticipant(globalResult)); result.setMessageFlows(buildMessageFlows()); return result; }
private static CollaborationBean buildCollaboration(DefinitionsBean globalResult) { CollaborationBean result = new CollaborationBean(createUniqueId()); COLLABORATION_ID = result.getId(); result.setName("creatingIdeaCollaboration"); result.addParticipant(buildUpperParticipant(globalResult)); result.addParticipant(buildlowerParticipant(globalResult)); result.setMessageFlows(buildMessageFlows()); return result; }
@Override public void initializeWatchedModel( DefaultParticipantEditorModel watchedModel, CollaborationBean modelToBind) { this.initialized = false; if(!modelToBind.getParticipants().isEmpty()) { for(IParticipantBean p : modelToBind.getParticipants()) { if(p.getProcess()!=null && !p.getProcess().getFlowNodes().isEmpty()) { this.participant = p; break; } } } modelToBind.addParticipant(participant); DefaultParticipants.setDefaultParticipant(modelToBind, participant); watchedModel.setName(participant.getName()); watchedModel.setDocumentation(participant.getDocumentation()); watchedModel.setInterfaces(participant.getInterfaces()); this.initialized = true; }
private static ParticipantBean adaptParticipant(Participant participant, CollaborationBean c, DefinitionsBean defs) { ParticipantBean result = new ParticipantBean(participant.getId()); result.setName(participant.getName()); result.setInterfaces(findInterfaces(defs, participant.getInterfaceRef())); result.setEndPoints(findEndPoints(defs, participant.getEndPointRef())); if(participant.getProcessRef()!=null){ IProcessBean pBean = findProcess(defs, participant.getProcessRef().getLocalPart()); result.setProcess(pBean); pBean.setDefinitionalCollaboration(c); } else { result.setProcess(null); } setDocumentationAndExtensions(result, participant); c.addParticipant(result); elements.put(result.getId(), result); return result; }
collaboration.addParticipant(defaultParticipant); collaboration.addParticipant(p);
collaboration.addParticipant(participant);