Interface RuleActionsConverter

  • All Known Implementing Classes:
    DefaultRuleActionsConverter

    public interface RuleActionsConverter
    Implementations of this interface can perform conversions between actions data objects and a String representation of those objects.
    • Method Detail

      • toString

        java.lang.String toString​(java.util.List<RuleActionData> actions,
                                  java.util.Map<java.lang.String,​RuleActionDefinitionData> actionDefinitions)
        Converts the action data objects to a String representation. In most cases it is better to use RuleActionsService#convertActionsToString(List).
        Parameters:
        actions - - the action data objects
        actionDefinitions - - action definitions
        Returns:
        the String representation
      • fromString

        java.util.List<RuleActionData> fromString​(java.lang.String actions,
                                                  java.util.Map<java.lang.String,​RuleActionDefinitionData> actionDefinitions)
        Converts the String representation to action data objects. In most cases it is better to use RuleActionsService#convertActionsFromString(String).
        Parameters:
        actions - - the String representation
        actionDefinitions - - action definitions
        Returns:
        the action data objects