I want to abstract the Bproc plugin screens, and few screens like my Task will be shown to the user directly.
I want to use Bproc Modeller for this process. I would like to give a button called “Model” which should create a process definition with a name identified by my code.
I want to link my Process Entity record and the Bproc process definition and work with that further.
You may modify the process id and name each time you open the modeler screen.
I want to link my Process Entity record and the Bproc process definition and work with that further.
This can be done using the process definition id. If you create a process definition with a new name and id for each instance of your process entity, then just save this process definition id somewhere in your entity. You’ll always be able to find a process definition by this id.
Is there an API for creating this process XML file? Or I should use String Utils and wire this XML?
You can create the file in any way you like.
You can put the XML file with some placeholder somewhere inside your source code, read it using the Resources service and then replace the placeholder with the process id.
Also, you may work with this file using any library for working with XML - it’s all up to you.