0

以下のformPropertyのテキスト入力の代わりに、アクティビティにテキストエリアフィールドを表示させるにはどうすればよいですか?

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

1 に答える 1

2
  1. この例のTextAreaFormType.javaに示すように、クラスを拡張し、そのAbstractFormTypeメソッドをオーバーライドします。
  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 に答える