Oliver2
(Oliver)
May 27, 2025, 6:53pm
1
Is this an expected behavior?
If I run a rule by a MainUI widget without context like this:
action: rule
actionRule: test
the event object exists.
If I run a rule by a MainUI widget with a context like this:
action: rule
actionRule: test
actionRuleContext: '{"param1": "value1"}'
there is no event object.
(My question is not about how to access the parameters inside the rule)
rlkoshak
(Rich Koshak)
May 27, 2025, 6:58pm
2
I’ve no idea if this is the expected behavior or not. Personally it’s unexpected. I wouldn’t have expected the event Object to exist in either case.
What’s the event.type
for the case where it exists?
Oliver2
(Oliver)
May 27, 2025, 7:01pm
3
event.type is ExecutionEvent
A manual event.
rlkoshak
(Rich Koshak)
May 27, 2025, 7:03pm
4
I’d file an issue. The event Object should be there in both cases. Assuming this is a managed rule, I think the correct repo would be core. If it’s a file based rule, you might need to start with the automation add-on you are using (e.g. JS Scripting).
Oliver2
(Oliver)
May 27, 2025, 7:18pm
5
Yes, these are managed rules. Ticket is created.
1 Like