when you write a ServiceTask listener class, you need to call several services to synchronize at the same time, so you need to consider how to handle the synchronization failure.
my current idea is that one is to automatically retry after failure, and then run batch synchronization by timed task after retry failure.
Settings fail to automatically retry (to be verified) :
adds the following configuration to the tag of the XML file in the BPMN flowchart:
<serviceTask activiti:async="true" activiti:exclusive="false" activiti:expression="${demoService.getSentence(execution)}" id="demoServiceTask" name="demoServiceTask">
<extensionElements>
<activiti:failedJobRetryTimeCycle>R5/PT1M</activiti:failedJobRetryTimeCycle>
</extensionElements>
</serviceTask>
(1) the configuration async is true, the default is false
(2) the R5/PT1M: said configuration retry count for each 1 minute try again once, retry a total of five reference:
https://my.oschina.net/go4it/blog/756149 p>
Read More:
- SqlSession was not registered for synchronization because synchronization is not active
- Solving environment: failed with initial frozen solve. Retrying with flexible solve.错误
- Failed to initialize nvml driver / library version mismatch due to automatic update of NVIDIA driver
- Solution: Solving Environment: failed with initial frozen solve. Retrying with flexible solve
- How to realize automatic assembly in springboot
- Java docking PayPal to achieve automatic renewal function
- [error summary] Rsync remote synchronization: error password file must not be other accessible
- Rsync client synchronization error
- Non real time fast synchronization scheme for mobile devices
- Failed to set permission group
- The problem of master-slave database synchronization stop caused by MySQL deleting data
- Deep understanding of async await asynchronous programming synchronization
- Canal synchronization error target column: name not matched
- Centos8 solves the problem of “failed to set locale, defaulting to c.utf-8”
- Eclipse automatic prompt setting method and optimization
- Failed to set up listener: socketexception: address already in use
- [Solved] Failed to set attribute: Invalid input data or parameter
- Automatic configuration of springboot and application.yml
- Get synchronization retrieved hash chain is invalid error
- Analysis of [error code [942], ora-00942 in synchronization of DDL statements in ogg