Skip to content
Merged
Show file tree
Hide file tree
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
38 changes: 25 additions & 13 deletions schema/druncschema/controller.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ service Controller {
rpc status (AddressedCommand) returns (StatusResponse) {}

rpc describe_fsm (AddressedCommand) returns (DescribeFSMResponse) {}
rpc execute_fsm_command (Request) returns (Response) {}
rpc execute_fsm_command (ExecuteFSMCommandRequest) returns (ExecuteFSMCommandResponse) {}
rpc execute_expert_command (Request) returns (Response) {}
rpc include (Request) returns (Response) {}
rpc exclude (Request) returns (Response) {}
Expand All @@ -34,6 +34,30 @@ message AddressedCommand {
bool execute_on_all_subsequent_children_in_path = 6;
}

message ExecuteFSMCommandRequest {
Token token = 1;
FSMCommand command = 2;
string target = 3;
bool execute_along_path = 4;
bool execute_on_all_subsequent_children_in_path = 5;
}

message ExecuteFSMCommandResponse {
Token token = 1;
string name = 2;
string command_name = 3;
string data = 4;
repeated ExecuteFSMCommandResponse children = 5;
FSMResponseFlag fsm_flag = 6;
ResponseFlag flag = 7;
}

message FSMCommand {
string command_name = 1;
map<string, google.protobuf.Any> arguments = 2;
optional string data = 4;
}

message StatusResponse {
Token token = 1;
string name = 2;
Expand Down Expand Up @@ -66,12 +90,6 @@ message RecomputeStatusResponse {
ResponseFlag flag = 5;
}

message FSMCommand {
string command_name = 1;
map<string, google.protobuf.Any> arguments = 2;
optional string data = 4; // unfortunately, this is just some plain old json data introduced by the fsm interfaces
}

enum FSMResponseFlag {
FSM_EXECUTED_SUCCESSFULLY = 0;
FSM_FAILED = 1;
Expand All @@ -80,12 +98,6 @@ enum FSMResponseFlag {
FSM_NOT_EXECUTED_IN_ERROR = 4;
}

message FSMCommandResponse{
FSMResponseFlag flag = 1;
string command_name = 2;
google.protobuf.Any data = 3;
}

message Argument {
enum Presence{
MANDATORY = 0;
Expand Down
Loading