public abstract class AbstractRuleCompilePublishComposer
extends ViewAnnotationAwareComposer
| Constructor and Description |
|---|
AbstractRuleCompilePublishComposer() |
| Modifier and Type | Method and Description |
|---|---|
void |
doAfterCompose(Component component) |
protected <T extends AbstractRuleModel> |
getAffectedRules(java.util.List<T> rules)
Provides a list of all the related rules for the provided rule set.
|
protected NotificationService |
getNotificationService() |
void |
handleRuleEngineModuleSwapCompletedEvent(CockpitEvent event) |
void |
handleRuleUpdatedEvent(CockpitEvent event) |
protected void |
onException(java.lang.Exception exception)
the method invoked upon exception
|
protected void |
onJobTriggered(CronJobModel cronJob)
the method invoked upon job being triggered
|
protected void |
onPublishingError(java.lang.String failureReason,
java.util.Collection<ResultItem> results)
the method invoked upon publishing errors
|
protected void |
onRuleUpdate(java.lang.String ruleCode)
the method invoked upon rule update
|
protected abstract void |
onSuccess(java.lang.String moduleName,
java.lang.String previousModuleVersion,
java.lang.String moduleVersion)
the method invoked upon publishing success
|
public void doAfterCompose(Component component)
throws java.lang.Exception
java.lang.Exceptionpublic void handleRuleEngineModuleSwapCompletedEvent(CockpitEvent event)
public void handleRuleUpdatedEvent(CockpitEvent event)
protected abstract void onSuccess(java.lang.String moduleName,
java.lang.String previousModuleVersion,
java.lang.String moduleVersion)
moduleName - name of the published modulepreviousModuleVersion - previous version of the modulemoduleVersion - current version of the moduleprotected void onPublishingError(java.lang.String failureReason,
java.util.Collection<ResultItem> results)
failureReason - failure reason messageresults - collection of publishing resultsprotected void onRuleUpdate(java.lang.String ruleCode)
ruleCode - code of the updated ruleprotected void onException(java.lang.Exception exception)
exception - the exception encounteredprotected void onJobTriggered(CronJobModel cronJob)
cronJob - the cron job to be used in notificationprotected <T extends AbstractRuleModel> java.util.List<T> getAffectedRules(java.util.List<T> rules)
rules - collection of rulesprotected NotificationService getNotificationService()
Copyright © 2018 SAP SE. All Rights Reserved.