Examples of EndEvent


Examples of org.activiti.bpmn.model.EndEvent

    userTask.setName("The Task");
    userTask.setId("theTask");
    userTask.setAssignee("kermit");
    process.addFlowElement(userTask);

    EndEvent endEvent = new EndEvent();
    endEvent.setId("theEnd");
    process.addFlowElement(endEvent);

    process.addFlowElement(new SequenceFlow("start", "theTask"));
    process.addFlowElement(new SequenceFlow("theTask", "theEnd"));
View Full Code Here

Examples of org.activiti.bpmn.model.EndEvent

    userTask2.setName("The Second Task");
    userTask2.setId("task2");
    userTask2.setAssignee("kermit");
    process.addFlowElement(userTask2);

    EndEvent endEvent = new EndEvent();
    endEvent.setId("theEnd");
    process.addFlowElement(endEvent);

    process.addFlowElement(new SequenceFlow("start", "task1"));
    process.addFlowElement(new SequenceFlow("start", "task2"));
    process.addFlowElement(new SequenceFlow("task1", "theEnd"));
View Full Code Here

Examples of org.activiti.bpmn.model.EndEvent

  }

  @Override
  protected EndEvent createProcessArtifact(AlfrescoEndProcessStepDefinition stepDefinition,
      WorkflowDefinitionConversion conversion) {
    EndEvent endEvent = new EndEvent();
    endEvent.setId(conversion.getUniqueNumberedId(ConversionConstants.EVENT_ID_PREFIX));
   
    addFlowElement(conversion, endEvent, true);
    return endEvent;
  }
View Full Code Here

Examples of org.activiti.bpmn.model.EndEvent

    userTask.setName("The Task");
    userTask.setId("theTask");
    userTask.setAssignee("kermit");
    process.addFlowElement(userTask);
   
    EndEvent endEvent = new EndEvent();
    endEvent.setId("theEnd");
    process.addFlowElement(endEvent);
   
    process.addFlowElement(new SequenceFlow("start", "theTask"));
    process.addFlowElement(new SequenceFlow("theTask", "theEnd"));
   
View Full Code Here

Examples of org.activiti.bpmn.model.EndEvent

    userTask2.setName("The Second Task");
    userTask2.setId("task2");
    userTask2.setAssignee("kermit");
    process.addFlowElement(userTask2);
   
    EndEvent endEvent = new EndEvent();
    endEvent.setId("theEnd");
    process.addFlowElement(endEvent);
   
    process.addFlowElement(new SequenceFlow("start", "task1"));
    process.addFlowElement(new SequenceFlow("start", "task2"));
    process.addFlowElement(new SequenceFlow("task1", "theEnd"));
View Full Code Here

Examples of org.activiti.bpmn.model.EndEvent

    SequenceFlow flow1 = new SequenceFlow();
    flow1.setId("flow1");
    flow1.setSourceRef("startEvent1");
    flow1.setTargetRef("reviewTask");
    process.addFlowElement(flow1);
    EndEvent endEvent = new EndEvent();
    endEvent.setId("endEvent1");
    process.addFlowElement(endEvent);
   
    byte[] xml = new BpmnXMLConverter().convertToXML(bpmnModel);
   
    new BpmnXMLConverter().validateModel(new InputStreamSource(new ByteArrayInputStream(xml)));
View Full Code Here

Examples of org.activiti.bpmn.model.EndEvent

      if (bo == null)
        return;
     
      String errorCode = null;
      if(bo instanceof EndEvent) {
        EndEvent endEvent = (EndEvent) bo;
        if(endEvent.getEventDefinitions().get(0) != null) {
          ErrorEventDefinition errorDefinition = (ErrorEventDefinition) endEvent.getEventDefinitions().get(0);
          if(errorDefinition.getErrorCode() != null) {
            errorCode = errorDefinition.getErrorCode();
          }
        }
      }
View Full Code Here

Examples of org.activiti.bpmn.model.EndEvent

    // set name and description of the creation feature
    super(fp, "EndEvent", "Add end event");
  }

  public Object[] create(ICreateContext context) {
    EndEvent endEvent = new EndEvent();
    addObjectToContainer(context, endEvent, "End");

    // return newly created business object(s)
    return new Object[] { endEvent };
  }
View Full Code Here

Examples of org.activiti.bpmn.model.EndEvent

    // set name and description of the creation feature
    super(fp, "ErrorEndEvent", "Add error end event");
  }

  public Object[] create(ICreateContext context) {
    EndEvent endEvent = new EndEvent();
    ErrorEventDefinition eventDef = new ErrorEventDefinition();
    endEvent.getEventDefinitions().add(eventDef);
    addObjectToContainer(context, endEvent, "ErrorEnd");

    // return newly created business object(s)
    return new Object[] { endEvent };
  }
View Full Code Here

Examples of org.activiti.bpmn.model.EndEvent

          result = Activator.getImage(PluginImage.IMG_STARTEVENT_NONE);
        }
      }
     
    } else if (context instanceof EndEvent) {
      EndEvent endEvent = (EndEvent) context;
      for (EventDefinition eventDefinition : endEvent.getEventDefinitions()) {
        if (eventDefinition instanceof ErrorEventDefinition) {
          result = Activator.getImage(PluginImage.IMG_ENDEVENT_ERROR);
        } else if (eventDefinition instanceof TerminateEventDefinition) {
          result = Activator.getImage(PluginImage.IMG_ENDEVENT_TERMINATE);
        }
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.