actionhandler.java

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

JAVA
34
字号
package org.jbpm.delegation;

/**
 * is the delegation-interface for the execution of process-initiated actions.
 * <p>Interactions are used to communicate with the existing infrastructure in an organisation.
 * The {@link ActionContext} allows the ActionHandler-developer to access all information
 * about the process instance.  The action is executed within the jBpm-components.  If the 
 * components are deployed on a J2EE-container, this implies that the action is executed
 * within a J2EE-container so by instantiating an javax.naming.InitialContext without 
 * constructor-parameters, the ActionHandler-developer can use all J2EE technologies to 
 * communicate with the existing infrastructure in the organisation.
 * </p>
 * 
 * <p>Examples of actions that could be done in an ActionHandler :
 * <ul>
 *   <li>DB-query of update</li>
 *   <li>Sending an email</li>
 *   <li>Calling one or more web-services</li>
 *   <li>Interacting with an ERP-package over JCA</li>
 *   <li>Sending an EDI-message</li>
 *   <li>Putting a message on an enterprise service bus</li>
 *   <li>...</li>
 * </ul>
 */
public interface ActionHandler {

  /**
   * implements the process-initiated action.
   * @param executionContext is the object that provides access to the execution-context of the 
   * process-instance for which this actionhandler is executed.
   */
  void execute( ExecutionContext executionContext );
}

⌨️ 快捷键说明

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