[jbpm-users] [jBPM Users] - Re: Violation of unique constraint with two splits (JBPM-255

Alkero do-not-reply at jboss.com
Tue Sep 29 08:49:35 EDT 2009


With the following process definition the problem still occurs, I don't think the nesting is the source of the problem:

<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <process name="test" xmlns="http://jbpm.org/4.0/jpdl">
  |    <start g="143,8,31,30" name="start1">
  |       <transition to="fork1"/>
  |    </start>
  |    <fork g="143,72,65,29" name="fork1">
  |       <transition g="-44,-18" name="left" to="task1"/>
  |       <transition g="9,-24" name="right" to="task2"/>
  |    </fork>
  |    <task assignee="test" g="73,134,66,56" name="task1">
  |       <transition to="join1"/>
  |    </task>
  |    <task assignee="test" g="192,135,64,55" name="task2">
  |       <transition to="join1"/>
  |    </task>
  |    <join g="142,201,34,36" name="join1">
  |       <transition to="fork2"/>
  |    </join>
  |    <fork g="138,269,57,32" name="fork2">
  |       <transition g="-44,-18" name="left" to="task3"/>
  |       <transition g="-44,-18" name="right" to="task4"/>
  |    </fork>
  |    <task g="66,329,56,51" name="task3">
  |       <transition to="join2"/>
  |    </task>
  |    <task g="191,332,65,43" name="task4">
  |       <transition to="join2"/>
  |    </task>   
  |    <join g="133,385,39,35" name="join2">
  |       <transition to="end1"/>
  |    </join>
  |    <end g="136,455,44,56" name="end1"/>
  | </process>

Code:

	    String deploymentId = repositoryService.createDeployment()
  |         	.addResourceFromClasspath(processDefinitionFilename)
  |         	.deploy();
  | 	    
  | 	    Execution execution = executionService.startProcessInstanceByKey("test");
  | 	    
  | 	    List<Task> tasks = processEngine.getTaskService().findPersonalTasks("test");
  | 	    for(int i = 0;i<tasks.size();i++){
  | 	    	System.out.println(i);
  | 	    	processEngine.getTaskService().completeTask(tasks.get(i).getId());
  | 	    }
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257640#4257640

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257640


More information about the jbpm-users mailing list