1
|
<RESOURCE_PROFILE>
|
2
|
<HEADER>
|
3
|
<RESOURCE_IDENTIFIER
|
4
|
value="d24261dd-0a5d-4a66-8ca9-c0b8f5a790d1_V29ya2Zsb3dUZW1wbGF0ZURTUmVzb3VyY2VzL1dvcmtmbG93VGVtcGxhdGVEU1Jlc291cmNlVHlwZQ=="/>
|
5
|
<RESOURCE_TYPE value="WorkflowTemplateDSResourceType"/>
|
6
|
<RESOURCE_KIND value="WorkflowTemplateDSResources"/>
|
7
|
<RESOURCE_URI value="" />
|
8
|
<DATE_OF_CREATION value="2001-12-31T12:00:00" />
|
9
|
</HEADER>
|
10
|
<BODY>
|
11
|
<CONFIGURATION>
|
12
|
<PARAMETERS>
|
13
|
<PARAM name="mdId" description="MDStoreId" required="true" type="string"/>
|
14
|
<PARAM name="indexFormat" description="Index Format" required="true" type="string" />
|
15
|
<PARAM name="indexLayout" description="Index Layout" required="true" type="string" />
|
16
|
<PARAM name="indexInterpretation" description="Index Interpretation" required="true" type="string" />
|
17
|
<PARAM name="finalMongoCollection" description="Final Mongo Collection" required="true" type="string"/>
|
18
|
</PARAMETERS>
|
19
|
<WORKFLOW>
|
20
|
|
21
|
<NODE isStart="true" name="verifyIndex" type="VerifyIndex">
|
22
|
<DESCRIPTION />
|
23
|
<PARAMETERS>
|
24
|
<PARAM name="format" ref="indexFormat" />
|
25
|
<PARAM name="layout" ref="indexLayout" />
|
26
|
<PARAM name="interpretation" ref="indexInterpretation" />
|
27
|
<PARAM name="onFailed" value="notFound" />
|
28
|
<PARAM name="outputPrefix" value="index_" />
|
29
|
</PARAMETERS>
|
30
|
<ARCS>
|
31
|
<ARC to="fetchRecords" />
|
32
|
<ARC name="notFound" to="prepare" />
|
33
|
</ARCS>
|
34
|
</NODE>
|
35
|
|
36
|
<NODE name="prepare" type="PrepareCreateIndex">
|
37
|
<DESCRIPTION>Prepare create index</DESCRIPTION>
|
38
|
<PARAMETERS>
|
39
|
<PARAM name="format" ref="indexFormat" />
|
40
|
<PARAM name="layout" ref="indexLayout" />
|
41
|
<PARAM name="interpretation" ref="indexInterpretation" />
|
42
|
</PARAMETERS>
|
43
|
<ARCS>
|
44
|
<ARC to="createIndex" />
|
45
|
</ARCS>
|
46
|
</NODE>
|
47
|
|
48
|
<NODE name="createIndex" type="CreateIndex">
|
49
|
<DESCRIPTION>Create index</DESCRIPTION>
|
50
|
<PARAMETERS>
|
51
|
<PARAM name="outputPrefix" value="index_" />
|
52
|
</PARAMETERS>
|
53
|
<ARCS>
|
54
|
<ARC to="checkIndex" />
|
55
|
</ARCS>
|
56
|
</NODE>
|
57
|
|
58
|
<NODE name="checkIndex" type="VerifyIndex">
|
59
|
<DESCRIPTION />
|
60
|
<PARAMETERS>
|
61
|
<PARAM name="format" ref="indexFormat"/>
|
62
|
<PARAM name="layout" ref="indexLayout" />
|
63
|
<PARAM name="interpretation" ref="indexInterpretation" />
|
64
|
<PARAM name="outputPrefix" value="index_" />
|
65
|
</PARAMETERS>
|
66
|
<ARCS>
|
67
|
<ARC to="fetchRecords" />
|
68
|
</ARCS>
|
69
|
</NODE>
|
70
|
|
71
|
<NODE name="fetchRecords" type="FetchMDStoreRecords">
|
72
|
<DESCRIPTION>Fetch records</DESCRIPTION>
|
73
|
<PARAMETERS>
|
74
|
<PARAM name="mdId" ref="mdId"/>
|
75
|
<PARAM name="eprParam" value="index_epr"/>
|
76
|
</PARAMETERS>
|
77
|
<ARCS>
|
78
|
<ARC to="indexRecords"/>
|
79
|
</ARCS>
|
80
|
</NODE>
|
81
|
|
82
|
<NODE name="indexRecords" type="UpdateIndex">
|
83
|
<DESCRIPTION>Index records</DESCRIPTION>
|
84
|
<PARAMETERS>
|
85
|
<PARAM name="indexId" env="index_id" />
|
86
|
<PARAM name="format" ref="indexFormat" />
|
87
|
<PARAM name="layout" ref="indexLayout" />
|
88
|
<PARAM name="defaultIndexId" value="solr" />
|
89
|
<PARAM name="eprParam" value="index_epr" />
|
90
|
<PARAM name="feedingType" value="REFRESH" />
|
91
|
</PARAMETERS>
|
92
|
<ARCS>
|
93
|
<ARC to="freezeStore" />
|
94
|
</ARCS>
|
95
|
</NODE>
|
96
|
|
97
|
<NODE name="freezeStore" type="RunMDStorePlugin">
|
98
|
<DESCRIPTION>Freeze stores</DESCRIPTION>
|
99
|
<PARAMETERS>
|
100
|
<PARAM name="pluginName" value="freezeMDStorePlugin"/>
|
101
|
<PARAM name="parameters">
|
102
|
<MAP>
|
103
|
<ENTRY key="mdId" ref="mdId" />
|
104
|
<ENTRY key="collection" ref="finalMongoCollection" />
|
105
|
</MAP>
|
106
|
</PARAM>
|
107
|
</PARAMETERS>
|
108
|
<ARCS>
|
109
|
<ARC to="success"/>
|
110
|
</ARCS>
|
111
|
</NODE>
|
112
|
|
113
|
</WORKFLOW>
|
114
|
</CONFIGURATION>
|
115
|
</BODY>
|
116
|
</RESOURCE_PROFILE>
|