Fernando Ribeiro [http://community.jboss.org/people/fribeiro1] created the discussion
"Removing Human Tasks" To view the discussion, visit: http://community.jboss.org/message/645931#645931 -------------------------------------------------------------- I'm currently getting "java.lang.RuntimeException: Couldn't remove user krisv since it isn't a notification recipient" when trying to remove a task created with the following code: {code}final BlockingAddTaskResponseHandler handler = new BlockingAddTaskResponseHandler(); final Task task = new Task(); final PeopleAssignments peopleAssignments = new PeopleAssignments(); final List<OrganizationalEntity> potentialOwners = new ArrayList<OrganizationalEntity>(); potentialOwners.add(new User("krisv")); peopleAssignments.setPotentialOwners(potentialOwners); task.setPeopleAssignments(peopleAssignments); task.setTaskData(new TaskData()); client.addTask(task, null, handler); System.out.println(handler.getTaskId()); client.disconnect();{code} Does a task need to be in a certain status for being removed with TaskClient.remove? -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/645931#645931] Start a new discussion in jBPM at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user