Foundations Apex API Developer Reference

fferpcore.ConditionalMapping

global with sharing class ConditionalMapping extends SubscriptionDescription.Mapping

A fferpcore.SubscriptionDescription.Mapping 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 extends fferpcore.SubscriptionDescription.Mapping

Methods

ConditionalMapping

global ConditionalMapping(String sourceConditionKey, Mapping mapping)

Construct a conditional subscription description mapping.

Input Parameters

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

ConditionalMapping

global ConditionalMapping(List<String> sourceConditionKey, Mapping mapping)

Construct a conditional subscription description 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 Mapping The mapping to process if the message data is valid.

withNegation

global fferpcore.ConditionalMapping withNegation()

Set the conditional 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.

performImmediateActions

global override void performImmediateActions(ApplyMappingRequest request)

performBulkActions

global override void performBulkActions()

getMapping

global Mapping getMapping()

getConditionKey

global List<String> getConditionKey()

getMessageKeys

global override List<List<String>> getMessageKeys()

getAdditionalSelections

global override Set<String> getAdditionalSelections()

getTargetFields

global override Set<String> getTargetFields()

disableFields

global override void disableFields(Set<String> fieldNames)

isDisabled

global override Boolean isDisabled()

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