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
raiseFloe::InvalidExecutionInput,"Invalid State Machine Execution Input: #{err}: was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')"
26
24
end
27
25
28
26
defexecution
@@ -161,6 +159,18 @@ def hash
161
159
defsafe_context
162
160
@context.except("Credentials")
163
161
end
162
+
163
+
defto_json(*args)
164
+
to_h.to_json(*args)
165
+
end
166
+
167
+
private
168
+
169
+
defself.safe_parse(field,string)
170
+
JSON.parse(string)
171
+
rescueJSON::ParserError=>err
172
+
raiseFloe::InvalidExecutionInput,"Invalid State Machine #{field}: #{err}: was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')"
0 commit comments