public final class ErrorModelInstanceMarshaller extends Object
ModelInstance and corresponding process logs to a byte array.
Used for error model instance states.| Constructor and Description |
|---|
ErrorModelInstanceMarshaller(StateType type,
ProcessLogDao processLogDao)
Creates new instance
|
| Modifier and Type | Method and Description |
|---|---|
ModelInstance |
filterState(ModelInstance modelInstance)
Returns new instance of
ModelInstance with filtered data. |
ModelInstance |
getState(byte[] storedState)
Returns model instance from stored state.
|
byte[] |
storeState(ModelInstance modelInstance)
Filter a model instance and store it as array of bytes.
|
public ErrorModelInstanceMarshaller(StateType type, ProcessLogDao processLogDao)
type - processLogDao - public ModelInstance filterState(ModelInstance modelInstance)
ModelInstance with filtered data.modelInstance - ModelInstance with filtered datapublic byte[] storeState(ModelInstance modelInstance) throws javax.xml.bind.JAXBException, IOException
modelInstance - javax.xml.bind.JAXBExceptionIOExceptionpublic ModelInstance getState(byte[] storedState) throws javax.xml.bind.JAXBException, IOException
storedState - javax.xml.bind.JAXBExceptionIOExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.