Project

General

Profile

1
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="SELECT_MODE"/>
10
	</ARCS>
11
</NODE>
12

    
13
 <NODE name="SELECT_MODE" type="Selection">
14
	<DESCRIPTION>Choose collection mode</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="selection" managedBy="user" function="validValues(['REFRESH','INCREMENTAL'])">REFRESH</PARAM>
17
	</PARAMETERS>
18
	<ARCS>
19
		<ARC to="COLLECT_REFRESH" name="REFRESH" />
20
		<ARC to="PREPARE_INCREMENTAL" name="INCREMENTAL" />
21
	</ARCS>
22
</NODE>
23

    
24
<NODE name="COLLECT_REFRESH" type="CollectRecords">
25
	<DESCRIPTION>Start Harvesting</DESCRIPTION>
26
	<PARAMETERS>
27
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
28
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
29
		<PARAM required="true" type="string" name="eprParam" managedBy="system">collected_epr</PARAM>
30
	</PARAMETERS>
31
	<ARCS>
32
		<ARC to="MD_BUILDER_REFRESH"/>
33
	</ARCS>
34
</NODE>
35

    
36
<NODE name="MD_BUILDER_REFRESH" type="MdBuilder">
37
	<DESCRIPTION>Prepare mdstore records</DESCRIPTION>
38
	<PARAMETERS>
39
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM>
40
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">store_epr</PARAM>
41
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
42
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
43
	</PARAMETERS>
44
	<ARCS>
45
		<ARC to="STORE_REFRESH"/>
46
	</ARCS>
47
</NODE>
48

    
49
<NODE name="STORE_REFRESH" type="StoreMDStoreRecords">
50
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
51
	<PARAMETERS>
52
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("orig_id")$</PARAM>
53
		 <PARAM managedBy="system" name="storingType" required="true" type="string">REFRESH</PARAM>
54
		<PARAM required="true" type="string" name="eprParam" managedBy="system">store_epr</PARAM>
55
	</PARAMETERS>
56
	<ARCS>
57
		<ARC to="UPDATE_INFO"/>
58
	</ARCS>
59
</NODE>
60

    
61
<NODE name="PREPARE_INCREMENTAL" type="FindDateRangeForIncrementalHarvesting">
62
	<DESCRIPTION>Find Date Range For Incremental Harvesting</DESCRIPTION>
63
	<PARAMETERS>
64
		<PARAM required="true" type="string" name="fromDateParam" managedBy="system">FROM_DATE</PARAM>
65
		<PARAM required="true" type="string" name="untilDateParam" managedBy="system">UNTIL_DATE</PARAM>
66
	</PARAMETERS>
67
	<ARCS>
68
		<ARC to="COLLECT_INCREMENTAL"/>
69
	</ARCS>
70
</NODE>
71

    
72
<NODE name="COLLECT_INCREMENTAL" type="DateRangeCollectRecords">
73
	<DESCRIPTION>Start incremental harvesting</DESCRIPTION>
74
	<PARAMETERS>
75
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
76
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
77
		<PARAM required="true" type="string" name="eprParam" managedBy="system">collected_epr</PARAM>
78
		<PARAM required="true" type="string" name="fromDateParam" managedBy="system">FROM_DATE</PARAM>
79
		<PARAM required="true" type="string" name="untilDateParam" managedBy="system">UNTIL_DATE</PARAM>
80
		<PARAM required="false" type="string" name="overrideFrom" managedBy="user"></PARAM>
81
        <PARAM required="false" type="string" name="overrideUntil" managedBy="user"></PARAM>
82
	</PARAMETERS>
83
	<ARCS>
84
		<ARC to="MD_BUILDER_INCREMENTAL"/>
85
	</ARCS>
86
</NODE>
87

    
88
<NODE name="MD_BUILDER_INCREMENTAL" type="MdBuilder">
89
	<DESCRIPTION>Prepare mdstore records</DESCRIPTION>
90
	<PARAMETERS>
91
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM>
92
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">store_epr</PARAM>
93
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
94
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
95
	</PARAMETERS>
96
	<ARCS>
97
		<ARC to="STORE_INCREMENTAL"/>
98
	</ARCS>
99
</NODE>
100

    
101
<NODE name="STORE_INCREMENTAL" type="StoreMDStoreRecords">
102
	<DESCRIPTION>Store mdstore records incrementally</DESCRIPTION>
103
	<PARAMETERS>
104
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("orig_id")$</PARAM>
105
		<PARAM required="true" type="string" name="storingType" managedBy="system">INCREMENTAL</PARAM>
106
		<PARAM required="true" type="string" name="eprParam" managedBy="system">store_epr</PARAM>
107
	</PARAMETERS>
108
	<ARCS>
109
		<ARC to="UPDATE_INFO"/>
110
	</ARCS>
111
</NODE>
112

    
113
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
114
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
115
	<PARAMETERS>
116
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("orig_id")$</PARAM>
117
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
118
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
119
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_collection_total</PARAM>
120
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_collection_date</PARAM>
121
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_collection_mdId</PARAM>
122
	</PARAMETERS>
123
	<ARCS>
124
		<ARC to="success"/>
125
	</ARCS>
126
</NODE>
(1-1/5)