added mapping url parameter to workflow

This commit is contained in:
Enrico Ottonello 2019-09-19 15:10:43 +02:00
parent 05209e8393
commit f9005a2e87
3 changed files with 8 additions and 3 deletions

View File

@ -26,5 +26,7 @@
<bean id="wfNodeReadVirtuoso" class="eu.dnetlib.ariadneplus.workflows.nodes.ReadVirtuosoJobNode" scope="prototype"/>
<bean id="wfNodeReadVirtuosoByType" class="eu.dnetlib.ariadneplus.workflows.nodes.ReadVirtuosoByTypeJobNode" scope="prototype"/>
<bean id="wfNodeX3MTransformAriadnePlus" class="eu.dnetlib.ariadneplus.workflows.nodes.X3MTransformAriadnePlusJobNode" scope="prototype"/>
</beans>

View File

@ -32,7 +32,7 @@
<PARAM name="indexId" description="Identifier of the Index" required="true" managedBy="system" category="INDEX_ID"/>
<PARAM name="indexInterpretation" description="Index Interpretation" required="true" managedBy="system" type="string">transformed</PARAM>
<PARAM name="feedingType" description="Index feeding type" required="true" managedBy="user" type="string" function="validValues(['REFRESH','INCREMENTAL'])">REFRESH</PARAM>
<PARAM name="mappingUrl" description="mapping url" required="true" managedBy="user" type="string" ></PARAM>
</PARAMETERS>
<WORKFLOW>
<NODE isStart="true" name="collection" type="LaunchWorkflowTemplate">
@ -73,6 +73,7 @@
<ENTRY key="cleaningRuleId" ref="cleaningRuleId"/>
<ENTRY key="transformationMode" ref="transformationMode" />
<ENTRY key="passFullRecord" ref="passFullRecord" />
<ENTRY key="mappingUrl" ref="mappingUrl" />
</MAP>
</PARAM>
</PARAMETERS>

View File

@ -19,6 +19,7 @@
<PARAM name="passFullRecord" description="True to pass the full record to x3m" required="true" type="boolean" />
<PARAM name="verboseTransformationLogging" description="Enable verbose logging of X3M" required="false" type="boolean"/>
<PARAM name="cleaningRuleId" description="Cleaning rule" required="true" type="string" />
<PARAM name="mappingUrl" description="Mapping url" required="true" type="string" />
</PARAMETERS>
<WORKFLOW>
<NODE name="SELECT_MODE" type="Selection" isStart="true">
@ -51,7 +52,7 @@
</PARAMETERS>
<ARCS>
<!--<ARC to="validateAgainstSchema"/> -->
<ARC to="x3mTransform"/>
<ARC to="X3MTransformAriadnePlus"/>
</ARCS>
</NODE>
<!--<NODE name="validateAgainstSchema" type="XMLSchemaValidator">-->
@ -67,7 +68,7 @@
<!--<ARC to="x3mTransform"/>-->
<!--</ARCS>-->
<!--</NODE>-->
<NODE name="x3mTransform" type="X3MTransform">
<NODE name="X3MTransformAriadnePlus" type="X3MTransformAriadnePlus">
<DESCRIPTION>Transform valid records</DESCRIPTION>
<PARAMETERS>
<PARAM name="inputEprParam" value="orig_epr"/>
@ -76,6 +77,7 @@
<PARAM name="mappingProfileIds" ref="mappingProfiles"/>
<PARAM name="verboseLogging" ref="verboseTransformationLogging"/>
<PARAM name="passFullRecord" ref="passFullRecord"/>
<PARAM name="mappingUrl" ref="mappingUrl"/>
</PARAMETERS>
<ARCS>
<ARC to="clean"/>