The question(s) is about embedding Flowable to a standalone java application. There are many questions/answers on this forum about this but I was still not very clear on how to go about it. I could not see any reference implementation of the same. I have checked the standalone program , but this uses a prebuilt process XML.
Context: I am working on a spring based application (calling it the main application) with possibly a angular based frontend. This application will have some business processes and the plan is to use the flowable workflow engine for this. The question is how do we embed Flowable into an existing java application to do the following
To have a user interface that helps a Manager create workflows. This should then be saved in the BPMN format like the samples shown in the documentation. The question is are there flowable APIs available that can write out BPMN XML. Is the recommendation to build our own frontend to design the workflow or to use code from one the flowable UI apps? \
Our application will have users with 2-3 different roles (employee, manager etc). How do we get flowable to use these users during the design and execution of the workflow. Since Flowable has its own tables where it maintains users (act_id_user), how is this to be synced with the users of the main application. What is to be done to see that each of these users (of my java application) have a tasklist where they see flowable tasks pending against them?
I have read articles like (Using Flowable as an embedded workflow), Use of Flowable UI Task with own flowable engine and also a camel example but not sure of how to generate the process XML and in them user the applications users/groups for the tasks.