Using Action Types in OnEvent
Standard ‘Change’ events and specific events may contain ‘actionType’ attributes to indicate the action (such as ‘create’, ‘change’ or ‘delete’) for a component instance.
The OnEvent method doesn’t check any incoming actionType. In the OnEvent method (which always is a batch method), the request is forwarded to one or more other methods, either by the on execute hook or by a standard mapping from eventAction to method name.
In the underlying method, the action types must be checked. If it is a standard Create or Delete method, action types are ignored. If it is a standard Change method, action types are handled as usual for the Change method. If it is a specific method, action types are handled as just like any other qualifier attribute. Just like any other method arguments, a qualifier attribute will be regarded as input and/or output for the method hooks (before execute, on execute or after execute) if it is specified as input and/or output for the method implementation.