-
1. Re: Swimlane assignment to group
kukeltje Sep 8, 2007 6:02 AM (in response to bazoo)I see no reason why this should not work. Can you make a unittest that demonstrates the problem?
-
2. Re: Swimlane assignment to group
bazoo Sep 10, 2007 3:51 PM (in response to bazoo)I'm afraid I'm not a Java programmer, I'm using the web console to run my process rather than code: I wouldn't know where to start on creating a unit test. Nevertheless, I did manage to trap the relevant error log when I click the "Save and close" button in the console for the process node that's causing me the problems:
20:42:27,868 DEBUG [GraphElement] event 'node-enter' on 'TaskNode(Contract)' for 'Token(/)' 20:42:27,873 WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks == 20:42:27,918 DEBUG [GraphElement] event 'task-create' on 'Task(Contract)' for 'Token(/)' 20:42:27,935 DEBUG [ExpressionAssignmentHandler] resolving first term 'group(Legal)' 20:42:27,958 DEBUG [TaskInstance] assigning task 'Contract' to 'null' 20:42:27,961 DEBUG [GraphElement] event 'task-assign' on 'Task(Contract)' for 'Token(/)'
Looking at the above it looks like my assignment expression can't be resolved. Is there a way to force jBPM to tell me why it can't resolve my expression?
Thanks! -
3. Re: Swimlane assignment to group
kukeltje Sep 10, 2007 5:15 PM (in response to bazoo)There is no real debug info in the expressionassignmenthandler. Most likely the group/role is not there or not correctly configured
-
4. Re: Swimlane assignment to group
bazoo Sep 11, 2007 9:01 AM (in response to bazoo)I tried to test that out by changing my assignment expression for the swimlane in question to be:
In other words use the "sales" group which comes by default with jBPM and which I know is in there and has been tested thoroughly by the project.
However, when I get to the process node in question I get the same old error. Is this a more general problem with group assignment? Have you been able to make swimlane assignment work with groups?
Thanks! -
5. Re: Swimlane assignment to group
bazoo Sep 11, 2007 9:02 AM (in response to bazoo)sorry forgot the code tags
I tried to test that out by changing my assignment expression for the swimlane in question to be:<assignment expression="group(sales)"></assignment>
In other words use the "sales" group which comes by default with jBPM and which I know is in there and has been tested thoroughly by the project.
However, when I get to the process node in question I get the same old error. Is this a more general problem with group assignment? Have you been able to make swimlane assignment work with groups?
Thanks!