AnsweredAssumed Answered

how to deploy dynamic create process definition

Question asked by tonyado on Aug 24, 2016
Latest reply on Sep 3, 2016 by tonyado
FYI. I create a process definition with such code:
<blockcode>
PvmProcessDefinition processDefinition = new ProcessDefinitionBuilder()
                .createActivity("start")
                .initial()
                .behavior(new NoneStartEventBehavior())
                .transition("end")
                .endActivity()
                .createActivity("end")
                .behavior(new NoneEndEventBehavior())
                .endActivity()
                .buildProcessDefinition();
</blockcode>
I can create process instance of this process definition with
createProcessInstance
method, but I cannot find a method to deploy this process definition to process engine. anyone can tell me how to do this? For some reason, I have to create process definition through code, and I just found there is a ProcessDefinitionBuilder, so I decide to use this one. I want to know is there any other way that I can create process definition dynamically? Thanks very much

Outcomes