Search in sources :

Example 1 with BaseEventImpl

use of com.evolveum.midpoint.notifications.impl.events.BaseEventImpl in project midpoint by Evolveum.

the class NotificationExpressionHelper method getDefaultVariables.

public VariablesMap getDefaultVariables(Event event, OperationResult result) {
    VariablesMap variables = new VariablesMap();
    ((BaseEventImpl) event).createVariablesMap(variables, result);
    variables.put(ExpressionConstants.VAR_TEXT_FORMATTER, textFormatter, TextFormatter.class);
    variables.put(ExpressionConstants.VAR_NOTIFICATION_FUNCTIONS, notificationFunctions, NotificationFunctions.class);
    PrismObject<SystemConfigurationType> systemConfiguration = getSystemConfiguration(result);
    variables.put(ExpressionConstants.VAR_CONFIGURATION, systemConfiguration, systemConfiguration.getDefinition());
    return variables;
}
Also used : BaseEventImpl(com.evolveum.midpoint.notifications.impl.events.BaseEventImpl) VariablesMap(com.evolveum.midpoint.schema.expression.VariablesMap)

Aggregations

BaseEventImpl (com.evolveum.midpoint.notifications.impl.events.BaseEventImpl)1 VariablesMap (com.evolveum.midpoint.schema.expression.VariablesMap)1