标签:
这个功能挺有意思的,有了它,就可以不适用html的方式来展示表单了,比如可以用swing对象了
class MyFormEngine implements FormEngine
{
@override
public String getName()
{ return "myformengine";}
@override
public Object renderStartForm(StartFormData startForm)
{
javax.swing.JButton jButton = new javax.swing.JButton();
jButton.setName("My Start Form Button");
return jButton;
}
@override
public override renderTaskForm(TaskFormData taskform)
{.....}
}
然后要在流程引擎中注册该表单引擎
<bean id ="processEngineConfiguration"
class = "xxxxx"
<property name="customFormEngine">
<list>
<bean class = "xxxxxx.MyFormEngine"/>
</list>
</property>
</bean>
Activiti系列: 如何添加自定义表单引擎
标签:
原文地址:http://www.cnblogs.com/strinkbug/p/4952340.html