Use Current Business Process's Instance Id in BP

I am trying to add some custom logging to BP execution, and would like to have a reference back to the BP instance that is being run so that the user can click the link and go to the BP instance's log page. I do not believe there is a system variable/similar that will provide that, but I'm hoping I'm just missing something! I know it is possible to use a script task to fetch this information from context.Process.InstanceUId, but if possible it would be nice to avoid having to add a script task and therefore compile the BP just for this.

Like 0

Like

1 comments

Hello,

The recommended approach to obtain the business process instance ID is to create a script task, as you mentioned, and retrieve the value directly from the context.

At present, there is no alternative recommended solution for this requirement.

Show all comments