<action class='com.wfoxd.test.myactionhandler'>
<nametest>wfoxd</nametest>
<number>123</number>
</action>
</event>
这是action的内容:
/*
* create date: jul 13, 2005
* creator: wfoxd
* project:jbpm
* package:com.wfoxd.test
**********************************************
**********************************************
*/package com.wfoxd.test;
import org.jbpm.graph.def.actionhandler;
import org.jbpm.graph.exe.executioncontext;
public class myactionhandler implements actionhandler {
/**
* comment for <code>serialversionuid</code>
*/ private static final long serialversionuid = 1l;
// 在每个测试之前(setup里面),变量isexecuted的值将全部设置为false public static boolean isexecuted = false;
//测试以下 private string nametest;
private integer number;
// action将设置变量isexecuted为true,所以可以在单元测试里面显示出来它是否被执行了。
public void execute(executioncontext executioncontext) { isexecuted = true;
system.out.println(nametest);
system.out.println(number);
}
}
闽公网安备 35060202000074号