Class RuleEngineNashornConverter


  • public class RuleEngineNashornConverter
    extends Object
    This is a helper class to convert a deprecated script into the new format. The RuleEngineNashornConverter is called by the RuleEngine.
    Version:
    1.0
    Author:
    Ralph Soika
    • Constructor Detail

      • RuleEngineNashornConverter

        public RuleEngineNashornConverter()
    • Method Detail

      • isDeprecatedScript

        public static boolean isDeprecatedScript​(String script)
        This method returns true if the script is detected as deprecated. A deprecated script was implemented Initially for the version 3.0 (Nashorn engine).
        Parameters:
        script -
        Returns:
      • rewrite

        public static String rewrite​(String script,
                                     ItemCollection workitem,
                                     ItemCollection event)
        This method tries to convert a deprecated Nashorn script into a new script dialect.
        Parameters:
        script -
        documentContext -
        event -
        Returns: