diff --git a/pom.xml b/pom.xml index 0cdb2452..952838db 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.scijava pom-scijava - 37.0.0 + 39.0.0 diff --git a/src/main/java/io/bioimage/modelrunner/apposed/appose/Service.java b/src/main/java/io/bioimage/modelrunner/apposed/appose/Service.java index cfa438e7..975c3678 100644 --- a/src/main/java/io/bioimage/modelrunner/apposed/appose/Service.java +++ b/src/main/java/io/bioimage/modelrunner/apposed/appose/Service.java @@ -340,7 +340,6 @@ private void handle(Map response) { return; } ResponseType responseType = ResponseType.valueOf(maybeResponseType); - switch (responseType) { case LAUNCH: status = TaskStatus.RUNNING; @@ -351,6 +350,9 @@ private void handle(Map response) { Number maximum = (Number) response.get("maximum"); if (current != null) this.current = current.longValue(); if (maximum != null) this.maximum = maximum.longValue(); + @SuppressWarnings({ "rawtypes", "unchecked" }) + Map outputsUpdate = (Map) response.get("outputs"); + if (outputsUpdate != null) mOutputs.putAll(outputsUpdate); break; case COMPLETION: tasks.remove(uuid);