The ME_ConfigurationSupportAPI class exposes a number of global static methods that you can call from your APEX code to integrate your application with the Response Management Application. Access it from your application using the full name including the namespace:
FCRM.ME_ConfigurationSupportAPI.
DisableMatchingEngineApplication
void DisableMatchingEngineApplication(String appName)
Disables all configuration sets associated with an application for the duration of the execution context or until EnableMatchingEngineApplication() is subsequently called. Can be used by external code to disable/enable Matching Engine applications. This method might be needed in unit tests with SeeAllData=true and need to turn off Matching Engine applications in order to properly create/update setup objects.
EnableMatchingEngineApplication
void EnableMatchingEngineApplication(String appName)
Undoes DisableMatchingEngineApplication() and enables all configuration sets associated with an application for the duration of the execution context.
DisableMatchingEngineConfigurationSet
void DisableMatchingEngineConfigurationSet(String appName, String configSetName)
Disables a single configuration set in an application for the duration of the execution context or until EnableMatchingEngineConfigurationSet() is subsequently called. Like with DisableMatchingEngineApplication(), this method can be used by external code to disable/enable Matching Engine specified configuration sets. This methods might be needed in unit tests with SeeAllData=true and need to turn off Matching Engine certain configuration sets in order to properly create/update setup objects. Use this method instead of DisableMatchingEngineApplication() if your code requires some, but not all configuration sets enabled in an application.
EnableMatchingEngineConfigurationSet
void EnableMatchingEngineConfigurationSet(String appName, String configSetName)
Undoes DisableMatchingEngineConfigurationSet() and Enables a single configuration set in an application for the duration of the execution context
MigrateResponseReactivationSettings
Boolean MigrateResponseReactivationSettings(String configJSON)
Migrates settings from the Response Reactivation unmanaged package into the {{rm_short_name}} managed package. Accepts a JSON string representing the custom settings of the Response Reactivation package.
MigrateScoreReevaluationSettings
Boolean MigrateScoreReevaluationSettings(String rmScoreEvaluationConfigJSON, Set<String> activeStatusMapConfigJSON)
Migrates settings from the Score Reevaluation unmanaged package into the {{rm_short_name}} managed package. Accepts a JSON string representing the RM_Score_Evaluation_Config setting, and a Set of JSON strings representing all variations fo the Active_Status_Map custom setting.
Comments
0 comments
Please sign in to leave a comment.