Project

General

Profile

1 41496 michele.ar
<?xml version="1.0" encoding="UTF-8"?>
2
<RESOURCE_PROFILE>
3 48701 sandro.lab
    <HEADER>
4
        <RESOURCE_IDENTIFIER
5
                value="be04ef26-12aa-46eb-9c67-60ca18e29539_V29ya2Zsb3dUZW1wbGF0ZURTUmVzb3VyY2VzL1dvcmtmbG93VGVtcGxhdGVEU1Jlc291cmNlVHlwZQ=="/>
6
        <RESOURCE_TYPE value="WorkflowTemplateDSResourceType"/>
7
        <RESOURCE_KIND value="WorkflowTemplateDSResources"/>
8
        <RESOURCE_URI value=""/>
9
        <DATE_OF_CREATION value="2001-12-31T12:00:00"/>
10
    </HEADER>
11
    <BODY>
12
        <CONFIGURATION>
13
            <PARAMETERS>
14
                <PARAM name="dsId" description="Datasource Id" required="true" type="string"/>
15
                <PARAM name="interface" description="Datasource Interface" required="true" type="string"/>
16
                <PARAM name="collMdstoreId" description="Store for collected records" required="true" type="string"/>
17
                <PARAM name="from_date" description="From Date" required="false" type="string"/>
18
            </PARAMETERS>
19
            <WORKFLOW>
20 41496 michele.ar
21 48701 sandro.lab
22
                <NODE name="FindDateRangeForIncrementalHarvesting" type="FindDateRangeForIncrementalHarvesting"
23
                      isStart="true">
24
                    <DESCRIPTION>Find Last execution</DESCRIPTION>
25
                    <PARAMETERS>
26
                        <PARAM name="fromDateParam" ref="fromDateParam"/>
27
                    </PARAMETERS>
28
29
                    <ARCS>
30
                        <ARC to="COLLECT_INCREMENTAL"/>
31
                    </ARCS>
32
                </NODE>
33
34
35
                <NODE name="COLLECT_INCREMENTAL" type="DateRangeCollectRecords">
36
                    <DESCRIPTION>Start Harvesting</DESCRIPTION>
37
                    <PARAMETERS>
38
                        <PARAM name="datasourceId" ref="dsId"/>
39
                        <PARAM name="datasourceInterface" ref="interface"/>
40
                        <PARAM name="eprParam" value="collected_epr"/>
41
                        <PARAM name="from" ref="from_date"/>
42
                        <PARAM name="fromDateParam" ref="fromDateParam"/>
43
                    </PARAMETERS>
44
                    <ARCS>
45
                        <ARC to="MD_BUILDER"/>
46
                    </ARCS>
47
                </NODE>
48
                <NODE name="MD_BUILDER" type="MdBuilder">
49
                    <DESCRIPTION>Prepare mdstore records</DESCRIPTION>
50
                    <PARAMETERS>
51
                        <PARAM name="inputEprParam" value="collected_epr"/>
52
                        <PARAM name="outputEprParam" value="store_epr"/>
53
                        <PARAM name="datasourceId" ref="dsId"/>
54
                        <PARAM name="datasourceInterface" ref="interface"/>
55
                    </PARAMETERS>
56
                    <ARCS>
57
                        <ARC to="STORE_REFRESH"/>
58
                    </ARCS>
59
                </NODE>
60
                <NODE name="STORE_REFRESH" type="StoreMDStoreRecords">
61
                    <DESCRIPTION>Store mdstore records</DESCRIPTION>
62
                    <PARAMETERS>
63
                        <PARAM name="mdId" ref="collMdstoreId"/>
64
                        <PARAM name="storingType" value="REFRESH"/>
65
                        <PARAM name="eprParam" value="store_epr"/>
66
                    </PARAMETERS>
67
                    <ARCS>
68
                        <ARC to="UPDATE_INFO"/>
69
                    </ARCS>
70
                </NODE>
71
                <NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
72
                    <DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
73
                    <PARAMETERS>
74
                        <PARAM name="mdId" ref="collMdstoreId"/>
75
                        <PARAM name="datasourceId" ref="dsId"/>
76
                        <PARAM name="datasourceInterface" ref="interface"/>
77
                        <PARAM name="extraFieldForTotal" value="last_collection_total"/>
78
                        <PARAM name="extraFieldForDate" value="last_collection_date"/>
79
                        <PARAM name="extraFieldForMdId" value="last_collection_mdId"/>
80
                    </PARAMETERS>
81
                    <ARCS>
82
                        <ARC to="success"/>
83
                    </ARCS>
84
                </NODE>
85
86
            </WORKFLOW>
87
        </CONFIGURATION>
88
    </BODY>
89 41496 michele.ar
</RESOURCE_PROFILE>