SCXML处理器必须维护 _ioprocessors系统变量,在这个变量中保存表示事件处理器的实体,这个实体中必须包含location字段,这个字段的值是外部实体可以通过处理器和这个SCXML会话交互的地址。比如下面的例子:
<send id="send-123"
target="http://scxml-processors.example.com/session2"
type="http://www.w3.org/TR/scxml/#SCXMLEventProcessor" event="email.send"
namelist="email content xmlcontent"/>
这里send中的类型是“http://www.w3.org/TR/scxml/#SCXMLEventProcessor”,target中定义了session的id。
网友评论