Package org.imixs.workflow
Klasse 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
- Autor:
- Ralph Soika
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic booleanisDeprecatedScript(String script) This method returns true if the script is detected as deprecated.static Stringrewrite(String script, ItemCollection workitem, ItemCollection event) This method tries to convert a deprecated Nashorn script into a new script dialect.
-
Konstruktordetails
-
RuleEngineNashornConverter
public RuleEngineNashornConverter()
-
-
Methodendetails
-
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).- Parameter:
script-- Gibt zurück:
-
rewrite
This method tries to convert a deprecated Nashorn script into a new script dialect.- Parameter:
script-event-documentContext-- Gibt zurück:
-