[jboss-user] [jBPM] - Removing Human Tasks
Fernando Ribeiro
do-not-reply at jboss.com
Wed Jan 11 08:39:00 EST 2012
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]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120111/de29e484/attachment.html
More information about the jboss-user
mailing list