[jboss-user] [JBoss jBPM] - Re: can't finished my task
galvino
do-not-reply at jboss.com
Mon Jul 30 09:03:50 EDT 2007
i am working for find this issue.
i think problem is on the connection with the database or the deployment.
this is my process:
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="holiday-request">
|
|
| <swimlane name="participant">
| <assignment expression="user(ernie)"></assignment>
| </swimlane>
|
| <swimlane name="rh">
| <assignment expression="user(martin)"></assignment>
| </swimlane>
|
|
| <start-state name="enter request">
| <task name="request entry">
| <assignment class="ErnieAssignment"></assignment>
| <controller>
| <variable access="read,write" name="start_date"></variable>
| <variable access="read,write" name="duree"></variable>
| </controller>
| </task>
| <transition to="evaluate request"></transition>
| </start-state>
|
|
| <task-node name="evaluate request">
| <task name="request evaluation" duedate="">
| <assignment class="MartinAssignment"></assignment>
| <controller>
| <variable access="read" name="start date"></variable>
| <variable access="read" name="duree"></variable>
| <variable access="read" name="info"></variable>
| <variable access="read,write" name="decision"></variable>
| </controller>
| </task>
| <transition to="give additionnal info" name="more info needed"></transition>
| <transition to="end" name="approve/disapprove"></transition>
| </task-node>
|
| <task-node name="give additionnal info">
| <task name="additional info entry">
| <assignment class="ErnieAssignment"></assignment>
| <controller>
| <variable access="read" name="start date"></variable>
| <variable access="read" name="duree"></variable>
| <variable access="read,write" name="info"></variable>
| </controller>
| </task>
| <transition to="evaluate request"></transition>
| </task-node>
|
|
| <end-state name="end"></end-state>
|
|
| </process-definition>
|
And i have same error when i want use processInstance.signal()
like this:
| ProcessDefinition processDefinition=graphSession.getProcessDefinition(2);
|
| //creation d'une nouvelle instance de processus dans la base
| ProcessInstance processInstance=new ProcessInstance(processDefinition);
| Token token=processInstance.getRootToken();
| token.signal();
|
| //creation d'une nouvelle instance de tache pour l'étape initiale
| TaskInstance taskInstance=processInstance.getTaskMgmtInstance().createStartTaskInstance();
| taskBean.setTaskInstanceId(taskInstance.getId());
|
|
i dont know why .....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068712#4068712
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068712
More information about the jboss-user
mailing list