Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions protos/orchestrator_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/empty.proto";

message TaskRouter {
string source = 1; // orchestrationAppID
string target = 2; // appID
}

message OrchestrationInstance {
string instanceId = 1;
google.protobuf.StringValue executionId = 2;
Expand Down Expand Up @@ -192,10 +197,10 @@ message EntityOperationCalledEvent {
}

message EntityLockRequestedEvent {
string criticalSectionId = 1;
string criticalSectionId = 1;
repeated string lockSet = 2;
int32 position = 3;
google.protobuf.StringValue parentInstanceId = 4; // used only within messages, null in histories
google.protobuf.StringValue parentInstanceId = 4; // used only within messages, null in histories
}

message EntityOperationCompletedEvent {
Expand All @@ -210,14 +215,14 @@ message EntityOperationFailedEvent {

message EntityUnlockSentEvent {
string criticalSectionId = 1;
google.protobuf.StringValue parentInstanceId = 2; // used only within messages, null in histories
google.protobuf.StringValue parentInstanceId = 2; // used only within messages, null in histories
google.protobuf.StringValue targetInstanceId = 3; // used only within histories, null in messages
}

message EntityLockGrantedEvent {
string criticalSectionId = 1;
}

message HistoryEvent {
int32 eventId = 1;
google.protobuf.Timestamp timestamp = 2;
Expand All @@ -244,25 +249,28 @@ message HistoryEvent {
ExecutionResumedEvent executionResumed = 22;
EntityOperationSignaledEvent entityOperationSignaled = 23;
EntityOperationCalledEvent entityOperationCalled = 24;
EntityOperationCompletedEvent entityOperationCompleted = 25;
EntityOperationFailedEvent entityOperationFailed = 26;
EntityOperationCompletedEvent entityOperationCompleted = 25;
EntityOperationFailedEvent entityOperationFailed = 26;
EntityLockRequestedEvent entityLockRequested = 27;
EntityLockGrantedEvent entityLockGranted = 28;
EntityUnlockSentEvent entityUnlockSent = 29;
}
optional TaskRouter router = 30;
}

message ScheduleTaskAction {
string name = 1;
google.protobuf.StringValue version = 2;
google.protobuf.StringValue input = 3;
optional TaskRouter router = 4;
}

message CreateSubOrchestrationAction {
string instanceId = 1;
string name = 2;
google.protobuf.StringValue version = 3;
google.protobuf.StringValue input = 4;
optional TaskRouter router = 5;
}

message CreateTimerAction {
Expand Down Expand Up @@ -311,6 +319,7 @@ message OrchestratorAction {
TerminateOrchestrationAction terminateOrchestration = 7;
SendEntityMessageAction sendEntityMessage = 8;
}
optional TaskRouter router = 9;
}

message OrchestratorRequest {
Expand All @@ -320,6 +329,7 @@ message OrchestratorRequest {
repeated HistoryEvent newEvents = 4;
OrchestratorEntityParameters entityParameters = 5;
bool requiresHistoryStreaming = 6;
optional TaskRouter router = 7;
}

message OrchestratorResponse {
Expand Down