Repository navigation
Expand file tree
/
Copy pathmodel.xml
More file actions
95 lines (48 loc) · 4.59 KB
/
Copy pathmodel.xml
File metadata and controls
95 lines (48 loc) · 4.59 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<project heartbeat-interval="1" luaroot="@ESP_PROJECT_OUTPUT@/luaroot" name="remove_state" pubsub="auto" threads="1">
<description><![CDATA[This model demonstrates how to facilitate the transition of a stateful part of a model to a stateless part of a model.]]></description>
<metadata>
<meta id="studioUploadedBy">anonymousUser</meta>
<meta id="studioUploaded">1696245008844</meta>
<meta id="studioModifiedBy">anonymousUser</meta>
<meta id="studioModified">1696246345281</meta>
<meta id="layout">{"cq1":{"copyWindow":{"x":50,"y":295},"removestateWindow":{"x":50,"y":175},"sourceWindow":{"x":50,"y":50}}}</meta>
<meta id="studioTags">Example</meta>
</metadata>
<contqueries>
<contquery include-singletons="true" name="cq1" trace="removestateWindow">
<windows>
<window-source name="sourceWindow" pubsub="true">
<description><![CDATA[The Source window in this model receives input data from a CSV file containing stock market trades. The input data specifies a unique ID for each trade, the stock market symbol of the purchased stock, the "true_test" value for each trade and the cost of purchasing the stock for each trade.]]></description>
<schema>
<fields>
<field key="true" name="ID" type="int32"/>
<field name="symbol" type="string"/>
<field name="true_test" type="int32"/>
<field name="price" type="double"/>
</fields>
</schema>
<connectors>
<connector class="fs" name="input_removestate">
<properties>
<property name="type"><![CDATA[pub]]></property>
<property name="fsname"><![CDATA[@ESP_PROJECT_HOME@/test_files/InputRemove.csv]]></property>
<property name="fstype"><![CDATA[csv]]></property>
</properties>
</connector>
</connectors>
</window-source>
<window-remove-state add-log-fields="true" name="removestateWindow" pubsub="true" remove="updates deletes retentionUpdates retentionDeletes">
<description><![CDATA[A Remove State window facilitates the transition of a stateful part of a model to a stateless part of a model. A Remove State window converts all events that it receives into Inserts and adds a field named eventNumber. This field is the only key field of a Remove State window.]]></description>
</window-remove-state>
<window-copy index="pi_RBTREE" name="copyWindow" pubsub="true">
<description><![CDATA[This Copy window retains the data from the Remove State window according to the set retention policy, which in this model, is 30 seconds.]]></description>
<retention type="bytime_sliding"><![CDATA[30 seconds]]></retention>
</window-copy>
</windows>
<edges>
<edge source="sourceWindow" target="removestateWindow"/>
<edge source="removestateWindow" target="copyWindow"/>
</edges>
</contquery>
</contqueries>
</project>