Package org.activiti.bpmn.model

Examples of org.activiti.bpmn.model.ThrowEvent


    // set name and description of the creation feature
    super(fp, "SignalThrowingEvent", "Add signal intermediate throwing event");
  }

  public Object[] create(ICreateContext context) {
    ThrowEvent throwEvent = new ThrowEvent();
    SignalEventDefinition eventDef = new SignalEventDefinition();
    throwEvent.getEventDefinitions().add(eventDef);
    addObjectToContainer(context, throwEvent, "SignalThrowEvent");

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


        return;
      }
     
      String signalRef = null;
      if(bo instanceof ThrowEvent) {
        ThrowEvent throwEvent = (ThrowEvent) bo;
        if(throwEvent.getEventDefinitions().get(0) != null) {
          SignalEventDefinition signalDefinition = (SignalEventDefinition) throwEvent.getEventDefinitions().get(0);
          if(StringUtils.isNotEmpty(signalDefinition.getSignalRef())) {
            signalRef = signalDefinition.getSignalRef();
          }
        }
      }
View Full Code Here

    return ELEMENT_EVENT_THROW;
  }
 
  @Override
  protected BaseElement convertXMLToElement(XMLStreamReader xtr) {
    ThrowEvent throwEvent = new ThrowEvent();
    parseChildElements(getXMLElementName(), throwEvent, xtr);
    return throwEvent;
  }
View Full Code Here

   
  }

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

  public static void fillBpmnTypes(Map<Class<? extends BaseElement>, Class<? extends BaseBpmnJsonConverter>> convertersToJsonMap) {
    convertersToJsonMap.put(ThrowEvent.class, ThrowEventJsonConverter.class);
  }
 
  protected String getStencilId(FlowElement flowElement) {
    ThrowEvent throwEvent = (ThrowEvent) flowElement;
    List<EventDefinition> eventDefinitions = throwEvent.getEventDefinitions();
    if (eventDefinitions.size() != 1) {
      // return none event as default;
      return STENCIL_EVENT_THROW_NONE;
    }
   
View Full Code Here

      return STENCIL_EVENT_THROW_NONE;
    }
  }

  protected void convertElementToJson(ObjectNode propertiesNode, FlowElement flowElement) {
    ThrowEvent throwEvent = (ThrowEvent) flowElement;
    addEventProperties(throwEvent, propertiesNode);
  }
View Full Code Here

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

    // set name and description of the creation feature
    super(fp, "NoneThrowingEvent", "Add none intermediate throwing event");
  }

  public Object[] create(ICreateContext context) {
    ThrowEvent throwEvent = new ThrowEvent();
    addObjectToContainer(context, throwEvent, "NoneThrowEvent");

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

TOP

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

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.