Examples of Collaboration


Examples of org.eclipse.bpmn2.Collaboration

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.COLLABORATION: {
            Collaboration collaboration = (Collaboration) theEObject;
            T result = caseCollaboration(collaboration);
            if (result == null)
                result = caseRootElement(collaboration);
            if (result == null)
                result = caseBaseElement(collaboration);
View Full Code Here

Examples of org.eclipse.bpmn2.Collaboration

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setDefinitionalCollaborationRef(Collaboration newDefinitionalCollaborationRef) {
        Collaboration oldDefinitionalCollaborationRef = definitionalCollaborationRef;
        definitionalCollaborationRef = newDefinitionalCollaborationRef;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    Bpmn2Package.PROCESS__DEFINITIONAL_COLLABORATION_REF,
                    oldDefinitionalCollaborationRef, definitionalCollaborationRef));
View Full Code Here

Examples of org.eclipse.bpmn2.Collaboration

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setCalledCollaborationRef(Collaboration newCalledCollaborationRef) {
        Collaboration oldCalledCollaborationRef = calledCollaborationRef;
        calledCollaborationRef = newCalledCollaborationRef;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    Bpmn2Package.CALL_CONVERSATION__CALLED_COLLABORATION_REF,
                    oldCalledCollaborationRef, calledCollaborationRef));
View Full Code Here

Examples of org.eclipse.bpmn2.Collaboration

      if (domain != null) {
        final DocumentRoot docRoot = FACTORY.createDocumentRoot();
        final Definitions definitions = FACTORY.createDefinitions();
//        definitions.setId(EcoreUtil.generateUUID());
        ModelUtil.setID(definitions,resource);
        Collaboration collaboration = FACTORY.createCollaboration();
//        collaboration.setId(EcoreUtil.generateUUID());
        ModelUtil.setID(collaboration,resource);
        Participant participant = FACTORY.createParticipant();
//        participant.setId(EcoreUtil.generateUUID());
        ModelUtil.setID(participant,resource);
        participant.setName("Internal");
        collaboration.getParticipants().add(participant);
        definitions.getRootElements().add(collaboration);

        domain.getCommandStack().execute(new RecordingCommand(domain) {
          @Override
          protected void doExecute() {
View Full Code Here

Examples of org.eclipse.bpmn2.Collaboration

      targetContainer.getFlowElements().add(flow);
    }
  }

  public Participant addParticipant() {
    Collaboration collaboration = getOrCreateCollaboration();
    Participant participant = FACTORY.createParticipant();
//    participant.setId(EcoreUtil.generateUUID());
    ModelUtil.setID(participant,resource);
    collaboration.getParticipants().add(participant);
    return participant;
  }
View Full Code Here

Examples of org.eclipse.bpmn2.Collaboration

      if (element instanceof Collaboration) {
        return (Collaboration) element;
      }
    }
    TransactionalEditingDomain domain = TransactionUtil.getEditingDomain(resource);
    final Collaboration collaboration = FACTORY.createCollaboration();
//    collaboration.setId(EcoreUtil.generateUUID());
    ModelUtil.setID(collaboration,resource);
    if (domain != null) {
      domain.getCommandStack().execute(new RecordingCommand(domain) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.