×
Menu
Index

Categories

Introduction

By using Categories you can easily make a Tool in a Configuration execute depending on the reason for the client to call SoftRules®. So the client has to tell SoftRules® the purpose of its request. Since SoftRules® knows the purpose, you can suppress the execution of certain Tools when they are not needed for this purpose. This saves time and leads to a better performance.
 

Example

Suppose a configuration takes care of all tasks leading to a complete policy in XML format. So the calculation of the policy, placing of clauses and conditions, acceptance, calculation of provision, totalisation, etc. etc. And you want to use this exact Configuration in a screen to compare several products only by premium. In that case all processing that is not leading to the correct premium is needless. And when comparing products speed is a very important factor. So, by adding a Category CALC (for example) and assigning this property only to the Tools that are responsible for the calculation of the premium, and adding this property to the client request when de call is done for a comparison screen, SoftRules® can skip all Tools that are marked with the CALC Category.
 
 
We can add the above Category in the Global Configuration.
 
Since the client talks to a Server Port and since these Ports are coupled to an Adapter, we have to set the Category property of the In Adapter. So we make a special In Adapter for Calculation only requests (Category CALC).
 
 
After that we check the CALC Category of every Tool needed for the calculation of the premium.
 
Example:
 
This Assignment will now only be executed when the In Adapter has the Category CALC checked (or by an In Adapter that has no Categories at all checked).