This content has been marked as final.
Show 3 replies
-
1. Re: Can't create a process instance when processDefinition i
milochanzy Apr 24, 2008 4:28 PM (in response to milochanzy)Correction in code:
String temp = content of main processdefinition.xml; ProcessDefinition main = ProcessDefinition.parseXmlString(temp); ProcessInstance processInstance = new ProcessInstance(main); while(processInstance.hasEnded() == false) { processInstance.signal(); }
-
2. Re: Can't create a process instance when processDefinition i
salaboy21 Apr 24, 2008 4:47 PM (in response to milochanzy)that's a crazy code man!.. i recommed to you to look a good example of process/subprocess interaction...
When i do this .. i try to deploy first the subprocess then i user process-state with name reference only! -
3. Re: Can't create a process instance when processDefinition i
milochanzy Apr 24, 2008 5:46 PM (in response to milochanzy)Thanks for reply..
Found the solution:
I had to declare the subProcess definition in the ProcessState for the same:
LikeProcessDefinition processDefinitionSubProcess = ProcessDefinition. parseXmlString("sub-process definition xml content"); ProcessState processState = (ProcessState) processDefinition.getNode ("Sub_Process_Name"); processState.setSubProcessDefinition(processDefinitionSubProcess);