Class VerifyField
- java.lang.Object
-
- org.drools.workbench.models.testscenarios.shared.VerifyField
-
public class VerifyField extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intTYPE_ENUMThis is not used yet.static intTYPE_FORMULAThis is for a "formula" that calculates a value.static intTYPE_LITERALThis may be string, or number, anything really.static intTYPE_PREDICATEThe fieldName and fieldBinding is not used in the case of a predicate.static intTYPE_UNDEFINEDThis is used only when action is first created.static intTYPE_VARIABLEThis is when it is set to a valid previously bound variable.
-
Constructor Summary
Constructors Constructor Description VerifyField()VerifyField(String fieldName, String expected, String operator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActualResult()StringgetExpected()StringgetExplanation()StringgetFieldName()longgetNature()StringgetOperator()BooleangetSuccessResult()voidsetActualResult(String actualResult)voidsetExpected(String expected)voidsetExplanation(String explanation)voidsetFieldName(String fieldName)voidsetNature(long nature)voidsetOperator(String operator)voidsetSuccessResult(Boolean successResult)
-
-
-
Field Detail
-
TYPE_UNDEFINED
public static final int TYPE_UNDEFINED
This is used only when action is first created. This means that there is no value yet for the constraint.- See Also:
- Constant Field Values
-
TYPE_LITERAL
public static final int TYPE_LITERAL
This may be string, or number, anything really.- See Also:
- Constant Field Values
-
TYPE_VARIABLE
public static final int TYPE_VARIABLE
This is when it is set to a valid previously bound variable.- See Also:
- Constant Field Values
-
TYPE_FORMULA
public static final int TYPE_FORMULA
This is for a "formula" that calculates a value.- See Also:
- Constant Field Values
-
TYPE_ENUM
public static final int TYPE_ENUM
This is not used yet. ENUMs are not suitable for business rules until we can get data driven non code enums.- See Also:
- Constant Field Values
-
TYPE_PREDICATE
public static final int TYPE_PREDICATE
The fieldName and fieldBinding is not used in the case of a predicate.- See Also:
- Constant Field Values
-
-
Method Detail
-
getNature
public long getNature()
-
setNature
public void setNature(long nature)
-
setFieldName
public void setFieldName(String fieldName)
-
getFieldName
public String getFieldName()
-
setExpected
public void setExpected(String expected)
-
getExpected
public String getExpected()
-
setActualResult
public void setActualResult(String actualResult)
-
getActualResult
public String getActualResult()
-
setSuccessResult
public void setSuccessResult(Boolean successResult)
-
getSuccessResult
public Boolean getSuccessResult()
-
setExplanation
public void setExplanation(String explanation)
-
getExplanation
public String getExplanation()
-
setOperator
public void setOperator(String operator)
-
getOperator
public String getOperator()
-
-