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,299

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

Accepted Solutions (1)

Accepted Solutions (1)

Hi Muni,

as of today this is not yet possible out of the box.
You could put a service task and push the data field to a REST/Odata service of yours to enable custom reporting.

Can you describe the use case in more details?
Looking at your example, do you want to see the just the date (as a selected attribute), or any data changed in the workflow? Do you want to see this as part of the execution log in Monitor Workflow app, or you want to have the data accessible also via an API?

Thanks and best regards,
Krassimir Kondarev
SCP Workflow

Answers (3)

Answers (3)

Hi Muni,

Thank you, I understand your use case now.

Visualizing the data like this is not possible as of today. Generally the execution log contains no data, only the changed fields.

I can understand how displaying context changes between steps can be useful for single data field or even for few fields, however this will quickly become unreadable with multiple JSON objects being changed.

Thanks and best regards,
Krassimir Kondarev
SCP Workflow

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.

Muniyappan
Active Contributor
0 Likes

Hi Krassimir,

Thank you for your response. I want to have context data as part of execution log in Monitor Workflow app, so that I can view the context data in each step.

I was working with scripts and wondering if i can see the context data before script step execution and after.

For example if i have a flow like this, soon after scripts gets executed, it continues with service task. once service call is successful then instance disappears from instance monitor. Hence not able to view context data.

Regards,

Muni