Package org.imixs.workflow
Class RuleEngineNashornConverter
- java.lang.Object
-
- org.imixs.workflow.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 Summary
Constructors Constructor Description RuleEngineNashornConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isDeprecatedScript(String script)
This method returns true if the script is detected as deprecated.static String
rewrite(String script, ItemCollection workitem, ItemCollection event)
This method tries to convert a deprecated Nashorn script into a new script dialect.
-
-
-
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:
-
-