[jboss-user] [jBPM] - How to finish the processInstance

RuiHua Tang do-not-reply at jboss.com
Tue Jun 28 21:46:42 EDT 2011


RuiHua Tang [http://community.jboss.org/people/trh3037] created the discussion

"How to finish the processInstance"

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

--------------------------------------------------------------
I have finished all tasks for the proceeInstance , why the state of processInstance is still '1' ?

Is not what I had to deal with other cases?

My English is not good ,excuse me

Here is my code:

BlockingTaskOperationResponseHandler responseHandler = new BlockingTaskOperationResponseHandler();
                    client.start(taskId, userId, responseHandler);
                    responseHandler.waitTillDone(5000);
                    // Thread.sleep(10000);
                    responseHandler = new BlockingTaskOperationResponseHandler();
                    ContentData contentData = null;
                    if (data != null) {
                              ByteArrayOutputStream bos = new ByteArrayOutputStream();
                              ObjectOutputStream out;
                              try {
                                        out = new ObjectOutputStream(bos);
                                        out.writeObject(data);
                                        out.close();
                                        contentData = new ContentData();
                                        contentData.setContent(bos.toByteArray());
                                        contentData.setAccessType(AccessType.Inline);
                              } catch (IOException e) {
                                        e.printStackTrace();
                              }
                    }
                    client.complete(taskId, userId, contentData, responseHandler);
                    responseHandler.waitTillDone(5000);
--------------------------------------------------------------

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

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/20110628/46df63c1/attachment.html 


More information about the jboss-user mailing list