-
Notifications
You must be signed in to change notification settings - Fork 8
/
test-link-onAbort.ncl
34 lines (34 loc) · 1.02 KB
/
test-link-onAbort.ncl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<ncl>
<head>
<connectorBase>
<causalConnector id="onBeginAbort">
<connectorParam name="var"/>
<simpleCondition role="onBegin"/>
<simpleAction role="abort"/>
</causalConnector>
<causalConnector id="onAbortSet">
<connectorParam name="var"/>
<simpleCondition role="onAbort"/>
<simpleAction role="set" value="$var"/>
</causalConnector>
</connectorBase>
</head>
<body>
<port id="start" component="time"/>
<media id="time">
<property name="background" value="red"/>
<property name="bounds" value="0%,0%,100%,100%"/>
<area id="a1" begin="1s"/>
</media>
<link xconnector="onBeginAbort">
<bind role="onBegin" component="time" interface="a1"/>
<bind role="abort" component="time"/>
</link>
<link xconnector="onAbortSet">
<bind role="onAbort" component="time"/>
<bind role="set" component="time" interface="background">
<bindParam name="var" value="green"/>
</bind>
</link>
</body>
</ncl>