Event object and action: rule

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)

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?

event.type is ExecutionEvent
A manual event.

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).

Yes, these are managed rules. Ticket is created.

1 Like