3.2. Runtime Governance Managed Applications
3.2.1. Building a Runtime Governance Managed Application
Procedure 3.1. To build a Runtime Governance managed application:
- Deploy your SwitchYard application and enable Runtime Governance activity collection.
- To record any additional context (correlation) or properties with the activity information, define an Information Processor with the configuration details required to extract the information.
- To enforce policy decisions immediately (synchronously), define:
- An activity validator to contact the policy you wish to enforce.
- An interceptor in the SwitchYard application to trigger the validation.
NoteActivity Validators are only intended to validate the activities and raise exceptions where necessary to block the business transaction. - If policy decisions can be processed asynchronously, define an Event Processor Network which executes in the server.NoteYou can use the Event Processor Networks to derive further information (including Situations), enabling creation of multiple networks or nodes and building on previously processed information.
3.2.2. Customizing Your Runtime Governance Managed Application
Create rules or policies based on general interaction information or response times
Based on the out-of-the-box configuration, you have an option to define your own Event Processor Networks (EPN). You can use your EPNs to observe the basic activity information or derived response times to perform required actions (such as deriving further information, and identifying situations to create an alert). For more information, refer the policy-async quickstart.
Create server side (asynchronous) policies based on business specific information
To define intelligent policies, it is necessary to extract information from the message content or headers. This requires the definition of an Information Processor to define how each message type should be processed to extract the relevant context and property information. For more information, refer the order management quickstart with an ip artifact defining the information processor for the order management application.
Create client side (synchronous) activity validators
Activity validators are similar to EPNs, except that they operate in the SwitchYard environment, and can be used to block business transactions based on evaluation of a business policy. As the SwitchYard event collection is asynchronous, blocking a business transaction can only be achieved by performing the activity validation from within the SwitchYard application, with the use of an interceptor. For more information, refer the ordermgmt/app quickstart and the policy-sync quickstart, which defines the validator policy.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.