Class SingleConditionCheck
- java.lang.Object
-
- de.xima.fc.workflow.processor.processing.SingleConditionCheck
-
- All Implemented Interfaces:
Predicate<SingleConditionCheck.FormValueConditionData>
public final class SingleConditionCheck extends Object implements Predicate<SingleConditionCheck.FormValueConditionData>
Predicate that checks a single condition for aEWorkflowNodeType.FC_MULTIPLE_CONDITION
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SingleConditionCheck.FormValueConditionData
POJO with parameters fortest(FormValueConditionData)
.
-
Constructor Summary
Constructors Constructor Description SingleConditionCheck(IBaseWorkflowExecutionContext workflowContext)
Creates a new form value condition check for the new workflow engine.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
test(FcMultipleConditionProps.SingleCondition props)
Tests the form condition for the given values and operand.boolean
test(SingleConditionCheck.FormValueConditionData data)
boolean
test(String valueToCheck, EMatchCondition operator, String matchOperand)
Tests the form condition for the given values and operand.
-
-
-
Constructor Detail
-
SingleConditionCheck
public SingleConditionCheck(IBaseWorkflowExecutionContext workflowContext)
Creates a new form value condition check for the new workflow engine.- Parameters:
workflowContext
- Execution context of the new workflow engine.
-
-
Method Detail
-
test
public boolean test(FcMultipleConditionProps.SingleCondition props)
Tests the form condition for the given values and operand.- Parameters:
props
- Operand and values to check.- Returns:
- Whether the condition is satisfied or not.
-
test
public boolean test(SingleConditionCheck.FormValueConditionData data)
- Specified by:
test
in interfacePredicate<SingleConditionCheck.FormValueConditionData>
-
test
public boolean test(String valueToCheck, EMatchCondition operator, String matchOperand)
Tests the form condition for the given values and operand.- Parameters:
valueToCheck
- Left hand side, value to check against thematchOperand
.operator
- Operator indicating how the two values are compared against each other.matchOperand
- Right hand side, value to check against thevalueToCheck
.- Returns:
- Whether the condition is satisfied or not.
-
-