Discussion:
[jboss-user] [jBPM] - How to replay event when Human Task Service says task is complete but GWT Console Server fail to process it?
Thomas Setiabudi
2013-02-25 06:25:09 UTC
Permalink
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion

"How to replay event when Human Task Service says task is complete but GWT Console Server fail to process it?"

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

--------------------------------------------------------------
Hi,

We are using JBPM5.4 with the JBPM5.4 final full installer.

We have been going through this issue:

1. We created an application to complete some human tasks in one function, so lets say it completes 20 human tasks (20 different process instances) by calling calling Task Client's completeTask(..) 20 times.
    (We use HornetQ Human Task Service)

2. All the 20 task will always get completed (double checked the Task status in Database changed to "Completed")

3. The weird thing is, out of those 20 tasks from 20 different process instances that got completed, usually we got 2 or 3 process instance that does not resume

My Question are:
1. Anyone have clue about what may be the cause?
2. In the event where Human Task Service tell the JBPM Console Server that there is a task completed, and JBPM Console Server fails to get that event, how do we replay this? is it possible? When JBPM says HornetQ Human Task Service, does it mean that HornetQ Messaging used to send message between JBPM Console Server and Human Task Service? if so, can we replay failed messages?

Any Help is appreciated.
Thank you

Regards,
Thomas Setiabudi
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-02-26 19:04:00 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: How to replay event when Human Task Service says task is complete but GWT Console Server fail to process it?"

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

--------------------------------------------------------------
there must be an exception when session receives task complete events. These are processes in sequence by single thread and might be that the exception is swallowed by that thread and thus some process instances are not resumed. Two things could be done:
- implement extended HT work item handler that provides more debug inputs
- try to reproduce it as unit test

Alternatively you could try to use JMS based transport and configure persistence for jms queue so messages won't get lost in case of exception.

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

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

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