Package org.activiti.bpmn.model

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);
   
    BpmnXMLConverter converter = new BpmnXMLConverter();
    System.out.println(new String(converter.convertToXML(bpmnModel)));
  }
View Full Code Here


        } else {
          return new AddStartEventFeature(this);
        }
      }
    } else if (context.getNewObject() instanceof EndEvent) {
      EndEvent endEvent = (EndEvent) context.getNewObject();
      for (EventDefinition eventDefinition : endEvent.getEventDefinitions()) {
        if (eventDefinition instanceof ErrorEventDefinition) {
          return new AddErrorEndEventFeature(this);
        } else if (eventDefinition instanceof TerminateEventDefinition) {
          return new AddTerminateEndEventFeature(this);
        }
View Full Code Here

    return ELEMENT_EVENT_END;
  }
 
  @Override
  protected BaseElement convertXMLToElement(XMLStreamReader xtr) {
    EndEvent endEvent = new EndEvent();
    parseChildElements(getXMLElementName(), endEvent, xtr);
    return endEvent;
  }
View Full Code Here

   
  }

  @Override
  protected void writeAdditionalChildElements(BaseElement element, XMLStreamWriter xtw) throws Exception {
    EndEvent endEvent = (EndEvent) element;
    writeEventDefinitions(endEvent.getEventDefinitions(), xtw);
  }
View Full Code Here

   * @param original
   *          the object to clone
   * @return a clone of the original object
   */
  private static final EndEvent clone(final EndEvent original, final Diagram diagram) {
    EndEvent result = new EndEvent();
    result.setId(ActivitiUiUtil.getNextId(result.getClass(), CreateEndEventFeature.FEATURE_ID_KEY, diagram));
    return result;

  }
View Full Code Here

  public static void fillBpmnTypes(Map<Class<? extends BaseElement>, Class<? extends BaseBpmnJsonConverter>> convertersToJsonMap) {
    convertersToJsonMap.put(EndEvent.class, EndEventJsonConverter.class);
  }
 
  protected String getStencilId(FlowElement flowElement) {
    EndEvent endEvent = (EndEvent) flowElement;
    List<EventDefinition> eventDefinitions = endEvent.getEventDefinitions();
    if (eventDefinitions.size() != 1) {
      return STENCIL_EVENT_END_NONE;
    }
   
    EventDefinition eventDefinition = eventDefinitions.get(0);
View Full Code Here

      return STENCIL_EVENT_END_NONE;
    }
  }
 
  protected void convertElementToJson(ObjectNode propertiesNode, FlowElement flowElement) {
    EndEvent endEvent = (EndEvent) flowElement;
    addEventProperties(endEvent, propertiesNode);
  }
View Full Code Here

    EndEvent endEvent = (EndEvent) flowElement;
    addEventProperties(endEvent, propertiesNode);
  }
 
  protected FlowElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap) {
    EndEvent endEvent = new EndEvent();
    String stencilId = BpmnJsonConverterUtil.getStencilId(elementNode);
    if (STENCIL_EVENT_END_ERROR.equals(stencilId)) {
      convertJsonToErrorDefinition(elementNode, endEvent);
    }
    return endEvent;
View Full Code Here

TOP

Related Classes of org.activiti.bpmn.model.EndEvent

Copyright © 2018 www.massapicom. 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.