【发布时间】:2016-02-02 21:07:57
【问题描述】:
我正在使用 Apache Commons SCXML 0.9,但我找不到如何添加 CustomAction。我找到了使用 v2.0-SNAPSHOT 的示例(顺便说一句,我不知道从哪里得到它),但似乎在 v0.9 上不起作用,到目前为止我得到了这样的东西:
CustomAction customAction = new CustomAction("http://my.custom-actions.domain/CUSTOM", "my", MyCustomAction.class);
List<CustomAction> customActions = new ArrayList<CustomAction>();
customActions.add(customAction);
对于 v2.0-SNAPSHOT,我可以写:
SCXML scxml = SCXMLTestHelper.parse("path/to/my/sm.xml", customActions);
然后,获取SCXMLExecutor 并调用SCXMLExecutor.go 方法,但我找不到v0.9 的任何选项,请在这里我需要你的帮助。
最好的问候
【问题讨论】:
标签: java scxml apache-commons-scxml