ftos.businessStatusWorkflow.checkCondition
IMPORTANT!
Starting with v24.3.0, this is renamed from checkBusinessConditionforData to ftos.businessStatusWorkflow.checkCondition.
Starting with v24.3.0, this is renamed from checkBusinessConditionforData to ftos.businessStatusWorkflow.checkCondition.
Evaluates a business workflow condition for a given record.
This is a business logic method for business service components.
Syntax
function ftos.businessStatusWorkflow.checkCondition(entityName: string, recordID: string, businessWorkflowConfigurationName: string, conditionName: string): boolean
| Parameter | Description |
|---|---|
entityName
|
Name of the evaluated record's parent entity. |
recordID
|
ID of the record to be evaluated by the business condition. |
businessWorkflowConfigurationName
|
Name of the business workflow configuration that contains the evaluation's business condition. |
conditionName
|
Name of the evaluation's business condition. |
Return Value
Returns true if the condition is met and false if it isn't.
Examples
In this example:
- We check if the attachment condition in the customersWF for customers workflow is valid for the 656f62dd-60f5-43ba-86d0-ba8c43acd719 record in the customers entity.
- We store the result in a variable called validation.
var validation = ftos.businessStatusWorkflow.checkCondition('customers', '656f62dd-60f5-43ba-86d0-ba8c43acd719', 'customersWF for customers', 'attachment');