Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Commit

Permalink
Merge pull request #22 from mattoshry/feat-content-expr
Browse files Browse the repository at this point in the history
content/@expr
  • Loading branch information
jbeard4 committed Aug 17, 2015
2 parents 65dcb36 + 08b96f8 commit 1bf4ec7
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions test/send-data/send1.scxml
Expand Up @@ -14,7 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<scxml
<scxml
datamodel="ecmascript"
xmlns="http://www.w3.org/2005/07/scxml"
version="1.0">
Expand All @@ -29,15 +29,15 @@
<transition target="b" event="t">
<send delayexpr="'10ms'" eventexpr="'s1'" namelist="foo bar">
<param name="bif" location="bat"/>
<param name="belt" expr="4"/>
<param name="belt" expr="4"/>
</send>
</transition>
</state>

<state id="b">
<transition event="s1" target="c"
cond="_event.data.foo === 1 &amp;&amp;
_event.data.bar === 2 &amp;&amp;
<transition event="s1" target="c"
cond="_event.data.foo === 1 &amp;&amp;
_event.data.bar === 2 &amp;&amp;
_event.data.bif === 3 &amp;&amp;
_event.data.belt === 4">

Expand All @@ -46,14 +46,18 @@
</send>

</transition>

<transition event="s1" target="f"/>
</state>


<state id="c">
<transition event="s2" target="d"
cond="_event.data === 'More content.'"/>
<transition event="s2" target="d"
cond="_event.data === 'More content.'">
<send eventexpr="'s3'">
<content expr="'Hello, world.'"/>
</send>
</transition>

<transition event="s2" target="f">
<log label="_event" expr="_event"/>
Expand All @@ -62,12 +66,17 @@


<state id="d">
<transition event="t2" target="e"/>
<transition event="s3" target="e"
cond="_event.data === 'Hello, world.'"/>

<transition event="s3" target="f">
<log label="_event" expr="_event"/>
</transition>
</state>

<state id="e"/>

<state id="f"/>
<state id="f"/>
</scxml>


0 comments on commit 1bf4ec7

Please sign in to comment.