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&...]