This content has been marked as final.
Show 2 replies
-
1. Re: Task Completion Error
rebody Apr 6, 2010 4:28 AM (in response to ruds)Hi Rudolf,
The strategy of Task completion is so complex. If the TaskActivity have not any transition with name attribute, you have to specify a outcome in completeTas(taskId, outcome, variables);
You could find more information in User Guide.
http://docs.jboss.com/jbpm/v4/userguide/html_single/#taskservice
-
2. Re: Task Completion Error
ruds Apr 6, 2010 5:08 AM (in response to rebody)Well the following code fixed the problem for me.
engine.getTaskService().setVariables(taskId, variables);engine.getTaskService().completeTask(taskId);I just had to create the variables then set them and complete the task afterwards.best regards,Rudolf Michael