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 StringVERSION_IDThe 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 FlowchartSnapshotempty()static FlowchartSnapshotfromJson(com.alibaba.fastjson.JSONObject json)static FlowchartSnapshotfromJsonString(String json)com.alibaba.fastjson.JSONObjectgetCustomData()StringgetCustomDataVersion()List<ElementEntry<com.alibaba.fastjson.JSONObject>>getParams()ProcessModelgetProcess()longgetTimestamp()StringgetVersion()voidsetCustomData(com.alibaba.fastjson.JSONObject customData)voidsetCustomDataVersion(String customDataVersion)voidsetParams(List<ElementEntry<com.alibaba.fastjson.JSONObject>> params)voidsetProcess(ProcessModel process)voidsetTimestamp(long timestamp)voidsetVersion(String version)StringtoJsonString()
-
-
-
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
-
-