[OpenOrgsWf] graph construction wf: allow to skip the import openorgs node (importOpenorgs true|false)

This commit is contained in:
Claudio Atzori 2021-03-29 16:59:16 +02:00
parent 940556f6d3
commit 7f4e9479ec
1 changed files with 14 additions and 1 deletions

View File

@ -10,6 +10,11 @@
<value>false</value>
<description>should import content from the aggregator or reuse a previous version</description>
</property>
<property>
<name>importOpenorgs</name>
<value>true</value>
<description>should import content from the OpenOrgs database</description>
</property>
<property>
<name>contentPath</name>
<description>path location to store (or reuse) content from the aggregator</description>
@ -202,10 +207,18 @@
<arg>--dbschema</arg><arg>${dbSchema}</arg>
<arg>--nsPrefixBlacklist</arg><arg>${nsPrefixBlacklist}</arg>
</java>
<ok to="ImportDB_openorgs"/>
<ok to="should_import_openorgs"/>
<error to="Kill"/>
</action>
<decision name="should_import_openorgs">
<switch>
<case to="ImportDB_openorgs">${wf:conf('importOpenorgs') eq true}</case>
<case to="ImportODF">${wf:conf('importOpenorgs') eq false}</case>
<default to="ImportDB_openorgs"/>
</switch>
</decision>
<action name="ImportDB_openorgs">
<java>
<prepare>