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)
Deprecated.SingleConditionCheck(Function<String,String> placeholderReplacer)
Creates a new form value condition check with the given locale and replacer.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
test(FcMultipleConditionProps.SingleCondition props)
Deprecated.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(Function<String,String> placeholderReplacer)
Creates a new form value condition check with the given locale and replacer.- Parameters:
placeholderReplacer
- Placeholder replacer applied to the left and right hand sides of the condition.
-
SingleConditionCheck
@Deprecated public SingleConditionCheck(IBaseWorkflowExecutionContext workflowContext)
Deprecated.Creates a new form value condition check for the new workflow engine.- Parameters:
workflowContext
- Execution context of the new workflow engine.
-
-
Method Detail
-
test
@Deprecated public boolean test(FcMultipleConditionProps.SingleCondition props)
Deprecated.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.
-
-