"从BackingBean中调用不带fragments的taskflow"
2013-06-08(Saturday) 00:00
有时候需要在backingBean中调用某一taskflow, 可以使用以下代码调用。不过只适用于可单独运行的taskflow,含有page fragments的taskflow不在此范围。
代码如下:
{% codeblock lang:java %}
public String callTaskFlow() {
FacesContext fctx = FacesContext.getCurrentInstance();
ControllerContext cc = ControllerContext.getInstance();
String taskflowId = "btf_task";
String taskflowDocument = "/WEB-INF/btf_task.xml";
Map