@Override public void onInstantiation(DefaultParticipantEditorModel watchedModel, CollaborationBean modelToBind) { this.participant = new ParticipantBean(); this.initialized = false; }
@Override public Set<IDiagramElement> getChildrenDIModels() { HashSet<IDiagramElement> children = new HashSet<IDiagramElement>(); BPMNShape p1Shape = GWT.create(BPMNShape.class); p1Shape.setParticipantBandKind(ParticipantBandKind.top_initiating); p1Shape.setY(1); p1Shape.setChoreographyActivityShape((IBPMNShape) getDiagramElement()); ParticipantBean p1Bean = new ParticipantBean(); p1Shape.setModelElement(p1Bean); BPMNShape p2Shape = GWT.create(BPMNShape.class); p2Shape.setParticipantBandKind(ParticipantBandKind.bottom_non_initiating); p2Shape.setY(getMiddle()+1); p2Shape.setModelElement(new ParticipantBean()); p2Shape.setChoreographyActivityShape((IBPMNShape) getDiagramElement()); children.add(p1Shape); children.add(p2Shape); return children; }
public ParticipantBean createPool(String poolId,String poolName){ ParticipantBean result = new ParticipantBean(poolId); result.setName(poolName);
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; }
private static ParticipantBean buildUpperParticipant(DefinitionsBean globalResult) { UPPER_Participant_ID = createUniqueId(); ParticipantBean result = new ParticipantBean(UPPER_Participant_ID); result.setName("Sensor Array"); PartnerRoleBean pr = new PartnerRoleBean(createUniqueId()); pr.setName(result.getName()); pr.addParticipant(result); globalResult.addPartnerRole(pr); ProcessBean process = new ProcessBean(createUniqueId()); process.setName(result.getName().replace(" ","")+"Process"); process.setType(ProcessTypes.PUBLIC); globalResult.addProcess(process); result.setProcess(process); process.addLane(buildUpperLane(process, globalResult)); return result; }
private static ParticipantBean buildlowerParticipant(DefinitionsBean globalResult) { LOWER_Participant_ID = createUniqueId(); ParticipantBean result = new ParticipantBean(LOWER_Participant_ID); result.setName("Expert Board"); PartnerRoleBean pr = new PartnerRoleBean(createUniqueId()); pr.setName(result.getName()); pr.addParticipant(result); globalResult.addPartnerRole(pr); ProcessBean process = new ProcessBean(createUniqueId()); process.setName(result.getName().replace(" ","")+"Process"); process.setType(ProcessTypes.PUBLIC); globalResult.addProcess(process); result.setProcess(process); process.addLane(buildLowerLane(process, globalResult)); return result; }
private static ParticipantBean buildUpperParticipant(DefinitionsBean globalResult) { UPPER_Participant_ID = createUniqueId(); ParticipantBean result = new ParticipantBean(UPPER_Participant_ID); result.setName("Document initiator"); result.setDocumentation("Participant who initiates the document."); PartnerRoleBean pr = new PartnerRoleBean(createUniqueId()); pr.setName(result.getName()); pr.addParticipant(result); globalResult.addPartnerRole(pr); ProcessBean process = new ProcessBean(createUniqueId()); process.setName(result.getName().replace(" ","")+"Process"); process.setType(ProcessTypes.PUBLIC); globalResult.addProcess(process); result.setProcess(process); process.addLane(buildUpperLane(process,globalResult)); return result; }
private static ParticipantBean buildLowerParticipant(DefinitionsBean globalResult) { LOWER_Participant_ID = createUniqueId(); ParticipantBean result = new ParticipantBean(LOWER_Participant_ID); result.setName("Document Writer"); PartnerRoleBean pr = new PartnerRoleBean(createUniqueId()); pr.setName(result.getName()); pr.addParticipant(result); globalResult.addPartnerRole(pr); ProcessBean process = new ProcessBean(createUniqueId()); process.setName(result.getName().replace(" ","")+"Process"); process.setType(ProcessTypes.PUBLIC); globalResult.addProcess(process); result.setProcess(process); process.addLane(buildLowerLane1(process,globalResult)); process.addLane(buildLowerLane2(process)); return result; }
private static ParticipantBean buildlowerParticipant(DefinitionsBean globalResult) { LOWER_Participant_ID = createUniqueId(); ParticipantBean result = new ParticipantBean(LOWER_Participant_ID); result.setName("VO memberS"); PartnerRoleBean pr = new PartnerRoleBean(createUniqueId()); pr.setName(result.getName()); pr.addParticipant(result); globalResult.addPartnerRole(pr); ProcessBean process = new ProcessBean(createUniqueId()); process.setName(process.getId()); process.setType(ProcessTypes.PUBLIC); globalResult.addProcess(process); result.setProcess(process); process.addLane(buildLowerLane(process,globalResult)); return result; }
private static ParticipantBean buildUpperParticipant(DefinitionsBean globalResult) { UPPER_Participant_ID = createUniqueId(); ParticipantBean result = new ParticipantBean(UPPER_Participant_ID); result.setName("VO member (idea creator)"); // InterfaceBean itfBean = new InterfaceBean(createUniqueId()); // itfBean.setName(result.getId()+"Itf"); //// itfBean.setOperations(); // globalResult.addInterface(itfBean); // result.addInterface(itfBean); PartnerRoleBean pr = new PartnerRoleBean(createUniqueId()); pr.setName(result.getName()); pr.addParticipant(result); globalResult.addPartnerRole(pr); ProcessBean process = new ProcessBean(createUniqueId()); process.setName(process.getId()); process.setType(ProcessTypes.PUBLIC); globalResult.addProcess(process); result.setProcess(process); process.addLane(buildUpperLane(process,globalResult)); return result; }
ParticipantBean participant = new ParticipantBean(IdGenerator.createUniqueId());