Is there a way to get the process log id generated by the current running business process? I want to know what is the process log id while the business process is running.
I was able to get the instance ID by doing the code below. The return UID here looks to be the same as the SysProcessLog ID used in the Process Log section.
Actually, the system runs multiple processes at once. But if you mean "current" from the perspective of process, in this case, process log id, it is just the id of this instance of the process. It represents in SysProcessElements, SysProcessLog, and other objects where you can filter data. To get this id in process, you will need to implement custom logic.
I was able to get the instance ID by doing the code below. The return UID here looks to be the same as the SysProcessLog ID used in the Process Log section.
I was trying to build one scenario - On Error come during process execution i.e. System shows Error in Process Log Section, I want to log it in another Custom section and Create new record there.
For this, I created a business process that can be triggered on the Change in Process Log Object. But that process is not getting triggered. Please guide me here? How to do it correctly?
Please note that our application doesn't support designing business processes that are triggered by a modification in system objects. The core of business process mechanisms works on low-level API which doesn't support start signal's functionality. This is done in order to avoid any kind of accidents with business process mechanisms and also for performance maintaining reasons.
However, you can try designing a process that runs, for example, every day and checks Process log records for errors, and then sends this information to a specific mailbox.
I had a similar issue, and that's the solution I came up with:
My process is scheduled to run every 4 hours and the read data searches for process marked with the "Error" status, which name starts with a custom prefix (that I assigned to identify my processes). The subprocess is used to log the error in another custom section.
I understand that Business Process has this option of Execution diagram where it shows the flow path when there is a trigger from any object. What I want to know is does it also give us this output of what value was received during each stage. When It errors, we get the error message from Process log but it would be really helpful if we also get the stage wise output even when the Business Process succeed.
Is there any way to achieve this? Kindly suggest .
Unfortunately, it is not possible to see this info in the Execution diagram.
However, you can check the "Trace enabled" checkbox in the properties of a business process. After that, you will be able to see the detailed data for each element of the process in the process log by selecting the process, then clicking on the element and clicking 'Show trace data'.
Unfortunately, it is not possible to see this info in the Execution diagram.
However, you can check the "Trace enabled" checkbox in the properties of a business process. After that, you will be able to see the detailed data for each element of the process in the process log by selecting the process, then clicking on the element and clicking 'Show trace data'.