Skip to content

Commit 1d4f323

Browse files
Merge pull request #199 from code0-tech/195-add-action-identifier
Added Action Identifier
2 parents 3dda295 + 4e0cedc commit 1d4f323

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

proto/shared/shared.data_type.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ message DefinitionDataType {
3737
// Version of the data type
3838
// Format: "major.minor.patch", e.g. "1.2.3"
3939
string version = 8;
40+
// Field will be set by an action to distinguish an action function from a runtime function
41+
optional string action_identifier = 9;
4042
}
4143

4244
message ExecutionDataType {

proto/shared/shared.flow.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,16 @@ message NodeFunction {
4646
string runtime_function_id = 2;
4747
repeated NodeParameter parameters = 3;
4848
optional int64 next_node_id = 4;
49+
// Identifier of the action that can execute this function
50+
// If not present it should be a runtime function
51+
optional string action_identifier = 5;
4952
}
5053

5154
message NodeValue {
5255
oneof value {
5356
shared.Value literal_value = 1;
5457
ReferenceValue reference_value = 2;
58+
// Reference to the `database_id` field of message `NodeFunction`
5559
int64 node_function_id = 3;
5660
}
5761
}

proto/shared/shared.flow_definition.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ message FlowType {
2222
// Format: "major.minor.patch", e.g. "1.2.3"
2323
string version = 11;
2424
string display_icon = 12;
25+
// Field will be set by an action to distinguish an action function from a runtime function
26+
optional string action_identifier = 13;
2527
}
2628

2729
message FlowTypeSetting {

proto/shared/shared.runtime_function.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ message RuntimeFunctionDefinition {
2525
// Format: "major.minor.patch", e.g. "1.2.3"
2626
string version = 12;
2727
string display_icon = 13;
28+
// Field will be set by an action to distinguish an action function from a runtime function
29+
optional string action_identifier = 14;
2830
}
2931

3032
// Definition of a parameter used for execution

0 commit comments

Comments
 (0)