Package com.onenetwork.platform.common
Interface ValidationRulePart
- All Known Implementing Classes:
ValidationRuleIf
,ValidationRuleThen
public interface ValidationRulePart
Interface capturing the commonality between
ValidationRuleThen
and ValidationRuleThen
.-
Method Summary
Modifier and Type Method Description java.lang.String
getExpression()
PlatformEL expression to be evaluated.java.lang.String
getOperator()
Each SubContext may have zero, one or many values for a given Context.java.lang.String
getSubContext()
Within a Context, there can be multiple "SubContexts" of data.java.lang.Long
getSysId()
Sys id of this ValidationRulePart.java.lang.Long
getSysValidationRuleId()
Sys id of the ValidationRule to which this part appliesjava.lang.String
getValidationRuleEnterpriseName()
Enterprise Name of the ValidationRule owning this part.java.lang.String
getValidationRuleName()
Name of the ValidationRule owning this part.
-
Method Details
-
getSubContext
java.lang.String getSubContext()Within a Context, there can be multiple "SubContexts" of data. For example, for a Context of "Order Update", there might be one SubContext for "OrderHeader" and another for "OrderLine", each of which passes different values. Each ValidationRulePart can be applied to only one SubContext, and this field specifies which. -
getExpression
java.lang.String getExpression()PlatformEL expression to be evaluated. The values bound to the expression vary based on ValidationRule.Context and on the SubContext. -
getOperator
java.lang.String getOperator()Each SubContext may have zero, one or many values for a given Context. For example, if the context is "Order Update", there might be multiple "OrderLine" subcontext values. This operator determines whether ANY of those must evaluate to true for the "if" condition to be satisfied, or if ALL of those must evaluate to true. -
getSysValidationRuleId
java.lang.Long getSysValidationRuleId()Sys id of the ValidationRule to which this part applies -
getValidationRuleName
java.lang.String getValidationRuleName()Name of the ValidationRule owning this part. -
getValidationRuleEnterpriseName
java.lang.String getValidationRuleEnterpriseName()Enterprise Name of the ValidationRule owning this part. -
getSysId
java.lang.Long getSysId()Sys id of this ValidationRulePart.
-