Input and Output

Methods having processing order ‘batch’ do not have the method arguments available as parameters. Instead, the whole request is available as an input parameter for the hook. If needed, it can be forwarded to another business object method or DLL.

The following parameters can be used in method hooks for batch methods:

Hook Request Response Result
before execute i.request (read-only) - -
on execute i.request (read-only) o.response o.result
after execute i.request (read-only) i.response (read-only) -

Additionally, just like in method hooks for top-down and bottom-up methods, the before execute method provides an io.cancel (see section Before Execute Method Hook) and the on execute method provides an io.default parameter (see section On Execute Method Hook). Note that in this case the io.cancel is on request level, so when setting it to true, the whole request is skipped.

Note however that in fact the before and after execute hooks do not have any added value; you can just as well include all logic you need in the on execute hook.