Tracking Process Completion
The Process Engine uses the process thread count to track process completion. Each change to the process thread count indicates whether a step produced output as one of the following: a pipeline, a process transition document, or a referenced process document.
As each step executes the Process Engine keeps track of the number of outstanding process threads that are currently executing. Each branch of a process model is a thread of execution. When all threads have completed and the total thread count is 0 the process is complete.
The method used by the Process Engine to track process completion depends on your configuration and tuning settings.
When volatile tracking is enabled. each server that runs process steps maintains the process thread count in memory. After a server runs a step, the
Process Engine for that server publishes a tracking document. Each
Process Engine retrieves the document and updates its server's memory.
If the count shows that a step was the last step, the Process Engine for the server that ran the last step publishes a status control document indicating process completion. The triggers on all servers retrieve the document and pass it to their Process Engines. The Process Engines store the process status in server memory.
When volatile tracking is disabled, each server that runs process steps maintains the process thread count in the WMPRTSTORE table in the
Process Engine's database component. After a server runs a step, the
Process Engine for that server updates the WMPRTSTORE table.
If the count shows that a step was the last step, the Process Engine publishes a status control document indicating process completion. The control triggers on all servers retrieve the document and pass it to their respective Process Engines.
In both of the above cases, the Process Engines also publish a document to the Integration Server audit subsystems indicating the new process status. The audit subsystems update the PRA_PROCESS table in the Process Audit Log database component with the new status.
Related Topics