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:
PvmProcessDefinition processDefinition = new ProcessDefinitionBuilder()
                .behavior(new NoneStartEventBehavior())
                .behavior(new NoneEndEventBehavior())
I can create process instance of this process definition with
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