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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to