dnet-hadoop/dhp-workflows/dhp-worfklow-profiles/src/main/resources/eu/dnetlib/dhp/actionmanager/actionset_ror.xml

89 lines
4.2 KiB
XML

<RESOURCE_PROFILE>
<HEADER>
<RESOURCE_IDENTIFIER value="7cf3cfed-fbfb-46ca-b4da-aa43beb58f19_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl"/>
<RESOURCE_TYPE value="WorkflowDSResourceType"/>
<RESOURCE_KIND value="WorkflowDSResources"/>
<RESOURCE_URI value=""/>
<DATE_OF_CREATION value="2021-05-14T13:51:56+00:00"/>
</HEADER>
<BODY>
<WORKFLOW_NAME>Update ROR actionset</WORKFLOW_NAME>
<WORKFLOW_TYPE>Import Infospace</WORKFLOW_TYPE>
<WORKFLOW_PRIORITY>30</WORKFLOW_PRIORITY>
<CONFIGURATION start="manual">
<NODE isStart="true" name="setInputPath" type="SetEnvParameter">
<DESCRIPTION>Set the base path containing the no_doi_dataset folder</DESCRIPTION>
<PARAMETERS>
<PARAM managedBy="system" name="parameterName" required="true" type="string">inputPath</PARAM>
<PARAM managedBy="user" name="parameterValue" required="true" type="string">/data/ror/ror-data-2021-04-06.json</PARAM>
</PARAMETERS>
<ARCS>
<ARC to="prepareActionSets"/>
</ARCS>
</NODE>
<NODE name="prepareActionSets" type="PrepareActionSets">
<DESCRIPTION>prepare action sets</DESCRIPTION>
<PARAMETERS>
<PARAM managedBy="system" name="sets" required="true" type="string">
[
{
'set' : 'ror',
'jobProperty' : 'export_action_set_ror',
'enablingProperty' : 'active_ror',
'enabled' : 'true'
}
]
</PARAM>
</PARAMETERS>
<ARCS>
<ARC to="extractOutputPath"/>
</ARCS>
</NODE>
<NODE name="extractOutputPath" type="ExtractOutputPath">
<DESCRIPTION>extract the hdfs output path generated in the previous node</DESCRIPTION>
<PARAMETERS>
<PARAM managedBy="system" name="hdfsOutputPathParam" required="true" type="string">outputPath</PARAM>
</PARAMETERS>
<ARCS>
<ARC to="rorUpdate"/>
</ARCS>
</NODE>
<NODE name="rorUpdate" type="SubmitHadoopJob">
<DESCRIPTION>update the ROR actionset</DESCRIPTION>
<PARAMETERS>
<PARAM managedBy="system" name="hadoopJob" required="true" type="string">executeOozieJob</PARAM>
<PARAM managedBy="system" name="cluster" required="true" type="string">IIS</PARAM>
<PARAM managedBy="system" name="envParams" required="true" type="string">
{
'rorJsonInputPath' : 'inputPath',
'rorActionSetPath': 'outputPath'
}
</PARAM>
<PARAM managedBy="system" name="params" required="true" type="string">
{
'oozie.wf.application.path' : '/lib/dnet/PROD/actionmanager/ror/oozie_app',
'workingDir': '/tmp/import_ror_actionset_prod'
}
</PARAM>
<PARAM managedBy="system" name="oozieReportActionsCsv" required="true" type="string">build-report</PARAM>
</PARAMETERS>
<ARCS>
<ARC to="updateActionSets"/>
</ARCS>
</NODE>
<NODE name="updateActionSets" type="UpdateActionSets">
<DESCRIPTION>update action sets</DESCRIPTION>
<PARAMETERS/>
<ARCS>
<ARC to="success"/>
</ARCS>
</NODE>
</CONFIGURATION>
<STATUS>
<LAST_EXECUTION_ID>wf_20210518_143542_478</LAST_EXECUTION_ID>
<LAST_EXECUTION_DATE>2021-05-18T14:37:13+00:00</LAST_EXECUTION_DATE>
<LAST_EXECUTION_STATUS>SUCCESS</LAST_EXECUTION_STATUS>
<LAST_EXECUTION_ERROR/>
</STATUS>
</BODY>
</RESOURCE_PROFILE>