22
22
23
23
syntax = "proto3" ;
24
24
25
- package decision.v1 ;
25
+ package temporal. decision.v1 ;
26
26
27
27
option go_package = "go.temporal.io/temporal-proto/decision/v1;decision" ;
28
28
option java_package = "io.temporal.proto.decision.v1" ;
29
29
option java_multiple_files = true ;
30
30
option java_outer_classname = "MessageProto" ;
31
31
32
- import "enums/v1/workflow.proto" ;
33
- import "enums/v1/decision_type.proto" ;
34
- import "common/v1/message.proto" ;
35
- import "failure/v1/message.proto" ;
36
- import "tasklist/v1/message.proto" ;
32
+ import "temporal/ enums/v1/workflow.proto" ;
33
+ import "temporal/ enums/v1/decision_type.proto" ;
34
+ import "temporal/ common/v1/message.proto" ;
35
+ import "temporal/ failure/v1/message.proto" ;
36
+ import "temporal/ tasklist/v1/message.proto" ;
37
37
38
38
message ScheduleActivityTaskDecisionAttributes {
39
39
string activity_id = 1 ;
40
- common.v1.ActivityType activity_type = 2 ;
40
+ temporal. common.v1.ActivityType activity_type = 2 ;
41
41
string namespace = 3 ;
42
- tasklist.v1.TaskList task_list = 4 ;
43
- common.v1.Header header = 5 ;
44
- common.v1.Payloads input = 6 ;
42
+ temporal. tasklist.v1.TaskList task_list = 4 ;
43
+ temporal. common.v1.Header header = 5 ;
44
+ temporal. common.v1.Payloads input = 6 ;
45
45
// Indicates how long the caller is willing to wait for an activity completion.
46
46
// Limits for how long retries are happening. Either this or startToCloseTimeoutSeconds is required.
47
47
// When not specified defaults to the workflow execution timeout.
@@ -59,7 +59,7 @@ message ScheduleActivityTaskDecisionAttributes {
59
59
// Activity retry policy. Note that activity is retried by default according to a default retry policy.
60
60
// To disable retries provide a retry policy with maximumAttempts equals to 1.
61
61
// The retries happen up to scheduleToCloseTimeout.
62
- common.v1.RetryPolicy retry_policy = 11 ;
62
+ temporal. common.v1.RetryPolicy retry_policy = 11 ;
63
63
}
64
64
65
65
message RequestCancelActivityTaskDecisionAttributes {
@@ -72,19 +72,19 @@ message StartTimerDecisionAttributes {
72
72
}
73
73
74
74
message CompleteWorkflowExecutionDecisionAttributes {
75
- common.v1.Payloads result = 1 ;
75
+ temporal. common.v1.Payloads result = 1 ;
76
76
}
77
77
78
78
message FailWorkflowExecutionDecisionAttributes {
79
- failure.v1.Failure failure = 1 ;
79
+ temporal. failure.v1.Failure failure = 1 ;
80
80
}
81
81
82
82
message CancelTimerDecisionAttributes {
83
83
string timer_id = 1 ;
84
84
}
85
85
86
86
message CancelWorkflowExecutionDecisionAttributes {
87
- common.v1.Payloads details = 1 ;
87
+ temporal. common.v1.Payloads details = 1 ;
88
88
}
89
89
90
90
message RequestCancelExternalWorkflowExecutionDecisionAttributes {
@@ -97,68 +97,68 @@ message RequestCancelExternalWorkflowExecutionDecisionAttributes {
97
97
98
98
message SignalExternalWorkflowExecutionDecisionAttributes {
99
99
string namespace = 1 ;
100
- common.v1.WorkflowExecution execution = 2 ;
100
+ temporal. common.v1.WorkflowExecution execution = 2 ;
101
101
string signal_name = 3 ;
102
- common.v1.Payloads input = 4 ;
102
+ temporal. common.v1.Payloads input = 4 ;
103
103
string control = 5 ;
104
104
bool child_workflow_only = 6 ;
105
105
}
106
106
107
107
message UpsertWorkflowSearchAttributesDecisionAttributes {
108
- common.v1.SearchAttributes search_attributes = 1 ;
108
+ temporal. common.v1.SearchAttributes search_attributes = 1 ;
109
109
}
110
110
111
111
message RecordMarkerDecisionAttributes {
112
112
string marker_name = 1 ;
113
- map <string , common.v1.Payloads > details = 2 ;
114
- common.v1.Header header = 3 ;
115
- failure.v1.Failure failure = 4 ;
113
+ map <string , temporal. common.v1.Payloads > details = 2 ;
114
+ temporal. common.v1.Header header = 3 ;
115
+ temporal. failure.v1.Failure failure = 4 ;
116
116
}
117
117
118
118
message ContinueAsNewWorkflowExecutionDecisionAttributes {
119
- common.v1.WorkflowType workflow_type = 1 ;
120
- tasklist.v1.TaskList task_list = 2 ;
121
- common.v1.Payloads input = 3 ;
119
+ temporal. common.v1.WorkflowType workflow_type = 1 ;
120
+ temporal. tasklist.v1.TaskList task_list = 2 ;
121
+ temporal. common.v1.Payloads input = 3 ;
122
122
// workflowExecutionTimeout is omitted as it shouldn'be overridden from within a workflow
123
123
// Timeout of a single workflow run
124
124
int32 workflow_run_timeout_seconds = 4 ;
125
125
// Timeout of a single workflow task
126
126
int32 workflow_task_timeout_seconds = 5 ;
127
127
int32 backoff_start_interval_in_seconds = 6 ;
128
- common.v1.RetryPolicy retry_policy = 7 ;
129
- enums.v1.ContinueAsNewInitiator initiator = 8 ;
130
- failure.v1.Failure failure = 9 ;
131
- common.v1.Payloads last_completion_result = 10 ;
128
+ temporal. common.v1.RetryPolicy retry_policy = 7 ;
129
+ temporal. enums.v1.ContinueAsNewInitiator initiator = 8 ;
130
+ temporal. failure.v1.Failure failure = 9 ;
131
+ temporal. common.v1.Payloads last_completion_result = 10 ;
132
132
string cron_schedule = 11 ;
133
- common.v1.Header header = 12 ;
134
- common.v1.Memo memo = 13 ;
135
- common.v1.SearchAttributes search_attributes = 14 ;
133
+ temporal. common.v1.Header header = 12 ;
134
+ temporal. common.v1.Memo memo = 13 ;
135
+ temporal. common.v1.SearchAttributes search_attributes = 14 ;
136
136
}
137
137
138
138
message StartChildWorkflowExecutionDecisionAttributes {
139
139
string namespace = 1 ;
140
140
string workflow_id = 2 ;
141
- common.v1.WorkflowType workflow_type = 3 ;
142
- tasklist.v1.TaskList task_list = 4 ;
143
- common.v1.Payloads input = 5 ;
141
+ temporal. common.v1.WorkflowType workflow_type = 3 ;
142
+ temporal. tasklist.v1.TaskList task_list = 4 ;
143
+ temporal. common.v1.Payloads input = 5 ;
144
144
// Total workflow execution timeout including retries and continue as new
145
145
int32 workflow_execution_timeout_seconds = 6 ;
146
146
// Timeout of a single workflow run
147
147
int32 workflow_run_timeout_seconds = 7 ;
148
148
// Timeout of a single workflow task
149
149
int32 workflow_task_timeout_seconds = 8 ;
150
- enums.v1.ParentClosePolicy parent_close_policy = 9 ;
150
+ temporal. enums.v1.ParentClosePolicy parent_close_policy = 9 ;
151
151
string control = 10 ;
152
- enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11 ;
153
- common.v1.RetryPolicy retry_policy = 12 ;
152
+ temporal. enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11 ;
153
+ temporal. common.v1.RetryPolicy retry_policy = 12 ;
154
154
string cron_schedule = 13 ;
155
- common.v1.Header header = 14 ;
156
- common.v1.Memo memo = 15 ;
157
- common.v1.SearchAttributes search_attributes = 16 ;
155
+ temporal. common.v1.Header header = 14 ;
156
+ temporal. common.v1.Memo memo = 15 ;
157
+ temporal. common.v1.SearchAttributes search_attributes = 16 ;
158
158
}
159
159
160
160
message Decision {
161
- enums.v1.DecisionType decision_type = 1 ;
161
+ temporal. enums.v1.DecisionType decision_type = 1 ;
162
162
oneof attributes {
163
163
ScheduleActivityTaskDecisionAttributes schedule_activity_task_decision_attributes = 2 ;
164
164
StartTimerDecisionAttributes start_timer_decision_attributes = 3 ;
0 commit comments