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

    
13

    
14
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
15
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
16
	<PARAMETERS>
17
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
18
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("harv_format")$</PARAM>
19
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
20
	</PARAMETERS>
21
	<ARCS>
22
		<ARC to="cleanRecords"/>
23
	</ARCS>
24
</NODE>
25
<NODE name="cleanRecords" type="Clean">
26
	<DESCRIPTION>Clean DB rows values according to defined vocabularies</DESCRIPTION>
27
	<PARAMETERS>
28
		<PARAM required="true" type="string" name="ruleId" managedBy="user" category="CLEANER_RULE_ID" function="listProfiles('CleanerDSResourceType', '//CLEANER_NAME')"></PARAM>
29
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
30
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">cleaned_row_epr</PARAM>
31
	</PARAMETERS>
32
	<ARCS>
33
		<ARC to="storeCleanedRecords"/>
34
	</ARCS>
35
</NODE>
36

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

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

    
(1-1/7)