JBoss Community

Dynamic Task UI via HornetQ

created by Benjamin Wirtz in jBPM - View the full discussion

Hi,

 

i want to show dynamic HumanTask UI in my App via HornetQ.

For Test I have a simple Process with one HT. inputData String userID , String reason. outputData Boolean acceptedOut. The User have to check a checkBox to set the Variable acceptedOut to true.

Now I want to retrieve the input / output Data to build a generic UI.

For that i read the Task via HornetQ TaskService and read the DocumentConten like this:

 

long contentId = task1.getTaskData().getDocumentContentId();

Content content = client.getContent(contentId);

Object unmarshalledObject = ContentMarshallerHelper.unmarshall(content.getContent(), null);

 

Now i've got the inputData. But i can't get the outputData. The ...getTaskData().getOutputContentId() is still -1.

 

What am I doing wrong?

Reply to this message by going to Community

Start a new discussion in jBPM at Community