ftos.businessStatusWorkflow.testCondition

IMPORTANT!  
Starting with v24.3.0, this is renamed from checkBusinessConditionForData to ftos.businessStatusWorkflow.testCondition.

Evaluates a business workflow condition for an explicitly given data set.

This is a business logic method for business service components.

Syntax

function ftos.businessStatusWorkflow.testCondition(entityName: string, dataSet: any[], businessWorkflowConfigurationName: string, conditionName: string): boolean
 
Parameter Description
entityName Name of the entity that contains the business workflow configuration that contains the evaluation's business condition.
dataSet Array of key – value pairs to be evaluated by the business condition.
IMPORTANT!  
The key names must match the attributes 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.

The dataSet array has the following structure:

[
	{
		key: '<attribute 1>',
		value: <value 1>
	},
	{
		key: '<attribute 2>',
		value: <value 2>
	}
	...
]

Return Value

Returns true if the condition is met and false if it isn't.

Examples