Revision 27415
Added by Andrea Mannocci over 10 years ago
modules/dnet-eagle-workflows/trunk/src/main/resources/eu/dnetlib/msro/eagle/workflows/repo/transform-wip.wf.st | ||
---|---|---|
18 | 18 |
</PARAMETERS> |
19 | 19 |
<ARCS> |
20 | 20 |
<ARC to="generateEditions"/> |
21 |
<ARC to="transformRecords"/> |
|
22 | 21 |
</ARCS> |
23 | 22 |
</NODE> |
24 | 23 |
|
... | ... | |
48 | 47 |
</PARAM> |
49 | 48 |
</PARAMETERS> |
50 | 49 |
<ARCS> |
51 |
<ARC to="storeEditions"/>
|
|
50 |
<ARC to="composeEditions"/>
|
|
52 | 51 |
</ARCS> |
53 | 52 |
</NODE> |
54 | 53 |
|
55 |
<NODE name="storeEditions" type="StoreMDStoreRecords">
|
|
54 |
<NODE name="composeEditions" type="ComposeEpr">
|
|
56 | 55 |
<DESCRIPTION>Store records into mdstore</DESCRIPTION> |
57 | 56 |
<PARAMETERS> |
57 |
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM> |
|
58 |
<PARAM required="true" type="string" name="alternateEprParam" managedBy="system">edition_epr</PARAM> |
|
59 |
<PARAM required="true" type="string" name="xpathToInputId" managedBy="system">//*[local-name()='objIdentifier']</PARAM> |
|
60 |
<PARAM required="true" type="string" name="xpathToAlternateId" managedBy="system">//*[local-name()='objIdentifier']</PARAM> |
|
61 |
<PARAM required="true" type="string" name="xpathToReplacedFragment" managedBy="system">//*[local-name()='div'][@type='edition']</PARAM> |
|
62 |
<PARAM required="true" type="string" name="xpathToReplacingFragment" managedBy="system">//*[local-name()='div'][@id='edition']</PARAM> |
|
63 |
<PARAM required="true" type="string" name="composedEprParam" managedBy="system">composed_epr</PARAM> |
|
64 |
</PARAMETERS> |
|
65 |
<ARCS> |
|
66 |
<ARC to="storeComposed"/> |
|
67 |
</ARCS> |
|
68 |
</NODE> |
|
69 |
|
|
70 |
<NODE name="storeComposed" type="StoreMDStoreRecords"> |
|
71 |
<DESCRIPTION>Store records into mdstore</DESCRIPTION> |
|
72 |
<PARAMETERS> |
|
58 | 73 |
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("edition_id")$</PARAM> |
59 | 74 |
<PARAM required="true" type="string" name="storingType" managedBy="user">REFRESH</PARAM> |
60 |
<PARAM required="true" type="string" name="eprParam" managedBy="system">edition_epr</PARAM>
|
|
75 |
<PARAM required="true" type="string" name="eprParam" managedBy="system">composed_epr</PARAM>
|
|
61 | 76 |
</PARAMETERS> |
62 | 77 |
<ARCS> |
63 |
<ARC to="composeEditions"/>
|
|
78 |
<ARC to="transformRecords"/>
|
|
64 | 79 |
</ARCS> |
65 | 80 |
</NODE> |
66 | 81 |
|
67 | 82 |
<NODE name="transformRecords" type="ApplyXslt"> |
68 | 83 |
<DESCRIPTION>Transform original records in multiple objects compliant with eagle format</DESCRIPTION> |
69 | 84 |
<PARAMETERS> |
70 |
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_epr</PARAM>
|
|
85 |
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">composed_epr</PARAM>
|
|
71 | 86 |
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">packed_epr</PARAM> |
72 | 87 |
<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/eagle/workflows/xslt/structural','xsl')"></PARAM> |
73 | 88 |
<PARAM required="true" type="string" name="envParams" managedBy="system"> |
... | ... | |
87 | 102 |
<DESCRIPTION>Unpack objects</DESCRIPTION> |
88 | 103 |
<PARAMETERS> |
89 | 104 |
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">packed_epr</PARAM> |
90 |
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">trans_epr</PARAM>
|
|
105 |
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">eagle_epr</PARAM>
|
|
91 | 106 |
<PARAM required="true" type="string" name="xpath" managedBy="user">//*[local-name()='record']</PARAM> |
92 | 107 |
</PARAMETERS> |
93 | 108 |
<ARCS> |
94 |
<ARC to="composeEditions"/> |
|
95 |
</ARCS> |
|
96 |
</NODE> |
|
97 |
|
|
98 |
<NODE name="composeEditions" type="ComposeEpr" isJoin="true"> |
|
99 |
<DESCRIPTION>Store records into mdstore</DESCRIPTION> |
|
100 |
<PARAMETERS> |
|
101 |
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">trans_epr</PARAM> |
|
102 |
<PARAM required="true" type="string" name="alternateEprParam" managedBy="system">edition_epr</PARAM> |
|
103 |
<PARAM required="true" type="string" name="xpathToInputId" managedBy="system">//*[local-name()='objIdentifier']</PARAM> |
|
104 |
<PARAM required="true" type="string" name="xpathToAlternateId" managedBy="system">//*[local-name()='objIdentifier']</PARAM> |
|
105 |
<PARAM required="true" type="string" name="xpathToReplacedFragment" managedBy="system">//*[local-name()='text']</PARAM> |
|
106 |
<PARAM required="true" type="string" name="xpathToReplacingFragment" managedBy="system">//*[local-name()='div'][@id='edition']</PARAM> |
|
107 |
<PARAM required="true" type="string" name="composedEprParam" managedBy="system">edited_epr</PARAM> |
|
108 |
</PARAMETERS> |
|
109 |
<ARCS> |
|
110 | 109 |
<ARC to="storeRecords"/> |
111 | 110 |
</ARCS> |
112 | 111 |
</NODE> |
... | ... | |
116 | 115 |
<PARAMETERS> |
117 | 116 |
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tran_id")$</PARAM> |
118 | 117 |
<PARAM required="true" type="string" name="storingType" managedBy="user">REFRESH</PARAM> |
119 |
<PARAM required="true" type="string" name="eprParam" managedBy="system">edited_epr</PARAM>
|
|
118 |
<PARAM required="true" type="string" name="eprParam" managedBy="system">eagle_epr</PARAM>
|
|
120 | 119 |
</PARAMETERS> |
121 | 120 |
<ARCS> |
122 | 121 |
<ARC to="success"/> |
Also available in: Unified diff
wf with edition refactored