[jboss-user] [jBPM] - Re: TaskClient (Parameter mapping - Result mapping)

Sasi R do-not-reply at jboss.com
Thu Apr 7 11:06:16 EDT 2011


Sasi R [http://community.jboss.org/people/sasir] created the discussion

"Re: TaskClient (Parameter mapping - Result mapping)"

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

--------------------------------------------------------------
Yes you can transfer complex data types as well..You just have to type cast it as below and you can read the paramter values from that

               HashMap taskinfo1=new HashMap();
               BlockingGetContentResponseHandler handlerC = new BlockingGetContentResponseHandler();
               client.getContent(taskData.getDocumentContentId(), handlerC);
               Content content = handlerC.getContent();

                if (content != null){
                    ByteArrayInputStream bais = new ByteArrayInputStream(content.getContent());
                    ObjectInputStream ois;

                    try {
                        ois = new ObjectInputStream(bais);
                        taskinfo1 =(HashMap) ois.readObject();
                    } catch (IOException e) {
                        e.printStackTrace();
                   } catch (ClassNotFoundException e) {
                        e.printStackTrace();

                    }
                }
--------------------------------------------------------------

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

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/20110407/1f80a715/attachment-0001.html 


More information about the jboss-user mailing list