Sample: Using ruleset interceptors with zRule Execution Server for z/OS
In this sample, you learn how to enable ruleset interceptors for the Miniloan application. The sample interceptor runs after the rule execution and returns extra information about the rule execution.
Before you begin
- Configure an instance of zRule Execution Server for z/OS®.
- Deploy the COBOL or PL/I Miniloan RuleApp and the execution object model (XOM) to the persistence layer by submitting the++HBRWORKDS++.SHBRJCL(HBRDPLOY) job.
About this task
The Miniloan application executes a set of loan eligibility rules against financial data for two
borrowers. A message is returned that states whether the loans were approved or rejected. When the
sample ruleset interceptor is enabled, extra messages are returned from the rule excution, which
provide the following information:
- RuleApp version executed = 1.0
- Ruleset version executed = 1.0
- Execution ID = 2f33d071-9c7f-4820-91f7-b0746ae874d50
The Java™ source code for this sample interceptor can be found in ++HBRINSTPATH++/zexecutionserver/samples/hbrsamples.jar.