Interface IntegrationRuleService
- All Superinterfaces:
Service
-
Method Summary
Modifier and TypeMethodDescriptionevaluateFieldRules
(EvaluateFieldRulesRequest evaluateFieldRulesRequest) Evaluates a constructedEvaluateFieldRulesRequest
.evaluateFieldRules
(IntegrationRule integrationRule, String targetName, JsonObject queryDescribe, JsonObject data) Deprecated.getIntegrationRules
(GetIntegrationRulesRequest getIntegrationRulesRequest) Retrieves the list ofIntegrationRules
corresponding to a Connection based on theGetIntegrationRulesRequest
.getIntegrationRules
(String connectionId) Deprecated.as of 19R3.2, replaced bygetIntegrationRules(GetIntegrationRulesRequest)
getIntegrationRulesByIntegrationPoint
(String connectionId, String integrationPointAPIName) Deprecated.as of 19R3.2, replaced bygetIntegrationRules(GetIntegrationRulesRequest)
Begin a request to evaluate field rule.Begin a request to get integration rules.Creates anIntegrationRuleQuery.Builder
.
-
Method Details
-
getIntegrationRules
Deprecated.as of 19R3.2, replaced bygetIntegrationRules(GetIntegrationRulesRequest)
Retrieves the list of IntegrationRules corresponding to a Connection given a connection ID.If there are no rules corresponding to the connection ID, this returns an empty collection. If the connection ID does not exist or is inactive, this throws an exception.
- Parameters:
connectionId
- connection ID- Returns:
- a Collection of IntegrationRule contract objects
-
evaluateFieldRules
@Deprecated Collection<FieldRuleResult> evaluateFieldRules(IntegrationRule integrationRule, String targetName, JsonObject queryDescribe, JsonObject data) Deprecated.as of 19R3.2, replaced byevaluateFieldRules(EvaluateFieldRulesRequest)
Evaluates all field rules under the IntegrationRule object with the given name.For each field rule, returns the resulting value for a field based on the evaluation of the rule against a json query response record.
Throws an error if the target is not found in the query response.
- Parameters:
integrationRule
- corresponding integrationRule componenttargetName
- name of target fieldqueryDescribe
- the metadata for the querydata
- json query response record- Returns:
- a Collection of FieldRuleResults which contain the resulting value of the for the target based on the evaluation of the integration rule
-
getIntegrationRulesByIntegrationPoint
@Deprecated Collection<IntegrationRule> getIntegrationRulesByIntegrationPoint(String connectionId, String integrationPointAPIName) Deprecated.as of 19R3.2, replaced bygetIntegrationRules(GetIntegrationRulesRequest)
For internal Veeva use only. Retrieves the list of IntegrationRules corresponding to a Connection given a connection ID and an integration point API name.If there are no rules corresponding to the connection ID and integration point API name, this returns an empty collection. If the connection ID does not exist or is inactive, this throws an exception. If the integration point API name does not exist, this throws an exception.
- Parameters:
connectionId
- connection IDintegrationPointAPIName
- integration point API name- Returns:
- a Collection of IntegrationRule contract objects
-
newGetIntegrationRulesRequestBuilder
GetIntegrationRulesRequestBuilder newGetIntegrationRulesRequestBuilder()Begin a request to get integration rules. This method builds aGetIntegrationRulesRequestBuilder
object.- Returns:
GetIntegrationRulesRequestBuilder
contract object.
-
getIntegrationRules
GetIntegrationRulesResponse getIntegrationRules(GetIntegrationRulesRequest getIntegrationRulesRequest) Retrieves the list ofIntegrationRules
corresponding to a Connection based on theGetIntegrationRulesRequest
.If there are no rules corresponding to the connection ID, this returns an empty Collection. If the connection ID does not exist or is inactive, this throws an exception.
- Parameters:
getIntegrationRulesRequest
- theGetIntegrationRulesRequest
to retrieve the integration rules from- Returns:
GetIntegrationRulesResponse
object which contains the list of IntegrationRules
-
newEvaluateFieldRulesRequestBuilder
EvaluateFieldRulesRequestBuilder newEvaluateFieldRulesRequestBuilder()Begin a request to evaluate field rule. This method builds anEvaluateFieldRulesRequestBuilder
object.- Returns:
EvaluateFieldRulesRequestBuilder
contract object
-
evaluateFieldRules
Evaluates a constructedEvaluateFieldRulesRequest
.Evaluates all field rules under the
IntegrationRule
object with the given name. For each field rule, returns the resulting value for a field based on the evaluation of the rule against a JSON query response record.If an error occurs when evaluating a field rule, the error type and message are placed in the
FieldRuleResult
.- Parameters:
evaluateFieldRulesRequest
- theEvaluateFieldRulesRequest
object to evaluate- Returns:
- an
EvaluateFieldRulesResponse
object which contains data about the evaluation
-
newIntegrationRuleQueryBuilder
IntegrationRuleQuery.Builder newIntegrationRuleQueryBuilder()Creates anIntegrationRuleQuery.Builder
.- Returns:
- an
IntegrationRuleQuery.Builder
-
evaluateFieldRules(EvaluateFieldRulesRequest)