You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// UseResults represent where action data results is added/merged to state data. If it's false, results & toStateData should be ignored.
29
-
// Defaults to true.
31
+
// If set to false, action data results are not added/merged to state data. In this case 'results'
32
+
// and 'toStateData' should be ignored. Default is true.
33
+
// +optional
30
34
UseResultsbool`json:"useResults,omitempty"`
31
-
32
-
// Workflow expression that filters the actions' data results
35
+
// Workflow expression that filters the actions data results.
36
+
// +optional
33
37
Resultsstring`json:"results,omitempty"`
34
-
// Workflow expression that selects a state data element to which the action results should be added/merged into. If not specified, denote, the top-level state data element
38
+
// Workflow expression that selects a state data element to which the action results should be
39
+
// added/merged into. If not specified denotes the top-level state data element.
Copy file name to clipboardExpand all lines: model/event.go
+31-15Lines changed: 31 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -32,19 +32,25 @@ const (
32
32
// Event used to define events and their correlations
33
33
typeEventstruct {
34
34
Common`json:",inline"`
35
-
// Unique event name
35
+
// Unique event name.
36
+
// +kubebuilder:validation:Required
36
37
Namestring`json:"name" validate:"required"`
37
-
// CloudEvent source
38
+
// CloudEvent source.
39
+
// +optional
38
40
Sourcestring`json:"source,omitempty"`
39
-
// CloudEvent type
41
+
// CloudEvent type.
42
+
// +kubebuilder:validation:Required
40
43
Typestring`json:"type" validate:"required"`
41
-
// Defines the CloudEvent as either 'consumed' or 'produced' by the workflow.
42
-
// Defaults to `consumed`
44
+
// Defines the CloudEvent as either 'consumed' or 'produced' by the workflow. Defaults to `consumed`.
45
+
// +kubebuilder:validation:Enum=consumed;produced
46
+
// +kubebuilder:default=consumed
43
47
KindEventKind`json:"kind,omitempty"`
44
-
// If `true`, only the Event payload is accessible to consuming Workflow states. If `false`, both event payload and context attributes should be accessible"
45
-
// Defaults to true
48
+
// If `true`, only the Event payload is accessible to consuming Workflow states. If `false`, both event payload
49
+
// and context attributes should be accessible. Defaults to true.
50
+
// +optional
46
51
DataOnlybool`json:"dataOnly,omitempty"`
47
-
// CloudEvent correlation definitions
52
+
// Define event correlation rules for this event. Only used for consumed events.
// ResultEventTimeout defines maximum amount of time (ISO 8601 format) to wait for the result event. If not defined it be set to the actionExecutionTimeout
92
+
// Maximum amount of time (ISO 8601 format) to wait for the result event. If not defined it be set to the
// If string type, an expression which selects parts of the states data output to become the data (payload) of the event referenced by 'triggerEventRef'.
85
-
// If object type, a custom object to become the data (payload) of the event referenced by 'triggerEventRef'.
96
+
// If string type, an expression which selects parts of the states data output to become the data (payload)
97
+
// of the event referenced by triggerEventRef. If object type, a custom object to become the data (payload)
98
+
// of the event referenced by triggerEventRef.
99
+
// +optional
86
100
Data*Object`json:"data,omitempty"`
87
-
// Add additional extension context attributes to the produced event
101
+
// Add additional extension context attributes to the produced event.
0 commit comments