-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exposing WorkflowExecution Started Event attributes on the Workflow Info #1090
Conversation
Clarified with @mfateev on Slack, thanks! |
internal/workflow.go
Outdated
@@ -945,6 +945,8 @@ func (wc *workflowEnvironmentInterceptor) ExecuteChildWorkflow(ctx Context, chil | |||
// WorkflowInfo information about currently executing workflow | |||
type WorkflowInfo struct { | |||
WorkflowExecution WorkflowExecution | |||
OriginalRunID string // The original runID before resetting. Using it instead of current runID can make workflow decision determinstic after reset. See also FirstRunId | |||
FirstRunID string // The very first original RunId of the current Workflow Execution preserved along the chain of ContinueAsNew, Retry, Cron and Reset. Identifies the whole Runs chain of Workflow Execution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should document fields above the field
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with b4d8ee5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you for the contribution
What was changed
This pull requests address issue #1087 to expose additional fields from the WorkflowExecutionStartedEvent into the SDK
Why?
It was a missing feature that the Java SDK already implemented, and that is implemented in Cadence.
Checklist
Closes Expose OriginalRunId and FirstRunId #1087
How was this tested:
Not tested
Comments describing the fields should be good