0

如何让 activiti 显示 textarea 字段,在下面的 formProperty 中插入文本输入?

<extensionElements>
        <activiti:formProperty id="Ata"
        name="Ata"
        required="true"
        type="string" />
    </extensionElements>
4

1 回答 1

2
  1. 扩展AbstractFormType类并覆盖它的方法,如本示例TextAreaFormType.java所示
  2. Activiti Explorer 是在 Vaadin 中实现的,因此表单字段也必须使用 Vaadin 来实现。在这里 您可以找到示例实现

  3. 向applicationContext.xml中的流程引擎配置添加自定义表单类型applicationContext.xml


<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="customFormTypes">
<list>
<ref bean="userFormType"/>
<ref bean="textAreaFormType"/>
</list>
</property>
</bean>
<bean id="userFormType" class="org.activiti.explorer.form.UserFormType"/>
<bean id="textAreaFormType" class="org.bpmnwithactiviti.explorer.form.TextAreaFormType"/>
于 2013-03-11T07:53:06.067 回答