[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);
                    // Thread.sleep(10000);
                    responseHandler = new BlockingTaskOperationResponseHandler();
                    ContentData contentData = null;
                    if (data != null) {
                              ByteArrayOutputStream bos = new ByteArrayOutputStream();
                              ObjectOutputStream out;
                              try {
                                        out = new ObjectOutputStream(bos);
                                        contentData = new ContentData();
                              } catch (IOException e) {
                    client.complete(taskId, userId, contentData, responseHandler);

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- 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