Thank you for your reply Martin.
I checked the javadoc - I believed that at the creation of my TaskInstance
object, the actorID parameter would be null
but that because this assertion is true:
| TaskInstance taskInstance = createNewProcessInstance();
| assertEquals("taskSubmission", taskInstance.getName());
|
which shows that I am in the "taskSubmission" node
| <task name="taskSubmission">
| <assignment
class="jbpm.taskmgmt.EmiliAssignmentHandler"></assignment>
| </task>
|
my jbpm.taskmgmt.EmiliAssignmentHandler would set the null actorId to "emili".
Nevertheless now this is the way that I am doing it:
| public void testSubmissionTask3(){
| GraphSession graphSession = jbpmContext.getGraphSession();
| ProcessDefinition processDefinition =
| graphSession.findLatestProcessDefinition("test");
| processInstance =
| new ProcessInstance(processDefinition);
| contextInstance = processInstance.getContextInstance();
| Task t =
processInstance.getTaskMgmtInstance().getTaskMgmtDefinition().getTask("taskSubmission");
| TaskInstance ti =
processInstance.getTaskMgmtInstance().createTaskInstance(t,processInstance.getRootToken());
| assertEquals("emili", ti.getActorId());
| }
|
I hope it is correct
Danke schoen
Ardavan
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192505#4192505
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192505
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user