Project

General

Profile

1
<RESOURCE_PROFILE>
2
    <HEADER>
3
        <RESOURCE_IDENTIFIER value="4781ebbb-614c-4238-be9e-cbb469861597_V29ya2Zsb3dUZW1wbGF0ZURTUmVzb3VyY2VzL1dvcmtmbG93VGVtcGxhdGVEU1Jlc291cmNlVHlwZQ=="/>
4
        <RESOURCE_TYPE value="WorkflowTemplateDSResourceType"/>
5
        <RESOURCE_KIND value="WorkflowTemplateDSResources"/>
6
        <RESOURCE_URI value=""/>
7
        <DATE_OF_CREATION value="2017-01-17T17:00:00.0Z"/>
8
    </HEADER>
9
    <BODY>
10
        <CONFIGURATION>
11
            <PARAMETERS>
12
                <PARAM description="Store for transformed records" name="cleanMdstoreId" required="true" type="string"/>
13
                <PARAM description="OAI Format" name="OAIFormat" required="true" type="string"/>
14
                <PARAM description="OAI Layout" name="OAILayout" required="true" type="string"/>
15
                <PARAM description="OAI Interpretation" name="OAIInterpretation" required="true" type="string"/>
16
                <PARAM description="OAI Database Name" name="OAIDBName" required="true" type="string"/>
17
            </PARAMETERS>
18
            <WORKFLOW>
19
                <NODE isStart="true" name="fetchCleaned" type="FetchMDStoreRecords">
20
                    <DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
21
                    <PARAMETERS>
22
                        <PARAM name="mdId" ref="cleanMdstoreId"/>
23
                        <PARAM name="eprParam" value="orig_epr"/>
24
                    </PARAMETERS>
25
                    <ARCS>
26
                        <ARC to="oaiSync"/>
27
                    </ARCS>
28
                </NODE>
29
                <NODE name="oaiSync" type="SyncOAIStores">
30
                    <DESCRIPTION>Clean original records</DESCRIPTION>
31
                    <PARAMETERS>
32
                        <PARAM name="eprParam" value="orig_epr"/>
33
                        <PARAM name="oaiFormat" ref="OAIFormat"/>
34
                        <PARAM name="oaiLayout" ref="OAILayout"/>
35
                        <PARAM name="oaiInterpretation" ref="OAIInterpretation"/>
36
                        <PARAM name="oaiDbName" ref="OAIDBName"/>
37
                    </PARAMETERS>
38
                    <ARCS>
39
                        <ARC to="configIndexes"/>
40
                    </ARCS>
41
                </NODE>
42
                <NODE name="configIndexes" type="OAIEnsureIndexes">
43
                    <DESCRIPTION>Ensure an index exists on fields as specified in the configuration profile</DESCRIPTION>
44
                    <PARAMETERS>
45
                        <PARAM name="oaiFormat" ref="OAIFormat"/>
46
                        <PARAM name="oaiLayout" ref="OAILayout"/>
47
                        <PARAM name="oaiInterpretation" ref="OAIInterpretation"/>
48
                        <PARAM name="oaiDbName"  ref="OAIDBName"/>
49
                    </PARAMETERS>
50
                    <ARCS>
51
                        <ARC to="setsCount"/>
52
                    </ARCS>
53
                </NODE>
54
                <NODE name="setsCount" type="OAISetsCountUpdate">
55
                    <DESCRIPTION>Count records in each OAI set, for each exported metadata format linked to the given oai collection</DESCRIPTION>
56
                    <PARAMETERS>
57
                        <PARAM name="oaiFormat" ref="OAIFormat"/>
58
                        <PARAM name="oaiLayout" ref="OAILayout"/>
59
                        <PARAM name="oaiInterpretation" ref="OAIInterpretation"/>
60
                        <PARAM name="oaiDbName" ref="OAIDBName"/>
61
                        <PARAM name="configuredOnly" value="false"/>
62
                    </PARAMETERS>
63
                    <ARCS>
64
                        <ARC to="configSets"/>
65
                    </ARCS>
66
                </NODE>
67
                <NODE name="configSets" type="OAIRefreshConfiguration">
68
                    <DESCRIPTION>Reads the current OAI configuration and upsert OAI sets accordingly (counts are updated as well)</DESCRIPTION>
69
                    <PARAMETERS>
70
                        <PARAM name="oaiFormat" ref="OAIFormat"/>
71
                        <PARAM name="oaiLayout" ref="OAILayout"/>
72
                        <PARAM name="oaiInterpretation" ref="OAIInterpretation"/>
73
                        <PARAM name="oaiDbName" ref="OAIDBName"/>
74
                    </PARAMETERS>
75
                    <ARCS>
76
                        <ARC to="success"/>
77
                    </ARCS>
78
                </NODE>
79
            </WORKFLOW>
80
        </CONFIGURATION>
81
    </BODY>
82
</RESOURCE_PROFILE>
(9-9/11)