Greetings. I am trying to write an action handler that has a String field which 
is populated from the process definition.

   <state name="Run Script 1">
  |       <transition name="GotoScript2" to="Run Script 2"></transition>
  |       <event type="node-enter">
  |          <action name="RunAvsScript1" 
class="com.olf.workflowmgr.action.LaunchActionHandler" config-type="field">
  |             <scriptName>MikeTest</scriptName>
  |          </action>
  |       </event>
  |       <event type="node-leave">
  |          <action name="SaveScript1Data" 
class="com.olf.workflowmgr.action.LeaveScript1ActionHandler"></action>
  |       </event>
  |    </state>

and the corresponding class: 

public class LaunchActionHandler implements ActionHandler {
  | 
  |     private String scriptName;
  | 
  |     /**
  |      * Creates the variable "argt".
  |      * 
  |      * @param executionContext
  |      *            the context
  |      */
  |     public void execute(ExecutionContext executionContext) {
  |             ContextInstance ci = executionContext.getContextInstance();
  |             ProcessInstance pi = executionContext.getProcessInstance();
  |             String argt   = (String)ci.getVariable("argt");
  |             String script = scriptName;
  |             
  | <snip/>
  | }
  | 

The value of "scriptName" is null. Why isn't it being set to "MikeTest" as 
specified in the process definition xml?

Thanx.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911009#3911009

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911009


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to