You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ate Douma (JIRA)" <ji...@apache.org> on 2014/10/25 17:03:33 UTC
[jira] [Created] (SCXML-212) Add support for SCXML datamodel type
and default Evaluator instantiation
Ate Douma created SCXML-212:
-------------------------------
Summary: Add support for SCXML datamodel type and default Evaluator instantiation
Key: SCXML-212
URL: https://issues.apache.org/jira/browse/SCXML-212
Project: Commons SCXML
Issue Type: Improvement
Affects Versions: 2.0
Reporter: Ate Douma
Assignee: Ate Douma
Fix For: 2.0
The SCXML specification allows for defining the required datamodel (type) on the root SCXML element.
This datamodel type defines which language support the SCXML document requires.
For Commons SCXML this means: what Evaluator type should be instantiated and configured on the SCXMLExecutor.
I'll introduce a new singleton EvaluatorFactory holding new EvaluatorProvider instances for each currently supported Evaluator language: Jexl, Groovy, JS (ecmascript) and XPath, with the JexlEvaluatorProvider used as default.
The current requirement of having to instantiate and provide a specific Evaluator instance on the SCXMLExecutor then no longer is needed: an SCXML document now can define the datamodel attribute instead (or accept the JexlEvaluator as fallback).
It still is possible to use and configure a custom/dedicated Evaluator programmatically as before to override the new default handling.
The only new restriction is that an explicitly configured Evaluator must support the datamodel type defined on the SCXML document.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)