Examples of EventDefinition


Examples of org.eclipse.bpmn2.EventDefinition

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.EVENT_DEFINITION: {
            EventDefinition eventDefinition = (EventDefinition) theEObject;
            T result = caseEventDefinition(eventDefinition);
            if (result == null)
                result = caseRootElement(eventDefinition);
            if (result == null)
                result = caseBaseElement(eventDefinition);
View Full Code Here

Examples of org.eclipse.bpmn2.EventDefinition

    if (eventDefinitions.size() != 1) {
      // return none event as default;
      return STENCIL_EVENT_THROW_NONE;
    }
   
    EventDefinition eventDefinition = eventDefinitions.get(0);
    if (eventDefinition instanceof SignalEventDefinition) {
      return STENCIL_EVENT_THROW_SIGNAL;
    } else {
      return STENCIL_EVENT_THROW_NONE;
    }
View Full Code Here

Examples of org.eclipse.bpmn2.EventDefinition

  }
 
  protected String getStencilId(FlowElement flowElement) {
    CatchEvent event = (CatchEvent) flowElement;
    if (event.getEventDefinitions().size() > 0) {
      EventDefinition eventDefinition = event.getEventDefinitions().get(0);
      if(eventDefinition instanceof TimerEventDefinition) {
        return STENCIL_EVENT_START_TIMER;
      }else if(eventDefinition instanceof ErrorEventDefinition) {
        return STENCIL_EVENT_START_ERROR;
      }else if(eventDefinition instanceof MessageEventDefinition) {
View Full Code Here

Examples of org.eclipse.bpmn2.EventDefinition

    if (eventDefinitions.size() != 1) {
      // return timer event as default;
      return STENCIL_EVENT_BOUNDARY_TIMER;
    }
   
    EventDefinition eventDefinition = eventDefinitions.get(0);
    if (eventDefinition instanceof ErrorEventDefinition) {
      return STENCIL_EVENT_BOUNDARY_ERROR;
    } else if (eventDefinition instanceof SignalEventDefinition) {
      return STENCIL_EVENT_BOUNDARY_SIGNAL;
    } else {
View Full Code Here

Examples of org.eclipse.bpmn2.EventDefinition

      eventDefinitions=((ThrowEvent)event).getEventDefinitions();
    }

    if (eventDefinitions.size() == 1) {
   
      EventDefinition eventDefinition = eventDefinitions.get(0);
      if (eventDefinition instanceof ErrorEventDefinition) {
        ErrorEventDefinition errorDefinition = (ErrorEventDefinition) eventDefinition;
        if (StringUtils.isNotEmpty(errorDefinition.getErrorRef().getErrorCode())) {
          propertiesNode.put(PROPERTY_ERRORREF, errorDefinition.getErrorRef().getErrorCode());
        }
View Full Code Here

Examples of org.eclipse.bpmn2.EventDefinition

    if (eventDefinitions.size() != 1) {
      // return timer event as default;
      return STENCIL_EVENT_CATCH_TIMER;
    }
   
    EventDefinition eventDefinition = eventDefinitions.get(0);
    if (eventDefinition instanceof MessageEventDefinition) {
      return STENCIL_EVENT_CATCH_MESSAGE;
    } else if (eventDefinition instanceof SignalEventDefinition) {
      return STENCIL_EVENT_CATCH_SIGNAL;
    } else {
View Full Code Here

Examples of org.eclipse.bpmn2.EventDefinition

    List<EventDefinition> eventDefinitions = endEvent.getEventDefinitions();
    if (eventDefinitions.size() != 1) {
      return STENCIL_EVENT_END_NONE;
    }
   
    EventDefinition eventDefinition = eventDefinitions.get(0);
    if (eventDefinition instanceof ErrorEventDefinition) {
      return STENCIL_EVENT_END_ERROR;
    } else {
      return STENCIL_EVENT_END_NONE;
    }
View Full Code Here

Examples of org.eclipse.bpmn2.EventDefinition

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setNoneBehaviorEventRef(EventDefinition newNoneBehaviorEventRef) {
        EventDefinition oldNoneBehaviorEventRef = noneBehaviorEventRef;
        noneBehaviorEventRef = newNoneBehaviorEventRef;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__NONE_BEHAVIOR_EVENT_REF,
                    oldNoneBehaviorEventRef, noneBehaviorEventRef));
View Full Code Here

Examples of org.eclipse.bpmn2.EventDefinition

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setOneBehaviorEventRef(EventDefinition newOneBehaviorEventRef) {
        EventDefinition oldOneBehaviorEventRef = oneBehaviorEventRef;
        oneBehaviorEventRef = newOneBehaviorEventRef;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    Bpmn2Package.MULTI_INSTANCE_LOOP_CHARACTERISTICS__ONE_BEHAVIOR_EVENT_REF,
                    oldOneBehaviorEventRef, oneBehaviorEventRef));
View Full Code Here

Examples of org.eclipse.bpmn2.EventDefinition

  @Override
  public Object[] create(ICreateContext context) {
    Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());
    EventWithDefinitions event = support.create(e);
    EventDefinition definition = createEventDefinition(context);
    event.getEventDefinitions().add(definition);
    addGraphicalRepresentation(context, definition);
    return new Object[] { definition };
  }
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.