-
Notifications
You must be signed in to change notification settings - Fork 138
User metadata #1657
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
User metadata #1657
Changes from 5 commits
7b3aa1c
2dab40d
6af2e2c
e0489cd
031e295
d496966
1efb3f0
ebe745f
2c8f922
67d8e06
c491683
60a1e08
3cfffa7
e56a117
421e080
f2bd7d3
af1e8bb
9243c3c
a625f4a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -190,6 +190,21 @@ export interface BaseWorkflowOptions { | |
| * by {@link typedSearchAttributes}. | ||
| */ | ||
| typedSearchAttributes?: SearchAttributePair[] | TypedSearchAttributes; | ||
|
|
||
| /** | ||
| * General fixed details for this workflow execution that may appear in UI/CLI. | ||
| * This can be in Temporal markdown format and can span multiple lines. | ||
| * | ||
| * @experimental | ||
|
||
| */ | ||
| staticDetails?: string; | ||
| /** | ||
| * A single-line fixed summary for this workflow execution that may appear in the UI/CLI. | ||
| * This can be in single-line Temporal markdown format. | ||
| * | ||
| * @experimental | ||
| */ | ||
| staticSummary?: string; | ||
| } | ||
|
|
||
| export type WithWorkflowArgs<W extends Workflow, T> = T & | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,6 +80,7 @@ export interface ActivityInput { | |
| readonly options: ActivityOptions; | ||
| readonly headers: Headers; | ||
| readonly seq: number; | ||
| readonly cmdOpts?: WorkflowCommandOptions; | ||
|
||
| } | ||
|
|
||
| /** Input for WorkflowOutboundCallsInterceptor.scheduleLocalActivity */ | ||
|
|
@@ -91,6 +92,7 @@ export interface LocalActivityInput { | |
| readonly seq: number; | ||
| readonly originalScheduleTime?: Timestamp; | ||
| readonly attempt: number; | ||
| readonly cmdOpts?: WorkflowCommandOptions; | ||
| } | ||
|
|
||
| /** Input for WorkflowOutboundCallsInterceptor.startChildWorkflowExecution */ | ||
|
|
@@ -101,10 +103,33 @@ export interface StartChildWorkflowExecutionInput { | |
| readonly seq: number; | ||
| } | ||
|
|
||
| /** | ||
| * User metadata that can be attached to workflow commands. | ||
| * | ||
| * Current used for: | ||
THardy98 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * - startTimer, scheduleActivity/scheduleLocalActivity commands | ||
THardy98 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * - internal metadata query | ||
| */ | ||
| export interface UserMetadata { | ||
| /** @experimental A single line summary of the command's purpose */ | ||
| summary?: string; | ||
| /** @experimental Additional details about the command for longer-text description, can span multiple lines */ | ||
| details?: string; | ||
| } | ||
|
|
||
| /** | ||
| * Options that can be attached to workflow commands. | ||
| */ | ||
| export interface WorkflowCommandOptions { | ||
| /** User metadata for the command that may be persisted to history */ | ||
| readonly userMetadata?: UserMetadata; | ||
| } | ||
|
|
||
| /** Input for WorkflowOutboundCallsInterceptor.startTimer */ | ||
| export interface TimerInput { | ||
| readonly durationMs: number; | ||
| readonly seq: number; | ||
| readonly cmdOpts?: WorkflowCommandOptions; | ||
| } | ||
|
|
||
| /** | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.