[jboss-user] [jBPM Users] - Re: Conditional Task Assignment with Fork

pradeep.gulla do-not-reply at jboss.com
Tue Nov 3 08:28:57 EST 2009


hi,
I've tried a different look around for this.
viz.,  Assign all tasks with fork and delete unnecessary tasks with taskService.deleteTask();

But I'm getting error like this:
org.jbpm.api.JbpmException: tasks related to an execution must be completed. they cannot just be deleted


Conversely javadoc suggests like this:
anonymous wrote : /** Deletes the task without completing indicating the reason.  Example reasons 
  |    * could be: "failed", "error", "exited", "obsolete" or "deleted".
  |    * The history information is kept in the DB.
  |    * The reason ends up as the state in the {@link HistoryActivityInstance}. 
  |    * If this task was created in the context of a process execution, 
  |    * the execution remains active and the {@link ExecutionService#signalExecutionById(String)} 
  |    * is to be given explicitly. */ 
http://docs.jboss.com/jbpm/v4/javadocs/org/jbpm/api/TaskService.html#deleteTask(java.lang.String)

Am I'm missing anything ??

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263683#4263683

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263683



More information about the jboss-user mailing list