You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Policy authors need to use programming concepts/language within CustomLogic block or simplistic arithmetical definitions in CalculateMathAddon blocks to implement formulas which are usually specified in the official methodology documents using standard math notation. #3408 enabled policy authors to link these existing implementations of formulas logically and visually to such mathematical formula definitions. In some cases, however, at least where the 'official' formulas are of limited complexity, it should be possible to enable policy authors to input them directly into the policy definition, and for Guardian to directly execute them at Policy run time.
Requirements
Introduce a Formula calculation block which would:
Allow Policy authors to input mathematical formulas directly into the policy (using Gurdian UI formula editor) in the standard mathematical notation (https://cortexjs.io/mathlive/editor/)
Enable policy authors to bind variables/parameters in these formulas to data (fields in schemas) for inputs/outputs to integrate the block into the Policy workflow
Whenever the result of such calculation is shown to the user to also display the formula definition in the standard math notation
Also display the values of the variables/parameters in the formula which were used to calculate these results
Enable users to navigate to the data sources of these values (used for the calculations) by providing links to the required levels depth
Definition of done
Functionality is implemented as specified above
New capabilities are documented
A practical example of FormulaCalculation block is available in at least one of the policies published in Guardian repository
Acceptance criteria
Policy authors can use FormulaCalculation block (whenever the complexity of the math permits) instead of CustomLogic and/or CalculateMathAddon block. The specified formulas are evaluated by Guardian policy engine directly without additional user involvement.
The text was updated successfully, but these errors were encountered:
Problem description
Currently Policy authors need to use programming concepts/language within CustomLogic block or simplistic arithmetical definitions in CalculateMathAddon blocks to implement formulas which are usually specified in the official methodology documents using standard math notation. #3408 enabled policy authors to link these existing implementations of formulas logically and visually to such mathematical formula definitions. In some cases, however, at least where the 'official' formulas are of limited complexity, it should be possible to enable policy authors to input them directly into the policy definition, and for Guardian to directly execute them at Policy run time.
Requirements
Introduce a Formula calculation block which would:
Extend Guardian UI to:
Definition of done
Acceptance criteria
Policy authors can use FormulaCalculation block (whenever the complexity of the math permits) instead of CustomLogic and/or CalculateMathAddon block. The specified formulas are evaluated by Guardian policy engine directly without additional user involvement.
The text was updated successfully, but these errors were encountered: