WFOXD
123
這是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 serialVersionUID
*/ 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);
}
}