Package de.xima.fc.workflow.taglib.model
Class FlowchartSnapshot
- java.lang.Object
-
- de.xima.fc.workflow.taglib.model.FlowchartSnapshot
-
- All Implemented Interfaces:
Serializable
public final class FlowchartSnapshot extends Object implements Serializable
Represents the serialized version of the flowchart model. Can be serialized via JSON and used as a backup.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
VERSION_ID
The JSON version that should be used forgetVersion()
.
-
Constructor Summary
Constructors Constructor Description FlowchartSnapshot()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlowchartSnapshot
empty()
static FlowchartSnapshot
fromJson(com.alibaba.fastjson.JSONObject json)
static FlowchartSnapshot
fromJsonString(String json)
com.alibaba.fastjson.JSONObject
getCustomData()
String
getCustomDataVersion()
List<ElementEntry<com.alibaba.fastjson.JSONObject>>
getParams()
ProcessModel
getProcess()
long
getTimestamp()
String
getVersion()
void
setCustomData(com.alibaba.fastjson.JSONObject customData)
void
setCustomDataVersion(String customDataVersion)
void
setParams(List<ElementEntry<com.alibaba.fastjson.JSONObject>> params)
void
setProcess(ProcessModel process)
void
setTimestamp(long timestamp)
void
setVersion(String version)
String
toJsonString()
-
-
-
Field Detail
-
VERSION_ID
public static final String VERSION_ID
The JSON version that should be used forgetVersion()
.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCustomData
public com.alibaba.fastjson.JSONObject getCustomData()
-
getCustomDataVersion
public String getCustomDataVersion()
-
getParams
public List<ElementEntry<com.alibaba.fastjson.JSONObject>> getParams()
-
getProcess
public ProcessModel getProcess()
-
getTimestamp
public long getTimestamp()
-
getVersion
public String getVersion()
-
setCustomData
public void setCustomData(com.alibaba.fastjson.JSONObject customData)
-
setCustomDataVersion
public void setCustomDataVersion(String customDataVersion)
-
setParams
public void setParams(List<ElementEntry<com.alibaba.fastjson.JSONObject>> params)
-
setProcess
public void setProcess(ProcessModel process)
-
setTimestamp
public void setTimestamp(long timestamp)
-
setVersion
public void setVersion(String version)
-
toJsonString
public String toJsonString() throws FastJsonException
- Throws:
FastJsonException
-
empty
public static FlowchartSnapshot empty()
-
fromJsonString
public static FlowchartSnapshot fromJsonString(String json) throws FastJsonException
- Throws:
FastJsonException
-
fromJson
public static FlowchartSnapshot fromJson(com.alibaba.fastjson.JSONObject json) throws FastJsonException
- Throws:
FastJsonException
-
-