Page History
Summary
With this pattern, a business function is modelled and distributed in a library, similar to Decoupling Pattern 5: Distributed function library. The difference to Pattern 5 is no module mapping is needed. Hence, the implementation of this decoupling pattern is less cumbersome. It is available as function call in your flow. The module does not need to be connected to any other module.
Implementation
In the table below the implementation charateristics by using a Function are shown.
The complete profile can be used as input, but the Action attributes of the External rules are most likely to be the input parameters.
The implementation of an external rule has access to the complete profile. It is therefore important to document what values are needed by the external rule. You can set what values should trigger the external rule mechanism. Most likely are those identical to the input values. An external rule can be used as default on an attribute, but in general it could change the value of any attribute. There are no additional attributes required in your domain, keeping it clean.
Include Page | ||||
---|---|---|---|---|
|
*In a future version of Blueriq this will be an implicit call.
Example
Het functie concept wordt gerealiseerd door twee verschillende modules te definiëren, de functie en de applicatie.
De modules staan naast elkaar, en niet op elkaar. Hierdoor is verwevenheid niet mogelijk.
Binnen de applicatie worden onderstaande elementen gedefinieerd:
- Global Service met de naam van de functie ("AQ_FunctionType_Add" en "AQ_FunctionType_Multiply")
- Service type van het type dat hierboven gedefinieerd is.
- Exposed flow waarin de juiste services worden aangeroepen.
Binnen de functie implementatie worden onderstaande elementen gedefinieerd:
- Global Service voor "GetInputParameters" en "SetOutputParameters"
- Exposed flow met naam van de functie; hierin wordt een mapping gemaakt van de input en output parameters naar de attributen binnen het domeinmodel.
- Definitie attribuut met daarin de berekening.
Definities aanroepende applicatie
Definitie Global service type in Blueriq