Help with logic to detemine approval route please - how to determine based on conditions, if a users approval is required.
I have two forms. One form is a routing configuration form that allows an admin to configure conditions when an approver is required for a given request type.[in this example, Car Rental will have two approvers based on the users input values of the fields on the form "Rental Cost" and "Insurance Coverage"]. I have provided screen shots and my two collection below
Admin Config Form

User Input Form

Collection FlexApprovalAA show the conditions to meet if the approver is required
[
{
"ApproverDisplayName": "Bob Smith",
"Conditions": [
{
"conditionNumber":1,
"compareOperator": "",
"comparison": ">",
"comparisonValue": "500",
"field": "Rental Cost",
"fieldType": "Number"
},
{
"conditionNumber": 2,
"compareOperator": "or",
"comparison": "=",
"comparisonValue": "No",
"field": "Insurance Coverage",
"fieldType": "Yes/No"
}
],
"DisplayOrder": 0
},
{
"ApproverDisplayName": "Jane Doe",
"Conditions": [
{
"conditionNumber": 1,
"compareOperator": "",
"comparison": "=",
"comparisonValue": "Yes",
"field": "Insurance Coverage",
"fieldType": "Yes/No"
}
],
"DisplayOrder": 0
}
]
The following is the collection that holds the data for the user input form