Hi, I am trying to figure out the big picture and then the details to do the steps.
I already done an app following flowable-modeler web app and make it working
Now I want to do it using ReST API. But I am still confused figuring out the big picture.
From the app made, what I know to do a full process using ReST API by far is this (please correct me if I’m wrong) :
- Start a process instance
- Do a process instance with completing task by task
- After each task completion, if it doesn’t have any fixed assignment, we can assign it by via task update function API
- If a task has a form need to be submit by user, show and submit the value
Technical breakdown (again, please correct me if I’m wrong) :
- Start a process definition by POSTing to
flowable-rest/service/runtime/process-instances
- Process instance status is now in
provide vacation info
user task - List form fields by GETting from
flowable-rest/service/form/form-data?processDefinitionId={processDefinitionId}
ortaskId
- Submit form fields by POSTing to
flowable-rest/service/form/form-data
with request body providing taskId or processDefinitionId - Process instance status is now in
calculate number of days
script task - Execute script task to calculate number of days by call API foo (?)
- Process instance status is now in
decision task
- Execute decision task by call API foobar (?)
- Complete the task by POSTing to
flowable-rest/service/runtime/tasks/{taskId}
with request body containing field action - The task will be in
Manager Approval
user task if amount of days >= 10, the task and process instance will be fully completed if amount of days < 10
Now I’m stuck at several things, those question marks and step 3 (getting form fields), it is not providing me the fields like I made on flowable web app. Giving me empty form properties
{ "formKey": null, "deploymentId": "12585", "processDefinitionId": "vacationRequest:6:12592", "processDefinitionUrl": "http://localhost:8080/flowable-rest/service/repository/process-definitions/vacationRequest:6:12592", "taskId": null, "taskUrl": null, "formProperties": [] }
Thanks alot for any help.
Regards