Can we access the current activity name using Visibility API?

I am using the ListWorkflowExecutionRequest class for JAVA SDK to get various data points like Workflow ID, Status etc… Is there a way to get the current activity name using the same? Or any other way using code/SDK.

Hi @Harikrishnanvad, I think you might be looking for pending activity info.
Here is sample that gets PendingActivityInfo via DescribeWorkflowExecutions api. Hope this helps.

1 Like

Thank you very much. It worked!