Package org.activiti.bpmn.model

Examples of org.activiti.bpmn.model.ErrorEventDefinition


    return false;
  }

  public Object[] create(ICreateContext context) {
    BoundaryEvent boundaryEvent = new BoundaryEvent();
    ErrorEventDefinition errorEvent = new ErrorEventDefinition();
    boundaryEvent.getEventDefinitions().add(errorEvent);

    Object parentObject = getBusinessObjectForPictogramElement(context.getTargetContainer());
    ((Activity) parentObject).getBoundaryEvents().add(boundaryEvent);
    boundaryEvent.setAttachedToRef((Activity) parentObject);
View Full Code Here


    List<EventDefinition> eventDefinitions = event.getEventDefinitions();
    if (eventDefinitions.size() == 1) {
   
      EventDefinition eventDefinition = eventDefinitions.get(0);
      if (eventDefinition instanceof ErrorEventDefinition) {
        ErrorEventDefinition errorDefinition = (ErrorEventDefinition) eventDefinition;
        if (StringUtils.isNotEmpty(errorDefinition.getErrorCode())) {
          propertiesNode.put(PROPERTY_ERRORREF, errorDefinition.getErrorCode());
        }
       
      } else if (eventDefinition instanceof SignalEventDefinition) {
        SignalEventDefinition signalDefinition = (SignalEventDefinition) eventDefinition;
        if (StringUtils.isNotEmpty(signalDefinition.getSignalRef())) {
View Full Code Here

 
  protected void convertJsonToErrorDefinition(JsonNode objectNode, Event event) {
    String errorRef = getPropertyValueAsString(PROPERTY_ERRORREF, objectNode);
   
    if (StringUtils.isNotEmpty(errorRef)) {
      ErrorEventDefinition eventDefinition = new ErrorEventDefinition();
      eventDefinition.setErrorCode(errorRef);
      event.getEventDefinitions().add(eventDefinition);
    }
  }
View Full Code Here

    return (parentObject instanceof EventSubProcess);
  }

  public Object[] create(ICreateContext context) {
    StartEvent startEvent = new StartEvent();
    ErrorEventDefinition errorEvent = new ErrorEventDefinition();
    startEvent.getEventDefinitions().add(errorEvent);
    addObjectToContainer(context, startEvent, "Error start");

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

TOP

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

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.