MessageActionHandler.java :  » Project-Management » EmForce » com » sample » action » Java Open Source

Java Open Source » Project Management » EmForce 
EmForce » com » sample » action » MessageActionHandler.java
package com.sample.action;

import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;

public class MessageActionHandler implements ActionHandler {

  private static final long serialVersionUID = 1L;
  
  /**
   * The message member gets its value from the configuration in the 
   * processdefinition. The value is injected directly by the engine. 
   */
  String message;

  /**
   * A message process variable is assigned the value of the message
   * member. The process variable is created if it doesn't exist yet.
   */
  public void execute(ExecutionContext context) throws Exception {
    context.getContextInstance().setVariable("message", message);
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.