如果您想要得到当前仍在运行的流程的数量,请查看“流程已启动”(21000)条目,但是没有一个事件处于最终状态(结束,失败,终止,补偿)。
If you want the current number of processes that are still running, look for a "process started" (21000) entry, but none of these events have an end state (finished, failed, terminate, compensated).
或者,可以使用cron作业来查看那些锁(其中包括进程的id);如果进程没有处于活动状态,那么该作业就会清除那些锁,并重新启动相应的进程。
Or, a cron job can look at the locks, which contain a process id. If the process isn't alive, it would erase the lock and restart the process.
启动异步查看操作,此操作具有指定的超时并使用指定的游标、指定的查看操作和指定的状态对象。
Initiates an asynchronous peek operation that has a specified time-out and that USES a specified cursor, a specified peek action, and a specified state object.
应用推荐