[jboss-user] [jBPM] - Re: Dynamic Task UI via HornetQ

Benjamin Wirtz do-not-reply at jboss.com
Thu Jan 24 04:08:25 EST 2013

Benjamin Wirtz [https://community.jboss.org/people/bennixview] created the discussion

"Re: Dynamic Task UI via HornetQ"

To view the discussion, visit: https://community.jboss.org/message/793980#793980

For Test I use now the "Evalution.bpmn"

Now I want to retrieve the Content build a generic UI.

I use the HornetQ TaskService and read the DocumentConten like this:

     List<Task> tasksAssignedAsPotentialOwner = taskManagement.getAssignedTasks("admin");
     Task simpleTask = tasksAssignedAsPotentialOwner.get(0);
     long taskId =  simpleTask.getId();
     assertEquals(Status.Reserved, simpleTask.getTaskData().getStatus());

     taskManagement.start(simpleTask.getId(), "admin");
     simpleTask = taskManagement.getTaskById(taskId);
     assertEquals(Status.InProgress, simpleTask.getTaskData().getStatus());

     Content content = taskManagement.getContent(simpleTask.getTaskData().getDocumentContentId());
     Map<String, Object> contentData = (Map<String, Object>) ContentMarshallerHelper.unmarshall(content.getContent(), null);


Now i've got all Data from the "Self-Evaluation" Task. But in Content i can only see the Key : reason - Value : Some Reason.

In the Web View the user have to check some CheckBoxes to give the Task a valid Result. How can I retrieve the Information about the Result Values / Types?
How to retrieve the Values of performance?

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130124/fc37314b/attachment-0001.html 

More information about the jboss-user mailing list