File tree Expand file tree Collapse file tree
src/bitdrift_public/protobuf/workflow/v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,7 +114,21 @@ message Workflow {
114114 // This can be looked up by ID by further transitions.
115115 message SaveField {
116116 string id = 1 ;
117- string field_name = 2 ;
117+
118+ oneof save_field_type {
119+ // Save's the value of a specified field from the log. If the field is not present, nothing
120+ // is saved.
121+ string field_name = 2 ;
122+
123+ // Save's the message of the log.
124+ bool message = 3 ;
125+ }
126+
127+ // If provided, this must specify a regex with a single capture group. The value of the
128+ // captured group will be saved instead of the whole field value. If not provided, the whole
129+ // field value will be saved. If the regex doesn't match the field value, nothing will be
130+ // saved.
131+ optional string regex_capture = 4 ;
118132 }
119133
120134 // The configuration of a value extraction for a Sankey diagram.
@@ -416,8 +430,15 @@ message Workflow {
416430 // state can be started only if there are no other active runs of a given workflow.
417431 message ExecutionExclusive {}
418432
433+ message ExecutionParallel {
434+ // The maximum number of active workflow runs for this workflow. If not specified uses an
435+ // implementation defined default value.
436+ optional uint32 max_active_runs = 1 ;
437+ }
438+
419439 oneof execution_type {
420440 ExecutionExclusive execution_exclusive = 1 ;
441+ ExecutionParallel execution_parallel = 3 ;
421442 }
422443
423444 reserved 2 ;
You can’t perform that action at this time.
0 commit comments