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
	</PARAMETERS>
81
	<ARCS>
82
		<ARC to="MD_BUILDER_INCREMENTAL"/>
83
	</ARCS>
84
</NODE>
85

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

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

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