Revision 31743
Added by Andrea Mannocci over 9 years ago
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/repo/oaiPostFeed.wf.st | ||
---|---|---|
1 |
<NODE name="setFormat" type="SetFormatInfo" isStart="true"> |
|
2 |
<DESCRIPTION>St Format Info</DESCRIPTION> |
|
3 |
<PARAMETERS> |
|
4 |
<PARAM managedBy="user" name="format" required="true" type="string">EMF</PARAM> |
|
5 |
<PARAM managedBy="user" name="layout" required="true" type="string">store</PARAM> |
|
6 |
<PARAM managedBy="user" name="interpretation" required="true" type="string">cleaned</PARAM> |
|
7 |
<PARAM managedBy="system" name="formatParam" required="true" type="string">oai_format</PARAM> |
|
8 |
<PARAM managedBy="system" name="layoutParam" required="true" type="string">oai_layout</PARAM> |
|
9 |
<PARAM managedBy="system" name="interpretationParam" required="true" type="string">oai_interpretation</PARAM> |
|
10 |
</PARAMETERS> |
|
11 |
<ARCS> |
|
12 |
<ARC to="prepareOAI"/> |
|
13 |
</ARCS> |
|
14 |
</NODE> |
|
15 |
<NODE name="prepareOAI" type="PrepareOaiJob"> |
|
16 |
<DESCRIPTION>Prepare oai feeding</DESCRIPTION> |
|
17 |
<PARAMETERS> |
|
18 |
<PARAM managedBy="system" name="oaiStoreCollectionParam" required="true" type="string">oaiStoreCollection</PARAM> |
|
19 |
<PARAM managedBy="user" name="oaiDBName" required="true" type="string">oaistore</PARAM> |
|
20 |
<PARAM managedBy="system" name="oaiDBNameParam" required="true" type="string">oai_dbName</PARAM> |
|
21 |
</PARAMETERS> |
|
22 |
<ARCS> |
|
23 |
<ARC to="CompoundIndexes"/> |
|
24 |
</ARCS> |
|
25 |
</NODE> |
|
26 |
<NODE name="CompoundIndexes" type="OAICreateIndex"> |
|
27 |
<DESCRIPTION>Create composite indexes for the OAI store</DESCRIPTION> |
|
28 |
<PARAMETERS> |
|
29 |
<PARAM managedBy="system" name="dbNameParam" required="true" type="string">oai_dbName</PARAM> |
|
30 |
<PARAM managedBy="system" name="oaiStoreCollectionParam" required="true" type="string">oaiStoreCollection</PARAM> |
|
31 |
<PARAM managedBy="user" name="fieldNames" required="true" type="string">set,datestamp</PARAM> |
|
32 |
</PARAMETERS> |
|
33 |
<ARCS> |
|
34 |
<ARC to="ConfigIndexes"/> |
|
35 |
</ARCS> |
|
36 |
</NODE> |
|
37 |
<NODE name="ConfigIndexes" type="OAIEnsureIndexes"> |
|
38 |
<DESCRIPTION>Ensure an index exists on fields as specified in the configuration profile</DESCRIPTION> |
|
39 |
<PARAMETERS> |
|
40 |
<PARAM managedBy="system" name="dbNameParam" required="true" type="string">oai_dbName</PARAM> |
|
41 |
<PARAM managedBy="system" name="oaiStoreCollectionParam" required="true" type="string">oaiStoreCollection</PARAM> |
|
42 |
</PARAMETERS> |
|
43 |
<ARCS> |
|
44 |
<ARC to="SetsCount"/> |
|
45 |
</ARCS> |
|
46 |
</NODE> |
|
47 |
<NODE name="SetsCount" type="OAISetsCountUpdate"> |
|
48 |
<DESCRIPTION>Count records in each OAI set, for each exported metadata format linked to the given oai collection</DESCRIPTION> |
|
49 |
<PARAMETERS> |
|
50 |
<PARAM managedBy="system" name="dbNameParam" required="true" type="string">oai_dbName</PARAM> |
|
51 |
<PARAM managedBy="system" name="oaiStoreCollectionParam" required="true" type="string">oaiStoreCollection</PARAM> |
|
52 |
<PARAM managedBy="user" name="configuredOnly" required="true" type="boolean">false</PARAM> |
|
53 |
</PARAMETERS> |
|
54 |
<ARCS> |
|
55 |
<ARC to="ConfigSets"/> |
|
56 |
</ARCS> |
|
57 |
</NODE> |
|
58 |
<NODE name="ConfigSets" type="RefreshSetsFromConfig"> |
|
59 |
<DESCRIPTION>Reads the current OAI configuration and upsert OAI sets accordingly (counts are updated as well)</DESCRIPTION> |
|
60 |
<PARAMETERS> |
|
61 |
<PARAM managedBy="system" name="dbNameParam" required="true" type="string">oai_dbName</PARAM> |
|
62 |
</PARAMETERS> |
|
63 |
<ARCS> |
|
64 |
<ARC to="success"/> |
|
65 |
</ARCS> |
|
66 |
</NODE> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/repo/oai.wf.st | ||
---|---|---|
6 | 6 |
<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM> |
7 | 7 |
</PARAMETERS> |
8 | 8 |
<ARCS> |
9 |
<ARC to="prepareOaiJob"/>
|
|
9 |
<ARC to="readMDStore"/>
|
|
10 | 10 |
</ARCS> |
11 | 11 |
</NODE> |
12 | 12 |
|
13 |
<NODE name="prepareOaiJob" type="PrepareOaiJob"> |
|
14 |
<DESCRIPTION>Prepare oai feeding</DESCRIPTION> |
|
15 |
<PARAMETERS> |
|
16 |
<PARAM name="oaiStoreCollectionParam" type="string" managedBy="system" required="true">oaiStoreCollection</PARAM> |
|
17 |
<PARAM name="oaiDBName" type="string" managedBy="user" required="true">oaistore</PARAM> |
|
18 |
<PARAM name="oaiDBNameParam" type="string" managedBy="system" required="true">oai_dbName</PARAM> |
|
19 |
<PARAM name="formatParam" type="string" managedBy="system" required="true">oai_format</PARAM> |
|
20 |
<PARAM name="layoutParam" type="string" managedBy="system" required="true">oai_layout</PARAM> |
|
21 |
<PARAM name="interpretationParam" type="string" managedBy="system" required="true">oai_interpretation</PARAM> |
|
22 |
</PARAMETERS> |
|
23 |
<ARCS> |
|
24 |
<ARC to="readMDStore" /> |
|
25 |
</ARCS> |
|
26 |
</NODE> |
|
27 |
|
|
28 | 13 |
<NODE name="readMDStore" type="ReadMDStore"> |
29 | 14 |
<DESCRIPTION>Read from mdstore</DESCRIPTION> |
30 | 15 |
<PARAMETERS> |
... | ... | |
50 | 35 |
<PARAM name="interpretationParam" managedBy="user" type="string" required="true">oai_formatInterpretation</PARAM> |
51 | 36 |
</PARAMETERS> |
52 | 37 |
<ARCS> |
53 |
<ARC to="OAISetsCountUpdate" /> |
|
54 |
</ARCS> |
|
55 |
</NODE> |
|
56 |
|
|
57 |
<NODE name="OAISetsCountUpdate" type="OAISetsCountUpdate"> |
|
58 |
<DESCRIPTION>Count records in each OAI set, for each exported metadata format</DESCRIPTION> |
|
59 |
<PARAMETERS> |
|
60 |
<PARAM name="configuredOnly" managedBy="system" type="boolean" required="true">false</PARAM> |
|
61 |
</PARAMETERS> |
|
62 |
<ARCS> |
|
63 | 38 |
<ARC to="success" /> |
64 | 39 |
</ARCS> |
65 |
</NODE> |
|
66 |
|
|
40 |
</NODE> |
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/applicationContext-repohi.xml | ||
---|---|---|
29 | 29 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
30 | 30 |
p:name="oai" |
31 | 31 |
p:template="classpath:/eu/dnetlib/msro/eagle/workflows/repo/oai.wf.st"> |
32 |
<property name="children"> |
|
33 |
<list> |
|
34 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
35 |
p:name="oaiPostFeed" |
|
36 |
p:template="classpath:/eu/dnetlib/msro/eagle/workflows/repo/oaiPostFeed.wf.st"> |
|
37 |
</bean> |
|
38 |
</list> |
|
39 |
</property> |
|
32 | 40 |
</bean> |
33 | 41 |
</list> |
34 | 42 |
</property> |
Also available in: Unified diff
OAI back on track for EAGLE. oaiPostFeed added.