Package com.founder.fix.fixflow.core.event

Examples of com.founder.fix.fixflow.core.event.BaseElementEvent


    }
   
    if(this.connectorId!=null&&!this.connectorId.equals("")){
     
      FlowNodeImpl flowNode=(FlowNodeImpl)processInstance.getProcessDefinition().getDefinitions().getElement(this.nodeId);
      BaseElementEvent baseElementEvent=flowNode.getEvent(this.eventType);
      List<ConnectorInstanceBehavior> connectors=baseElementEvent.getConnectors();
      ConnectorInstanceBehavior connectorDefinition=null;
      for (ConnectorInstanceBehavior connectorDefinitionObj : connectors) {
        if(connectorDefinitionObj.getConnectorInstanceId().equals(this.connectorInstanceId)){
          connectorDefinition=connectorDefinitionObj;
          break;
View Full Code Here


  public boolean hasEvents() {
    return ((events != null) && (events.size() > 0));
  }

  public BaseElementEvent getEvent(String eventType) {
    BaseElementEvent event = null;
    if (events != null) {
      event = (BaseElementEvent) events.get(eventType);
    }
    return event;
  }
View Full Code Here

    // calculate if the event was fired on this element or if it was a
    // propagated event
    boolean isPropagated = false;// (this.getId().equals(executionContext.getEventSource().getId()));

    // execute static actions
    BaseElementEvent event = getEvent(eventType);
    if (event != null) {
      // update the context
      executionContext.setBaseElementEvent(event);
      // execute the static actions specified in the process definition
      executeConnectors(event.getConnectors(), executionContext, isPropagated);
    }

    // execute the runtime actions
    // List<ActionHandler> runtimeActions =
    // getRuntimeActionsForEvent(executionContext, eventType);
View Full Code Here

    event.setBaseElement(this);
    return event;
  }

  public BaseElementEvent removeEvent(BaseElementEvent event) {
    BaseElementEvent removedEvent = null;
    if (event == null)
      throw new FixFlowException("不能将一个null的事件从flowNode里移除");
    if (event.getEventType() == null)
      throw new FixFlowException("不能将一个事件类型为空的事件从flowNode里移除");
    if (events != null) {
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.event.BaseElementEvent

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.