Community

[jBPM 4.3] Cancel Job/Timer

reply from Melih Cetin in jBPM - View the full discussion

Hi HuiSheng,

 

If it is not recommended to signal an execution in the EventListener then could you please let me know the recommended way of handling the following scenario.

 

We are working with a trading partner and we are putting an asynchronous request to the trading partner via their web service. Completion of the task may take some time for the partner. The way to  check if the task is completed is to make an inquiry again using their  web service in fixed intervals. The current process definition is:

 

  1. put an asynchronous request to a trading partner via a web service (done via a java task).
  2. go to a 'state' and check the completion of task regularly (currently done by a Timer and EventListener).
    • If the task status is complete, progress the workflow to the next activity (currently done by the EventListener).
    • If the task does not get completed within say 48 hours, progress the workflow to a manual task for error handling (currently done by the EventListener).

 

How would you suggest us to implement this scenario?

 

Thanks,

 

Melih

Reply to this message by going to Community

Start a new discussion in jBPM at Community