I am modeling a process using Flowable eclipse BPMN designer. In the process, I created a start form for the start event using the Built-in form rendering with a form definition (created with the form designer).
<process id="myProcess" name="My process" isExecutable="true"> <documentation>My First Course Viewer Test Process</documentation> <startEvent id="startevent1" name="Start"> <extensionElements> <activiti:formProperty id="firstname" name="firstname" type="string" required="true"></activiti:formProperty> <activiti:formProperty id="lastname" name="lastname" type="string" required="true"></activiti:formProperty> <activiti:formProperty id="age" name="age" type="long" required="true"></activiti:formProperty> <activiti:formProperty id="course" name="course" type="enum" required="true"></activiti:formProperty> </extensionElements> </startEvent>
Using Flowable Engine API
I got all the list of deployed processes. However, the object of ProcessDefinition returned contains hasStartFormKey attribute (which I would imagine that is not applicable to the form that I created). But there is no attribute that returns whether or not that processdefinition has a start form. I am guessing that the hasStartFormKey attribute isn’t applicable (to my understanding this is meant to be set for external form rendering), or am I wrong, if so what will this be set as when using Built-in form?
Using Flowable REST
I got all the list of deployed processes. However, there is a “startFormDefined” attribute in the returned json but is set to false (i.e. “startFormDefined”:false).
BTW, when I was able to get the start form data when I called this API:
I want to maintain using the Flowable Engine API but I don’t know how I could get list of processdefinitions that will contain a similar “startFormDefined” and that will be set to true for my defined startForm. Or, is there something am not doing right in during the design process?