diff --git a/dhp-common/src/main/java/eu/dnetlib/dhp/oa/merge/DispatchEntitiesSparkJob.java b/dhp-common/src/main/java/eu/dnetlib/dhp/oa/merge/DispatchEntitiesSparkJob.java
index 88c32fdbf..4d2ccb178 100644
--- a/dhp-common/src/main/java/eu/dnetlib/dhp/oa/merge/DispatchEntitiesSparkJob.java
+++ b/dhp-common/src/main/java/eu/dnetlib/dhp/oa/merge/DispatchEntitiesSparkJob.java
@@ -47,11 +47,7 @@ public class DispatchEntitiesSparkJob {
String outputPath = parser.get("outputPath");
log.info("outputPath: {}", outputPath);
- boolean filterInvisible = Optional
- .ofNullable(parser.get("filterInvisible"))
- .map(Boolean::valueOf)
- .orElse(Boolean.FALSE);
-
+ boolean filterInvisible = Boolean.valueOf(parser.get("filterInvisible"));
log.info("filterInvisible: {}", filterInvisible);
SparkConf conf = new SparkConf();
diff --git a/dhp-workflows/dhp-dedup-openaire/src/main/resources/eu/dnetlib/dhp/oa/dedup/consistency/oozie_app/workflow.xml b/dhp-workflows/dhp-dedup-openaire/src/main/resources/eu/dnetlib/dhp/oa/dedup/consistency/oozie_app/workflow.xml
index b1ceca05a..eb7e6d98d 100644
--- a/dhp-workflows/dhp-dedup-openaire/src/main/resources/eu/dnetlib/dhp/oa/dedup/consistency/oozie_app/workflow.xml
+++ b/dhp-workflows/dhp-dedup-openaire/src/main/resources/eu/dnetlib/dhp/oa/dedup/consistency/oozie_app/workflow.xml
@@ -12,6 +12,10 @@
graphOutputPath
path of the output graph
+
+ filterInvisible
+ whether filter out invisible entities after merge
+
sparkDriverMemory
memory for driver process
@@ -24,7 +28,6 @@
sparkExecutorCores
number of cores used by single executor
-
oozieActionShareLibForSpark2
oozie action sharelib for spark 2.*
@@ -167,7 +170,7 @@
--inputPath${workingPath}/grouped_entities
--outputPath${graphOutputPath}
- --filterInvisibletrue
+ --filterInvisible${filterInvisible}
diff --git a/dhp-workflows/dhp-graph-mapper/src/main/resources/eu/dnetlib/dhp/oa/graph/group/oozie_app/workflow.xml b/dhp-workflows/dhp-graph-mapper/src/main/resources/eu/dnetlib/dhp/oa/graph/group/oozie_app/workflow.xml
index 27a18207b..219dc7331 100644
--- a/dhp-workflows/dhp-graph-mapper/src/main/resources/eu/dnetlib/dhp/oa/graph/group/oozie_app/workflow.xml
+++ b/dhp-workflows/dhp-graph-mapper/src/main/resources/eu/dnetlib/dhp/oa/graph/group/oozie_app/workflow.xml
@@ -12,6 +12,10 @@
graphOutputPath
path of the output graph
+
+ filterInvisible
+ whether filter out invisible entities after merge
+
sparkDriverMemory
memory for driver process
@@ -117,7 +121,7 @@
--inputPath${workingPath}/grouped_entities
--outputPath${graphOutputPath}
- --filterInvisiblefalse
+ --filterInvisible${filterInvisible}