jpdl文件:
<?xml version="1.0" encoding="UTF-8"?>
<process name="autoParams" xmlns="http://jbpm.org/4.4/jpdl">
<start g="277,19,48,48" name="start">
<transition g="-51,-22" name="to 自动处理模板" to="自动处理模板"/>
</start>
<end g="281,244,48,48" name="end"/>
<java expr="#{class}" g="258,132,92,52" method="handler" name="自动处理模板">
<arg><ref object="data"/></arg>
<transition g="-50,-22" name="to end" to="end"/>
</java>
</process>
流程图中配置参数:
map.put("class", new WorkFlowByTemplate());
map.put("data",new HashMap());
启动流程:
startProcess("autoFlow",map,"auto");