-
1. Re: Swimlanes problem in Process Execution
rebody May 10, 2010 6:08 AM (in response to egycator)Hi Khaled,
Could you provide a testcase to reproduce this scenario? Thank you very much.
-
2. Re: Swimlanes problem in Process Execution
egycator May 10, 2010 7:06 AM (in response to rebody)Hello HuiSheng,
My test case is attached.
Kindly notice that this problem appears when I assign the task in the runtime by using
taskService.AssignTask(taskId,userId);
But if I used the attribute of assignee in the swimlane tag , this problem doesn't occur
<swimlane name="user" assignee="alex" />
-
SwimLane.rar.zip 9.1 KB
-
-
3. Re: Swimlanes problem in Process Execution
rebody May 10, 2010 9:21 PM (in response to egycator)Hi Khaled,
This caused by the execution only find swimlaneImpl in its own scope. If it can't find the related swimlane, it won't propragate to look for swimlane defined in parent scope.
I don't very clear for the swimlane behaviour between parent and children executions. So I think I could create a patch and make some discussion about this.
By the way, please use zip to compress the attachment, not rar.
-
4. Re: Swimlanes problem in Process Execution
mwohlf May 11, 2010 3:25 AM (in response to rebody)it is funny that the child execution/scope is only created when there are timer or variables used in the task,
the simpliest solution would be to lookup the parent scope for the swimlane (see attachment).
Another maybe more consistent approach would be to copy the swimlanes into the child scope like it
is done with variables and timers in ExecutionImpl.createScope(ScopeElementImpl scope)
-
diff.patch.zip 1.0 KB
-
-
5. Re: Swimlanes problem in Process Execution
rebody May 11, 2010 3:56 AM (in response to mwohlf)Hi Michael,
Thank you for the patch and testcase. It runs perfectly. I created a issue in JIRA for this issue.
-
6. Re: Swimlanes problem in Process Execution
egycator May 11, 2010 11:31 AM (in response to rebody)Hello all,
Thanks for the quick fix , it worked perfectly.
-
7. Re: Swimlanes problem in Process Execution
sebastian.s May 11, 2010 3:51 PM (in response to egycator)If this can be tested sufficient and this seems to be the case since Khaled is using this feature I'd love to see this scheduled for 4.4 as well. Any opinions on this? Maciej, maybe you would be so kind to have a look at Huisheng Xu's patch and commit it in case it's okay?
-
8. Re: Swimlanes problem in Process Execution
rebody May 11, 2010 8:28 PM (in response to sebastian.s)Hi Sebastian,
Thank you for noticing this. I will move this issue to jBPM-4.4.