Package com.saperion.wf
Class HistoryInfoImpl
java.lang.Object
com.saperion.wf.HistoryInfoImpl
- All Implemented Interfaces:
HistoryInfo
,Serializable
History info implementation.
- Author:
- rbo
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.saperion.intf.wf.HistoryInfo
HistoryInfo.HistoryKind
-
Constructor Summary
ConstructorsConstructorDescriptionHistoryInfoImpl
(ActorInfo taskActor, ActorInfo taskExecutor, Date received, Date sended, String taskDescription, String transitionDescription) Constructor.HistoryInfoImpl
(com.saperion.jni.SaJNIWfHistory jniHistory) Constructor from JNI History. -
Method Summary
Modifier and TypeMethodDescriptionint
getActor()
int
int
getError()
int
getIndex()
getKind()
int
void
setActivity
(int act) void
setCommand
(int cmd) void
setComments
(CommentInfo[] commentArray) void
setError
(int errorId) void
setErrorMsg
(String msg) void
setIndex
(int idx) void
setKind
(HistoryInfo.HistoryKind kindId) void
setProcessName
(String processName) void
setTransition
(int trans) void
writeXML
(ContentHandler hd, Map<String, String> locales, boolean withComments) Writes data as xml part.
-
Constructor Details
-
HistoryInfoImpl
public HistoryInfoImpl(ActorInfo taskActor, ActorInfo taskExecutor, Date received, Date sended, String taskDescription, String transitionDescription) Constructor.- Parameters:
taskActor
- ActortaskExecutor
- Executorreceived
- Receive datesended
- Send datetaskDescription
- DescriptiontransitionDescription
- Transition description
-
HistoryInfoImpl
public HistoryInfoImpl(com.saperion.jni.SaJNIWfHistory jniHistory) Constructor from JNI History.- Parameters:
jniHistory
- JNI History
-
-
Method Details
-
getIndex
public int getIndex()- Specified by:
getIndex
in interfaceHistoryInfo
- Returns:
- the index
- See Also:
-
getReceiveDate
- Specified by:
getReceiveDate
in interfaceHistoryInfo
- Returns:
- the receiveDate
- See Also:
-
getSendDate
- Specified by:
getSendDate
in interfaceHistoryInfo
- Returns:
- the sendDate
- See Also:
-
getTransition
public int getTransition()- Specified by:
getTransition
in interfaceHistoryInfo
- Returns:
- the transition
- See Also:
-
getActivity
public int getActivity()- Specified by:
getActivity
in interfaceHistoryInfo
- Returns:
- the activity
- See Also:
-
getCommand
public int getCommand()- Specified by:
getCommand
in interfaceHistoryInfo
- Returns:
- the command
- See Also:
-
getKind
- Specified by:
getKind
in interfaceHistoryInfo
- Returns:
- the kind
- See Also:
-
getExecutor
- Specified by:
getExecutor
in interfaceHistoryInfo
- Returns:
- the executor
- See Also:
-
getActor
- Specified by:
getActor
in interfaceHistoryInfo
- Returns:
- the actor
- See Also:
-
getTransitionDescr
- Specified by:
getTransitionDescr
in interfaceHistoryInfo
- Returns:
- the transitionDescr
- See Also:
-
getTaskDescr
- Specified by:
getTaskDescr
in interfaceHistoryInfo
- Returns:
- the taskDescr
- See Also:
-
getProcessName
- Specified by:
getProcessName
in interfaceHistoryInfo
- Returns:
- process name
- See Also:
-
getError
public int getError()- Specified by:
getError
in interfaceHistoryInfo
- Returns:
- the error
- See Also:
-
getErrorMsg
- Specified by:
getErrorMsg
in interfaceHistoryInfo
- Returns:
- the errorMsg
- See Also:
-
getComments
- Specified by:
getComments
in interfaceHistoryInfo
- Returns:
- the comments
- See Also:
-
setIndex
public void setIndex(int idx) - Parameters:
idx
- the index
-
setTransition
public void setTransition(int trans) - Parameters:
trans
- the transition to set
-
setActivity
public void setActivity(int act) - Parameters:
act
- the activity to set
-
setProcessName
- Parameters:
processName
- the process name
-
setCommand
public void setCommand(int cmd) - Parameters:
cmd
- the command to set
-
setKind
- Parameters:
kindId
- the kind to set
-
setError
public void setError(int errorId) - Parameters:
errorId
- the error to set
-
setErrorMsg
- Parameters:
msg
- the errorMsg to set
-
setComments
- Parameters:
commentArray
- Comment array
-
writeXML
public void writeXML(ContentHandler hd, Map<String, String> locales, boolean withComments) throws SAXExceptionWrites data as xml part.- Parameters:
hd
- Content handlerlocales
- Localization mapwithComments
- With comments- Throws:
SAXException
- Exception
-