fix bug-6208 json parse error in sub process (#6211)
This commit is contained in:
parent
ac943bca6a
commit
8694b9c8f9
|
|
@ -755,6 +755,7 @@ public final class Constants {
|
|||
public static final String PARENT_WORKFLOW_INSTANCE = "parentWorkflowInstance";
|
||||
public static final String CONDITION_RESULT = "conditionResult";
|
||||
public static final String SWITCH_RESULT = "switchResult";
|
||||
public static final String WAIT_START_TIMEOUT = "waitStartTimeout";
|
||||
public static final String DEPENDENCE = "dependence";
|
||||
public static final String TASK_TYPE = "taskType";
|
||||
public static final String TASK_LIST = "taskList";
|
||||
|
|
|
|||
|
|
@ -134,6 +134,10 @@ public class TaskNode {
|
|||
@JsonSerialize(using = JSONUtils.JsonDataSerializer.class)
|
||||
private String switchResult;
|
||||
|
||||
@JsonDeserialize(using = JSONUtils.JsonDataDeserializer.class)
|
||||
@JsonSerialize(using = JSONUtils.JsonDataSerializer.class)
|
||||
private String waitStartTimeout;
|
||||
|
||||
/**
|
||||
* task instance priority
|
||||
*/
|
||||
|
|
@ -396,6 +400,7 @@ public class TaskNode {
|
|||
taskParams.put(Constants.CONDITION_RESULT, this.conditionResult);
|
||||
taskParams.put(Constants.DEPENDENCE, this.dependence);
|
||||
taskParams.put(Constants.SWITCH_RESULT, this.switchResult);
|
||||
taskParams.put(Constants.WAIT_START_TIMEOUT, this.waitStartTimeout);
|
||||
return JSONUtils.toJsonString(taskParams);
|
||||
}
|
||||
|
||||
|
|
@ -450,4 +455,12 @@ public class TaskNode {
|
|||
public void setSwitchResult(String switchResult) {
|
||||
this.switchResult = switchResult;
|
||||
}
|
||||
|
||||
public String getWaitStartTimeout() {
|
||||
return this.waitStartTimeout;
|
||||
}
|
||||
|
||||
public void setWaitStartTimeout(String waitStartTimeout) {
|
||||
this.waitStartTimeout = waitStartTimeout;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue