public final class ErrorModelInstanceMarshaller
extends java.lang.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, java.io.IOException
modelInstance - javax.xml.bind.JAXBExceptionjava.io.IOExceptionpublic ModelInstance getState(byte[] storedState) throws javax.xml.bind.JAXBException, java.io.IOException
storedState - javax.xml.bind.JAXBExceptionjava.io.IOExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.