-
1. Re: Dynamic Task UI via HornetQ
swiderski.maciej Jan 21, 2013 4:12 AM (in response to bennixview)output data is dedicated to store the results of the task so until you complete it (or store output explicitly) it won't be set. Usual use case for it is that it will get data from the complete operation that it then can be used to store defined data output process variable.
HTH
-
2. Re: Dynamic Task UI via HornetQ
bennixview Jan 24, 2013 4:09 AM (in response to swiderski.maciej)Thanks for your answer it helped a bit...
but what is the best Approach to get Task Information for building Remote Task UI? Any Example? Do i have to put all Variables in inputData or in Content with a Map ?
And the result of
List<TaskSummary> tasksAssignedAsPotentialOwner = client.getTasksAssignedAsPotentialOwner("admin", "en-UK");
don't show all actual Tasks. In gwt-consol i see actualy even more tasks ( for "admin" ) than in HornetQClient.
SOLUTION: The TaskClient needs a unique Name.
-
3. Re: Dynamic Task UI via HornetQ
bennixview Jan 24, 2013 4:08 AM (in response to bennixview)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);
logTaskData(simpleTask);
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?
-
4. Re: Dynamic Task UI via HornetQ
bennixview Jan 24, 2013 9:59 AM (in response to bennixview)I followed that example :
https://community.jboss.org/people/bpmn2user/blog/2011/02/21/jbpm5-example-for-forms-with-variables
It works now. Istead of PreProcess Skript Tasks I used the onEntryAction!