2.1.4 Processing Rules

The Claims Transformation Algorithm is invoked by a caller by providing InputClaims and the InputTransformationRulesText as indicated in Initialization (section 2.1.3). This algorithm continues processing until an error occurs or until successful completion.

The Claims Transformation Algorithm consists of the following processing steps.

  1. Parse InputTransformationRulesText to validate the syntax against the claims transformation rules language syntax and generate InternalTransformationRules (section 2.1.4.2).

  2. If evaluation in the previous step fails, set ReturnValue to FAILURE and OutputClaims to an empty list and exit this algorithm.

  3. Perform processing steps detailed in Claims Transformation Rules Processing (section 2.1.4.3) on InternalEvaluationContext using InternalTransformationRules.

  4. If an error occurs in the previous processing, set ReturnValue to FAILURE and OutputClaims to an empty list and exit this algorithm.

  5. Set ReturnValue to SUCCESS, copy all the claims from the InternalOutputContext to OutputClaims, and exit this algorithm.