Hi,
I have a scenario where I’m failing a workflow - due to an error in activity. When a workflow fails, the result returned is as follows:
{
"type": "workflowExecutionFailedEventAttributes",
"failure": {
"message": "activity error",
"source": "GoSDK",
"stackTrace": "",
"cause": {
"message": "activity error",
"source": "GoSDK",
"stackTrace": "",
"cause": null,
"applicationFailureInfo": {
"type": "",
"nonRetryable": false,
"details": null
}
},
"activityFailureInfo": {
"scheduledEventId": "17",
"startedEventId": "18",
"identity": "2570@XXX",
"activityType": {
"name": "ActivityFailedError"
},
"activityId": "17",
"retryState": "MaximumAttemptsReached"
}
},
"retryState": "MaximumAttemptsReached",
"workflowTaskCompletedEventId": "22",
"newExecutionRunId": ""
}
Any data that I was keeping track of as part of the workflow that I would return is lost. Is there a way to also ensure that any data returned is also part of the workflow result?
Thanks,
Jay.