forked from D-Net/dnet-hadoop
added decision node to upload on zenodo or not
This commit is contained in:
parent
a469d79b84
commit
eb0762622c
|
@ -3,9 +3,12 @@
|
||||||
<parameters>
|
<parameters>
|
||||||
<property>
|
<property>
|
||||||
<name>singleDeposition</name>
|
<name>singleDeposition</name>
|
||||||
<value>true</value>
|
|
||||||
<description>Indicates if each file in the directory should be uploaded in a own deposition</description>
|
<description>Indicates if each file in the directory should be uploaded in a own deposition</description>
|
||||||
</property>
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>upload</name>
|
||||||
|
<description>true if the dump should be upload in zenodo</description>
|
||||||
|
</property>
|
||||||
<property>
|
<property>
|
||||||
<name>communityId</name>
|
<name>communityId</name>
|
||||||
<description>the id of the community to be dumped if a dump for a single community should be done</description>
|
<description>the id of the community to be dumped if a dump for a single community should be done</description>
|
||||||
|
@ -432,10 +435,16 @@
|
||||||
<arg>--nameNode</arg><arg>${nameNode}</arg>
|
<arg>--nameNode</arg><arg>${nameNode}</arg>
|
||||||
<arg>--sourcePath</arg><arg>${workingDir}/split</arg>
|
<arg>--sourcePath</arg><arg>${workingDir}/split</arg>
|
||||||
</java>
|
</java>
|
||||||
<ok to="send_zenodo"/>
|
<ok to="should_upload"/>
|
||||||
<error to="Kill"/>
|
<error to="Kill"/>
|
||||||
</action>
|
</action>
|
||||||
|
|
||||||
|
<decision name="should_upload">
|
||||||
|
<switch>
|
||||||
|
<case to="send_zenodo">${wf:conf('upload') eq true}</case>
|
||||||
|
<default to="End"/>
|
||||||
|
</switch>
|
||||||
|
</decision>
|
||||||
<action name="send_zenodo">
|
<action name="send_zenodo">
|
||||||
<java>
|
<java>
|
||||||
<main-class>eu.dnetlib.dhp.oa.graph.dump.SendToZenodoHDFS</main-class>
|
<main-class>eu.dnetlib.dhp.oa.graph.dump.SendToZenodoHDFS</main-class>
|
||||||
|
|
Loading…
Reference in New Issue