Discussion:
[jboss-user] [jBPM] - What is responseHandler.waitTillDone(1000) suppose to do?
TC ONG
2012-05-09 07:21:19 UTC
Permalink
TC ONG [https://community.jboss.org/people/devilkazuya99] created the discussion

"What is responseHandler.waitTillDone(1000) suppose to do?"

To view the discussion, visit: https://community.jboss.org/message/734424#734424

--------------------------------------------------------------
...
System.out.println("Hello");
responseHandler.waitTillDone(5000);
System.out.println("World");
...

Does it means:
Print "Hello", wait 5000ms, print "World"?

What is the affect to te processinstance?
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2012-05-10 06:31:14 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: What is responseHandler.waitTillDone(1000) suppose to do?"

To view the discussion, visit: https://community.jboss.org/message/734647#734647

--------------------------------------------------------------
waitTillDone is intended to give a task server bit of time to process the request and produce response as it is async operation and response handler is a callback object that will get the response as soon as it is ready or timeout if not received in the specified time.

HTH
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Laura delli Paoli
2013-06-06 14:48:36 UTC
Permalink
Laura delli Paoli [https://community.jboss.org/people/lauradp] created the discussion

"Re: What is responseHandler.waitTillDone(1000) suppose to do?"

To view the discussion, visit: https://community.jboss.org/message/821754#821754

--------------------------------------------------------------
hi!
what happens if human task has not been completed in 1000ms??

does:
*do {*
*     https://community.jboss.org/message/734647#734647 responseHandler.waitTillDone(1000)*
*}while(!completed)*
work?
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...