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 TypeMethodDescriptionintgetActor()intintgetError()intgetIndex()getKind()intvoidsetActivity(int act) voidsetCommand(int cmd) voidsetComments(CommentInfo[] commentArray) voidsetError(int errorId) voidsetErrorMsg(String msg) voidsetIndex(int idx) voidsetKind(HistoryInfo.HistoryKind kindId) voidsetProcessName(String processName) voidsetTransition(int trans) voidwriteXML(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:
getIndexin interfaceHistoryInfo- Returns:
- the index
- See Also:
-
getReceiveDate
- Specified by:
getReceiveDatein interfaceHistoryInfo- Returns:
- the receiveDate
- See Also:
-
getSendDate
- Specified by:
getSendDatein interfaceHistoryInfo- Returns:
- the sendDate
- See Also:
-
getTransition
public int getTransition()- Specified by:
getTransitionin interfaceHistoryInfo- Returns:
- the transition
- See Also:
-
getActivity
public int getActivity()- Specified by:
getActivityin interfaceHistoryInfo- Returns:
- the activity
- See Also:
-
getCommand
public int getCommand()- Specified by:
getCommandin interfaceHistoryInfo- Returns:
- the command
- See Also:
-
getKind
- Specified by:
getKindin interfaceHistoryInfo- Returns:
- the kind
- See Also:
-
getExecutor
- Specified by:
getExecutorin interfaceHistoryInfo- Returns:
- the executor
- See Also:
-
getActor
- Specified by:
getActorin interfaceHistoryInfo- Returns:
- the actor
- See Also:
-
getTransitionDescr
- Specified by:
getTransitionDescrin interfaceHistoryInfo- Returns:
- the transitionDescr
- See Also:
-
getTaskDescr
- Specified by:
getTaskDescrin interfaceHistoryInfo- Returns:
- the taskDescr
- See Also:
-
getProcessName
- Specified by:
getProcessNamein interfaceHistoryInfo- Returns:
- process name
- See Also:
-
getError
public int getError()- Specified by:
getErrorin interfaceHistoryInfo- Returns:
- the error
- See Also:
-
getErrorMsg
- Specified by:
getErrorMsgin interfaceHistoryInfo- Returns:
- the errorMsg
- See Also:
-
getComments
- Specified by:
getCommentsin 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
-