2222
2323syntax = "proto3" ;
2424
25- package temporal.api.decision .v1 ;
25+ package temporal.api.command .v1 ;
2626
27- option go_package = "go.temporal.io/api/decision /v1;decision " ;
28- option java_package = "io.temporal.api.decision .v1" ;
27+ option go_package = "go.temporal.io/api/command /v1;command " ;
28+ option java_package = "io.temporal.api.command .v1" ;
2929option java_multiple_files = true ;
3030option java_outer_classname = "MessageProto" ;
3131
3232import "temporal/api/enums/v1/workflow.proto" ;
33- import "temporal/api/enums/v1/decision_type .proto" ;
33+ import "temporal/api/enums/v1/command_type .proto" ;
3434import "temporal/api/common/v1/message.proto" ;
3535import "temporal/api/failure/v1/message.proto" ;
3636import "temporal/api/taskqueue/v1/message.proto" ;
3737
38- message ScheduleActivityTaskDecisionAttributes {
38+ message ScheduleActivityTaskCommandAttributes {
3939 string activity_id = 1 ;
4040 temporal.api.common.v1.ActivityType activity_type = 2 ;
4141 string namespace = 3 ;
@@ -61,40 +61,40 @@ message ScheduleActivityTaskDecisionAttributes {
6161 temporal.api.common.v1.RetryPolicy retry_policy = 11 ;
6262}
6363
64- message RequestCancelActivityTaskDecisionAttributes {
64+ message RequestCancelActivityTaskCommandAttributes {
6565 int64 scheduled_event_id = 1 ;
6666}
6767
68- message StartTimerDecisionAttributes {
68+ message StartTimerCommandAttributes {
6969 string timer_id = 1 ;
7070 int64 start_to_fire_timeout_seconds = 2 ;
7171}
7272
73- message CompleteWorkflowExecutionDecisionAttributes {
73+ message CompleteWorkflowExecutionCommandAttributes {
7474 temporal.api.common.v1.Payloads result = 1 ;
7575}
7676
77- message FailWorkflowExecutionDecisionAttributes {
77+ message FailWorkflowExecutionCommandAttributes {
7878 temporal.api.failure.v1.Failure failure = 1 ;
7979}
8080
81- message CancelTimerDecisionAttributes {
81+ message CancelTimerCommandAttributes {
8282 string timer_id = 1 ;
8383}
8484
85- message CancelWorkflowExecutionDecisionAttributes {
85+ message CancelWorkflowExecutionCommandAttributes {
8686 temporal.api.common.v1.Payloads details = 1 ;
8787}
8888
89- message RequestCancelExternalWorkflowExecutionDecisionAttributes {
89+ message RequestCancelExternalWorkflowExecutionCommandAttributes {
9090 string namespace = 1 ;
9191 string workflow_id = 2 ;
9292 string run_id = 3 ;
9393 string control = 4 ;
9494 bool child_workflow_only = 5 ;
9595}
9696
97- message SignalExternalWorkflowExecutionDecisionAttributes {
97+ message SignalExternalWorkflowExecutionCommandAttributes {
9898 string namespace = 1 ;
9999 temporal.api.common.v1.WorkflowExecution execution = 2 ;
100100 string signal_name = 3 ;
@@ -103,25 +103,25 @@ message SignalExternalWorkflowExecutionDecisionAttributes {
103103 bool child_workflow_only = 6 ;
104104}
105105
106- message UpsertWorkflowSearchAttributesDecisionAttributes {
106+ message UpsertWorkflowSearchAttributesCommandAttributes {
107107 temporal.api.common.v1.SearchAttributes search_attributes = 1 ;
108108}
109109
110- message RecordMarkerDecisionAttributes {
110+ message RecordMarkerCommandAttributes {
111111 string marker_name = 1 ;
112112 map <string , temporal.api.common.v1.Payloads > details = 2 ;
113113 temporal.api.common.v1.Header header = 3 ;
114114 temporal.api.failure.v1.Failure failure = 4 ;
115115}
116116
117- message ContinueAsNewWorkflowExecutionDecisionAttributes {
117+ message ContinueAsNewWorkflowExecutionCommandAttributes {
118118 temporal.api.common.v1.WorkflowType workflow_type = 1 ;
119119 temporal.api.taskqueue.v1.TaskQueue task_queue = 2 ;
120120 temporal.api.common.v1.Payloads input = 3 ;
121- // workflowExecutionTimeout is omitted as it shouldn'be overridden from within a workflow
122- // Timeout of a single workflow run
121+ // workflow_execution_timeout is omitted as it shouldn'be overridden from within a workflow.
122+ // Timeout of a single workflow run.
123123 int32 workflow_run_timeout_seconds = 4 ;
124- // Timeout of a single workflow task
124+ // Timeout of a single workflow task.
125125 int32 workflow_task_timeout_seconds = 5 ;
126126 int32 backoff_start_interval_in_seconds = 6 ;
127127 temporal.api.common.v1.RetryPolicy retry_policy = 7 ;
@@ -134,17 +134,17 @@ message ContinueAsNewWorkflowExecutionDecisionAttributes {
134134 temporal.api.common.v1.SearchAttributes search_attributes = 14 ;
135135}
136136
137- message StartChildWorkflowExecutionDecisionAttributes {
137+ message StartChildWorkflowExecutionCommandAttributes {
138138 string namespace = 1 ;
139139 string workflow_id = 2 ;
140140 temporal.api.common.v1.WorkflowType workflow_type = 3 ;
141141 temporal.api.taskqueue.v1.TaskQueue task_queue = 4 ;
142142 temporal.api.common.v1.Payloads input = 5 ;
143- // Total workflow execution timeout including retries and continue as new
143+ // Total workflow execution timeout including retries and continue as new.
144144 int32 workflow_execution_timeout_seconds = 6 ;
145- // Timeout of a single workflow run
145+ // Timeout of a single workflow run.
146146 int32 workflow_run_timeout_seconds = 7 ;
147- // Timeout of a single workflow task
147+ // Timeout of a single workflow task.
148148 int32 workflow_task_timeout_seconds = 8 ;
149149 // Default: PARENT_CLOSE_POLICY_TERMINATE.
150150 temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9 ;
@@ -158,21 +158,21 @@ message StartChildWorkflowExecutionDecisionAttributes {
158158 temporal.api.common.v1.SearchAttributes search_attributes = 16 ;
159159}
160160
161- message Decision {
162- temporal.api.enums.v1.DecisionType decision_type = 1 ;
161+ message Command {
162+ temporal.api.enums.v1.CommandType command_type = 1 ;
163163 oneof attributes {
164- ScheduleActivityTaskDecisionAttributes schedule_activity_task_decision_attributes = 2 ;
165- StartTimerDecisionAttributes start_timer_decision_attributes = 3 ;
166- CompleteWorkflowExecutionDecisionAttributes complete_workflow_execution_decision_attributes = 4 ;
167- FailWorkflowExecutionDecisionAttributes fail_workflow_execution_decision_attributes = 5 ;
168- RequestCancelActivityTaskDecisionAttributes request_cancel_activity_task_decision_attributes = 6 ;
169- CancelTimerDecisionAttributes cancel_timer_decision_attributes = 7 ;
170- CancelWorkflowExecutionDecisionAttributes cancel_workflow_execution_decision_attributes = 8 ;
171- RequestCancelExternalWorkflowExecutionDecisionAttributes request_cancel_external_workflow_execution_decision_attributes = 9 ;
172- RecordMarkerDecisionAttributes record_marker_decision_attributes = 10 ;
173- ContinueAsNewWorkflowExecutionDecisionAttributes continue_as_new_workflow_execution_decision_attributes = 11 ;
174- StartChildWorkflowExecutionDecisionAttributes start_child_workflow_execution_decision_attributes = 12 ;
175- SignalExternalWorkflowExecutionDecisionAttributes signal_external_workflow_execution_decision_attributes = 13 ;
176- UpsertWorkflowSearchAttributesDecisionAttributes upsert_workflow_search_attributes_decision_attributes = 14 ;
164+ ScheduleActivityTaskCommandAttributes schedule_activity_task_command_attributes = 2 ;
165+ StartTimerCommandAttributes start_timer_command_attributes = 3 ;
166+ CompleteWorkflowExecutionCommandAttributes complete_workflow_execution_command_attributes = 4 ;
167+ FailWorkflowExecutionCommandAttributes fail_workflow_execution_command_attributes = 5 ;
168+ RequestCancelActivityTaskCommandAttributes request_cancel_activity_task_command_attributes = 6 ;
169+ CancelTimerCommandAttributes cancel_timer_command_attributes = 7 ;
170+ CancelWorkflowExecutionCommandAttributes cancel_workflow_execution_command_attributes = 8 ;
171+ RequestCancelExternalWorkflowExecutionCommandAttributes request_cancel_external_workflow_execution_command_attributes = 9 ;
172+ RecordMarkerCommandAttributes record_marker_command_attributes = 10 ;
173+ ContinueAsNewWorkflowExecutionCommandAttributes continue_as_new_workflow_execution_command_attributes = 11 ;
174+ StartChildWorkflowExecutionCommandAttributes start_child_workflow_execution_command_attributes = 12 ;
175+ SignalExternalWorkflowExecutionCommandAttributes signal_external_workflow_execution_command_attributes = 13 ;
176+ UpsertWorkflowSearchAttributesCommandAttributes upsert_workflow_search_attributes_command_attributes = 14 ;
177177 }
178178}
0 commit comments