Package org.imixs.workflow
Class RuleEngineNashornConverter
java.lang.Object
org.imixs.workflow.RuleEngineNashornConverter
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
RuleEngineNashornConverter
public RuleEngineNashornConverter()
-
-
Method Details
-
isDeprecatedScript
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
This method tries to convert a deprecated Nashorn script into a new script dialect.- Parameters:
script
-documentContext
-event
-- Returns:
-