[jboss-user] [jBPM] - Re: Jbpm 5 user form variables

Aliaksei Kushunin do-not-reply at jboss.com
Thu Sep 29 09:29:18 EDT 2011


Aliaksei Kushunin [http://community.jboss.org/people/a.kushunin] created the discussion

"Re: Jbpm 5 user form variables"

To view the discussion, visit: http://community.jboss.org/message/629287#629287

--------------------------------------------------------------
Hm, maybe I forgot to mentionet, that I'm retriving content of the task through :

client.getTask(taskSummary.getId(), taskResponseHandler);
 org.jbpm.task.Task jBMPTask = taskResponseHandler.getTask();
 TaskData taskData = jBMPTask.getTaskData();
 client.getContent(taskData.getDocumentContentId(), contentResponseHandler);
 Content content = contentResponseHandler.getContent();
 ByteArrayInputStream bais = new ByteArrayInputStream(content.getContent());
ObjectInputStream ois = new ObjectInputStream(bais);
Object vars = ois.readObject();

vars - is always String. If I left Content field blank - I'm getting just empty string.

If I manually edit bpmn file all works fine, and I'm getting objects, but it's not an option, to edit files manually every time )-:
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/629287#629287]

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/20110929/0f546005/attachment.html 


More information about the jboss-user mailing list