Foundations Apex API Developer Reference

fferpcore.ConditionalSubscriptionMapping

global with sharing class ConditionalSubscriptionMapping implements SubscriptionMapping, VirtualDataObjectTargetMapping, ClientConditionalSubscriptionMapping

A fferpcore.SubscriptionMapping that processes the specified mapping if a designated message key contains one of the following values:

  • Boolean - True.
  • Integer - Any value other than zero.
  • Decimal - Any value other than zero.
  • String - Any string with a length greater than zero.

This class implements the following interfaces:

Methods

ConditionalSubscriptionMapping

global ConditionalSubscriptionMapping(String sourceConditionKey, fferpcore.SubscriptionMapping mapping)

Construct a conditional subscription mapping.

Input Parameters

Name Type Description
sourceConditionKey String The message key that must contain a suitable value in order to process the mapping.
mapping fferpcore.SubscriptionMapping The mapping to process if the message data is valid.

ConditionalSubscriptionMapping

global ConditionalSubscriptionMapping(List<String> sourceConditionKey, fferpcore.SubscriptionMapping mapping)

Construct a conditional subscription mapping.

Input Parameters

Name Type Description
sourceConditionKey List<String> The message key that must contain a suitable value in order to process the mapping.
mapping fferpcore.SubscriptionMapping The mapping to process if the message data is valid.

withNegation

global fferpcore.ConditionalSubscriptionMapping withNegation()

Set the mapping condition to be negated.

Return Value

An instance of the conditional mapping.

isNegated

global Boolean isNegated()

Get the negated value to determine whether the mapping condition is negated.

Return Value

True if the mapping condition is negated.

getMapping

global fferpcore.SubscriptionMapping getMapping()

getConditionKey

global List<String> getConditionKey()

performImmediateActions

global void performImmediateActions(fferpcore.ApplyMappingRequest2 request)

performBulkActions

global void performBulkActions()

getMessageKeys

global List<List<String>> getMessageKeys()

prepare

global void prepare(fferpcore.DataTarget dt)

disableOutputTo

global void disableOutputTo(Set<String> output)

isDisabled

global Boolean isDisabled()

getTargetFields

global Set<String> getTargetFields()

getTransformTableId

global String getTransformTableId()

isDeclarative

global Boolean isDeclarative()

setDeclarative

global void setDeclarative(Boolean value)

getChildren

global List<fferpcore.SubscriptionMapping> getChildren()

canHaveChildren

global Boolean canHaveChildren()

performImmediateActions

global void performImmediateActions(fferpcore.VirtualDataObjectMappingRequest request)

prepareSource

global void prepareSource(fferpcore.VirtualDataObject.PreparableSource preparableSource)

performAfterCommitActions

global void performAfterCommitActions(fferpcore.VirtualDataObjectMappingRequest request)

© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.