以下のformPropertyのテキスト入力の代わりに、アクティビティにテキストエリアフィールドを表示させるにはどうすればよいですか?
<extensionElements>
<activiti:formProperty id="Ata"
name="Ata"
required="true"
type="string" />
</extensionElements>
以下のformPropertyのテキスト入力の代わりに、アクティビティにテキストエリアフィールドを表示させるにはどうすればよいですか?
<extensionElements>
<activiti:formProperty id="Ata"
name="Ata"
required="true"
type="string" />
</extensionElements>
AbstractFormType
メソッドをオーバーライドします。Activiti ExplorerはVaadinに実装されているため、フォームフィールドもVaadinを使用して実装する必要があります。ここ にサンプル実装があります
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"/>