Interface IWorkflowHandlerValidationContext
-
- All Known Subinterfaces:
IWorkflowGlobalHandlerValidationContext
,IWorkflowLocalHandlerValidationContext
- All Known Implementing Classes:
DefaultWorkflowValidationContext
public interface IWorkflowHandlerValidationContext
Common methods for validation contexts used by node handlers.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ResourceBundle
getCurrentResourceBundle()
Resolves the resource bundle to be used for the workflow element that is currently being validated.default String
getLocalizedMessage(String i18nKey, String defaultMessage, Object... params)
Uses thegetCurrentResourceBundle()
to find the localized message with the given key.
-
-
-
Method Detail
-
getCurrentResourceBundle
ResourceBundle getCurrentResourceBundle()
Resolves the resource bundle to be used for the workflow element that is currently being validated. This resource bundle takes into account the default resource bundle offered by FORMCYCLE, as well as the custom resource bundle indicated byIElementHandler.getResourceBundle(Locale)
.Please note as this depends upon the workflow element currently being validated, you should not store references to the returned bundle, always call this method directly.
- Returns:
- The current resource bundle containing all messages of the custom FORMCYCLE resources and the custom resources of the node or trigger handler.
-
getLocalizedMessage
default String getLocalizedMessage(String i18nKey, String defaultMessage, Object... params)
Uses thegetCurrentResourceBundle()
to find the localized message with the given key. Makes sure to never throw an exception. When no localized message for the given key can be found, return the default message.- Parameters:
i18nKey
- Key for looking up the localized message.defaultMessage
- The message that is returned when no message for the given key is found.params
- Values for formatting messages with parameters.- Returns:
- The formatted, localized message for the given key.
-
-