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
/// This function will validate the flow. If the flow is valid, it will execute (send the flow to the execution and wait for a/multiple result/s) the flow.
107
+
///
108
+
/// Arguments:
109
+
/// - flow: The flow to be validated and executed.
110
+
/// - input_value: The input value to be used for the flow execution.
111
+
pubasyncfnvalidate_and_execute_flow(
112
+
&self,
113
+
flow:ValidationFlow,
114
+
input_value:Option<Value>,
115
+
wait_for_result:bool,
116
+
) -> Option<Value>{
117
+
ifletSome(body) = input_value.clone(){
118
+
let verify_result = verify_flow(flow.clone(), body);
119
+
120
+
match verify_result {
121
+
Ok(()) => {}
122
+
Err(_err) => {
123
+
returnNone;
124
+
}
125
+
};
126
+
}
127
+
128
+
let execution_flow:ExecutionFlow = Self::convert_validation_flow(flow, input_value);
/// This function will validate the flow. If the flow is valid, it will execute (send the flow to the execution and wait for a/multiple result/s) the flow.
137
-
///
138
-
/// Arguments:
139
-
/// - flow: The flow to be validated and executed.
140
-
/// - input_value: The input value to be used for the flow execution.
141
-
pubasyncfnvalidate_and_execute_flow(
142
-
&self,
143
-
flow:ValidationFlow,
144
-
input_value:Option<Value>,
145
-
) -> Option<Value>{
146
-
ifletSome(body) = input_value.clone(){
147
-
let verify_result = verify_flow(flow.clone(), body);
148
-
149
-
match verify_result {
150
-
Ok(()) => {}
151
-
Err(_err) => {
152
-
returnNone;
153
-
}
154
-
};
155
-
}
156
-
157
-
let execution_flow:ExecutionFlow = Self::convert_validation_flow(flow, input_value);
0 commit comments