Skip to content

Commit 8cdf0f8

Browse files
authored
support matching on other state during state change (#98)
1 parent 82fcad5 commit 8cdf0f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bitdrift_public/protobuf/workflow/v1/workflow.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ message Workflow {
161161

162162
// The match condition which is applied to the new value of the state during a state change.
163163
state.v1.StateValueMatch new_value = 4 [(validate.rules).message = {required: true}];
164+
165+
// Additional properties that must be true at the time of the state change for the rule to match.
166+
// Since state changes do not match against a particular log, tags and messages will not be visibile to this matcher.
167+
matcher.v1.LogMatcher log_matcher = 5;
164168
}
165169

166170
// An action to be taken when moving to a new state.

0 commit comments

Comments
 (0)