cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Monitor SAP Cloud Platform Workflow context data and Create custom logs

Muniyappan
Active Contributor
0 Likes
1,320

Hello,

can we monitor workflow context data of each step? I can only see what is the current workflow context is in the UI of monitor workflow context. Not able to see what is context data before and after of each step execution.

can write custom logs in script so that it will be available in workflow instance monitor?

Regards,

Muni

View Entire Topic
Muniyappan
Active Contributor
0 Likes
/rest/v1/workflow-instances/{id}/execution-logs

using execution logs api, i can get the referenceInstanceId,which belongs to perticular step. Will I be able to get the context data using referenceInstanceId? It did not work for me. Looks like this is applicable to only user tasks.

workflow-service/rest/v1/task-instances/{id}/context
tobias_breyer
Product and Topic Expert
Product and Topic Expert
0 Likes

The referenceInstanceId has a different purpose. They are for grouping different events, especially for instances of task types like script tasks. These are transient, i.e. have no own REST end-points.

You probably need the "taskId" property.