Approvals review number node

The Approvals review number Business Rules node provided by the reference application is the node used by the example workflow for the rules engine. This node determines the number of reviews configured for an action. The reference example uses only three of the five available reviews.

To simplify writing and maintaining rules for the Approvals rules engine, use fields that are wildcard keys. If the initial table look up does not find a rule, additional table look ups are performed using different combinations of the fields that are specified as wild card keys. The reference rules provide an example of using wildcard key fields.

Node Descriptor

The node descriptor for the review number node is shown in the following XML example:

<nodeDescriptor name="ApprovalsReviewNumNode" type="ESORT">
   <tasks>
      <task name="ApprovalsReviewNumTask"/>
   </tasks>
</nodeDescriptor>

Table 1 shows the fields defined in the reference workflow. These fields relate to the RULES.Approvals_Review_Num_V database view.

Table 1. Approvals review number node table
Field Name Type Data Type Length Description
approvalsCodeBase key char 20 The base code level of the software that contains the component and category of the review request
approvalsCategory key char 32 The category of the review request
approvalsAction wildCardKey char 32 The action in this category that needs to be reviewed
approvalsRequestingUserRole wildCardKey char 48 The user group that the user who initiated the action belongs to
approvalsPartnerId wildCardKey char 20 The identifier of the participant for whom the action was requested
approvalsStandardName wildCardKey char 12 The message standard for the requested action
approvalsMessageTypeName wildCardKey char 12 The message type for the requested action
approvalsBankCode wildCardKey char 20 The routing number or BIC for the requested action
approvalsAccountNumber wildCardKey char 35 The account number for the requested action
approvalsCreditAmount startKeyRange byte 13 The lowest allowed value of the credit amount range for the requested action
approvalsCreditAmountHigh endKeyRange byte 13 The highest allowed value of the credit amount range for the requested action
approvalsDeltaCreditAmount startKeyRange byte 13 The lowest allowed value of the delta credit amount range for the requested action
approvalsDeltaCreditAmountHigh endKeyRange byte 13 The highest allowed value of the delta credit amount range for the requested action
approvalsDebitAmount startKeyRange byte 13 The lowest allowed value of the debit amount range for the requested action
approvalsDebitAmountHigh endKeyRange byte 13 The highest allowed value of the debit amount range for the requested action
approvalsDeltaDebitAmount startKeyRange byte 13 The lowest allowed value of the delta debit amount range for the requested action
approvalsDeltaDebitAmountHigh endKeyRange byte 13 The highest allowed value of the delta debit amount range for the requested action
approvalsNumReviews payload byte 2 The number of reviews required for the requested action
approvalsReview1Level payload byte 2 The permission level that is required to perform the first review for the requested action
approvalsReview2Level payload byte 2 The permission level that is required to perform the second review for the requested action
approvalsReview3Level payload byte 2 The permission level that is required to perform the third review for the requested action