aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-server/src/main/java/org
diff options
context:
space:
mode:
authorYuanHu <yuan.hu1@zte.com.cn>2018-04-17 14:38:56 +0800
committerYuanHu <yuan.hu1@zte.com.cn>2018-04-17 14:38:56 +0800
commit512e92fb70e43a7f30f22611b05bd31546bacca1 (patch)
treea643fca3582ef6e1829b694d70683082865d128a /sdc-workflow-designer-server/src/main/java/org
parent84372056e279fbc8a5df3d8e0e60b3b0919e4362 (diff)
Not Serialize the Null Fields
Not Serialize the Null Fields, like 'clazz' to script task, 'script format'/'script' to service task. Issue-ID: SDC-1236 Change-Id: I50ea943a3863c1164d9eede33768d0433d662b2b Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-server/src/main/java/org')
-rw-r--r--sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/Content.java3
-rw-r--r--sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivity.java4
2 files changed, 7 insertions, 0 deletions
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/Content.java b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/Content.java
index 70d59928..2a49ae07 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/Content.java
+++ b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/Content.java
@@ -13,12 +13,15 @@ package org.onap.sdc.workflowdesigner.resources.entity;
import java.util.Map;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;
/**
*
*/
+@JsonInclude(Include.NON_NULL)
public class Content {
@JsonProperty(value="class") // for dropwizard's Jackson
@SerializedName("class") // for Gson
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivity.java b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivity.java
index 46661713..5a798ee2 100644
--- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivity.java
+++ b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/resources/entity/ExtActivity.java
@@ -11,9 +11,13 @@
*/
package org.onap.sdc.workflowdesigner.resources.entity;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+
/**
*
*/
+@JsonInclude(Include.NON_NULL)
public class ExtActivity {
private String id;