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="COLLECT"/>
10
	</ARCS>
11
</NODE>
12

    
13
<NODE name="COLLECT" type="CollectRecords">
14
	<DESCRIPTION>Start Harvesting</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
17
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
18
		<PARAM required="true" type="string" name="eprParam" managedBy="system">collected_epr</PARAM>
19
	</PARAMETERS>
20
	<ARCS>
21
		<ARC to="MD_BUILDER"/>
22
	</ARCS>
23
</NODE>
24

    
25
<NODE name="MD_BUILDER" type="MdBuilder">
26
	<DESCRIPTION>Prepare mdstore records</DESCRIPTION>
27
	<PARAMETERS>
28
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM>
29
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">store_epr</PARAM>
30
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
31
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
32
	</PARAMETERS>
33
	<ARCS>
34
		<ARC to="STORE"/>
35
	</ARCS>
36
</NODE>
37

    
38
<NODE name="STORE" type="StoreMDStoreRecords">
39
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
40
	<PARAMETERS>
41
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("orig_id")$</PARAM>
42
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
43
		<PARAM required="true" type="string" name="eprParam" managedBy="system">store_epr</PARAM>
44
	</PARAMETERS>
45
	<ARCS>
46
		<ARC to="UPDATE_INFO"/>
47
	</ARCS>
48
</NODE>
49

    
50
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
51
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
52
	<PARAMETERS>
53
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("orig_id")$</PARAM>
54
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
55
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
56
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_collection_total</PARAM>
57
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_collection_date</PARAM>
58
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_collection_mdId</PARAM>
59
	</PARAMETERS>
60
	<ARCS>
61
		<ARC to="success"/>
62
	</ARCS>
63
</NODE>
(1-1/4)