eventtype.java

来自「一个java工作流引擎」· Java 代码 · 共 98 行

JAVA
98
字号
package org.jbpm.model.definition;

import java.io.*;
import org.jbpm.util.lang.*;

public final class EventType extends Enum implements Serializable {
  
  /**
   * is defined on a <code>process-definition</code> element and marks the start of a 
   * process instance.
   */
  public static final EventType PROCESS_START = new EventType( "process-start" ); // DEFAULT

  /**
   * is defined on a <code>process-definition</code> element and marks the end of a 
   * process instance.
   */
  public static final EventType PROCESS_END = new EventType( "process-end" );

  /**
   * is defined on a <code>state</code> element and marks the event when a execution
   * arrives at the state.
   */
  public static final EventType STATE_ENTER = new EventType( "state-enter" ); // DEFAULT

  /**
   * is defined on a <code>state</code> element and marks the event when a execution
   * arrives at the state, after the assignment has been done.
   */
  public static final EventType STATE_AFTER_ASSIGNMENT = new EventType( "state-after-assignment" );

  /**
   * is defined on a <code>state</code> element and marks the event when an external
   * trigger ( given with {@link org.jbpm.ExecutionService#endOfState(String, Long, Map, String)} ) 
   * makes the execution leave the state.
   */
  public static final EventType STATE_LEAVE = new EventType( "state-leave" );

  /**
   * is defined on a <code>decision</code> element and marks the event when execution
   * arrives in a decision, before the DecisionHandler is invoked.
   */
  public static final EventType DECISION_ENTER = new EventType( "decision-enter" ); // DEFAULT

  /**
   * is defined on a <code>decision</code> element and marks the event when execution
   * arrives in a decision, after the DecisionHandler is invoked.
   */
  public static final EventType DECISION_LEAVE = new EventType( "decision-leave" );

  /**
   * is defined on a <code>process-state</code> element and marks every event when execution
   * arrives in a process-state.
   */
  public static final EventType PROCESS_STATE_ENTER = new EventType( "process-state-enter" ); // DEFAULT

  /**
   * is defined on a <code>process-state</code> element and marks every event when the subprocess
   * finishes and the superprocess continues.
   */
  public static final EventType PROCESS_STATE_LEAVE = new EventType( "process-state-leave" );

  
  /**
   * is defined on a <code>fork</code> element and marks the event when execution
   * arrives in a fork, before any of the child-tokens are spawned.
   */
  public static final EventType FORK_ENTER = new EventType( "fork-enter" ); // DEFAULT

  /**
   * is defined on a <code>fork</code> element and marks every event when a child-token 
   * is being spawned in a fork.
   */
  public static final EventType FORK_EVERY_LEAVE = new EventType( "fork-every-leave" );

  /**
   * is defined on a <code>join</code> element and marks every event when execution
   * arrives in a join.
   */
  public static final EventType JOIN_EVERY_ENTER = new EventType( "join-every-enter" ); // DEFAULT

  /**
   * is defined on a <code>join</code> element and marks the event when synchronization
   * is done and execution continues.
   */
  public static final EventType JOIN_LEAVE = new EventType( "join-leave" );

  /**
   * is defined on a <code>transition</code> element and marks the event when execution 
   * traverses a transition.
   */
  public static final EventType TRANSITION = new EventType( "transition" ); // DEFAULT

  private EventType(String id) {
    super(id);
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?