Details
-
Bug
-
Resolution: Done
-
Minor
-
jBPM 6.0.1.Final
-
None
Description
Currently the org.kie.api.task.TaskLifeCycleEventListener is missing the nominate task event callback and hence is not available in JPATaskLifeCycleEventListener also.
https://github.com/droolsjbpm/droolsjbpm-knowledge/blob/master/kie-api/src/main/java/org/kie/api/task/TaskLifeCycleEventListener.java
On digging more into the code I found here
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/main/java/org/jbpm/services/task/impl/TaskInstanceServiceImpl.java
//@TODO: WHY THE HELL THIS IS NOT AN OPERATION???
public void nominate(long taskId, String userId, List<OrganizationalEntity> potentialOwners) {
if(lifeCycleManager instanceof UserGroupLifeCycleManagerDecorator)
else if(lifeCycleManager instanceof MVELLifeCycleManager)
{ ((MVELLifeCycleManager)lifeCycleManager).nominate(taskId, userId, potentialOwners); }}
Please treat nominate as an operation and add it to lifecycle events.