Package com.saperion.wf
Class HistoryInfoImpl
- java.lang.Object
-
- com.saperion.wf.HistoryInfoImpl
-
- All Implemented Interfaces:
HistoryInfo,java.io.Serializable
public final class HistoryInfoImpl extends java.lang.Object implements HistoryInfo
History info implementation.- Author:
- rbo
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.saperion.intf.wf.HistoryInfo
HistoryInfo.HistoryKind
-
-
Constructor Summary
Constructors Constructor Description HistoryInfoImpl(ActorInfo taskActor, ActorInfo taskExecutor, java.util.Date received, java.util.Date sended, java.lang.String taskDescription, java.lang.String transitionDescription)Constructor.HistoryInfoImpl(com.saperion.jni.SaJNIWfHistory jniHistory)Constructor from JNI History.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetActivity()ActorInfogetActor()intgetCommand()CommentInfo[]getComments()intgetError()java.lang.StringgetErrorMsg()ActorInfogetExecutor()intgetIndex()HistoryInfo.HistoryKindgetKind()java.lang.StringgetProcessName()java.util.DategetReceiveDate()java.util.DategetSendDate()java.lang.StringgetTaskDescr()intgetTransition()java.lang.StringgetTransitionDescr()voidsetActivity(int act)voidsetCommand(int cmd)voidsetComments(CommentInfo[] commentArray)voidsetError(int errorId)voidsetErrorMsg(java.lang.String msg)voidsetIndex(int idx)voidsetKind(HistoryInfo.HistoryKind kindId)voidsetProcessName(java.lang.String processName)voidsetTransition(int trans)voidwriteXML(org.xml.sax.ContentHandler hd, java.util.Map<java.lang.String,java.lang.String> locales, boolean withComments)Writes data as xml part.
-
-
-
Constructor Detail
-
HistoryInfoImpl
public HistoryInfoImpl(ActorInfo taskActor, ActorInfo taskExecutor, java.util.Date received, java.util.Date sended, java.lang.String taskDescription, java.lang.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 Detail
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceHistoryInfo- Returns:
- the index
- See Also:
HistoryInfo.getIndex()
-
getReceiveDate
public java.util.Date getReceiveDate()
- Specified by:
getReceiveDatein interfaceHistoryInfo- Returns:
- the receiveDate
- See Also:
HistoryInfo.getReceiveDate()
-
getSendDate
public java.util.Date getSendDate()
- Specified by:
getSendDatein interfaceHistoryInfo- Returns:
- the sendDate
- See Also:
HistoryInfo.getSendDate()
-
getTransition
public int getTransition()
- Specified by:
getTransitionin interfaceHistoryInfo- Returns:
- the transition
- See Also:
HistoryInfo.getTransition()
-
getActivity
public int getActivity()
- Specified by:
getActivityin interfaceHistoryInfo- Returns:
- the activity
- See Also:
HistoryInfo.getActivity()
-
getCommand
public int getCommand()
- Specified by:
getCommandin interfaceHistoryInfo- Returns:
- the command
- See Also:
HistoryInfo.getCommand()
-
getKind
public HistoryInfo.HistoryKind getKind()
- Specified by:
getKindin interfaceHistoryInfo- Returns:
- the kind
- See Also:
HistoryInfo.getKind()
-
getExecutor
public ActorInfo getExecutor()
- Specified by:
getExecutorin interfaceHistoryInfo- Returns:
- the executor
- See Also:
HistoryInfo.getExecutor()
-
getActor
public ActorInfo getActor()
- Specified by:
getActorin interfaceHistoryInfo- Returns:
- the actor
- See Also:
HistoryInfo.getActor()
-
getTransitionDescr
public java.lang.String getTransitionDescr()
- Specified by:
getTransitionDescrin interfaceHistoryInfo- Returns:
- the transitionDescr
- See Also:
HistoryInfo.getTransitionDescr()
-
getTaskDescr
public java.lang.String getTaskDescr()
- Specified by:
getTaskDescrin interfaceHistoryInfo- Returns:
- the taskDescr
- See Also:
HistoryInfo.getTaskDescr()
-
getProcessName
public java.lang.String getProcessName()
- Specified by:
getProcessNamein interfaceHistoryInfo- Returns:
- process name
- See Also:
HistoryInfo.getProcessName()
-
getError
public int getError()
- Specified by:
getErrorin interfaceHistoryInfo- Returns:
- the error
- See Also:
HistoryInfo.getError()
-
getErrorMsg
public java.lang.String getErrorMsg()
- Specified by:
getErrorMsgin interfaceHistoryInfo- Returns:
- the errorMsg
- See Also:
HistoryInfo.getErrorMsg()
-
getComments
public CommentInfo[] getComments()
- Specified by:
getCommentsin interfaceHistoryInfo- Returns:
- the comments
- See Also:
HistoryInfo.getComments()
-
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
public void setProcessName(java.lang.String processName)
- Parameters:
processName- the process name
-
setCommand
public void setCommand(int cmd)
- Parameters:
cmd- the command to set
-
setKind
public void setKind(HistoryInfo.HistoryKind kindId)
- Parameters:
kindId- the kind to set
-
setError
public void setError(int errorId)
- Parameters:
errorId- the error to set
-
setErrorMsg
public void setErrorMsg(java.lang.String msg)
- Parameters:
msg- the errorMsg to set
-
setComments
public void setComments(CommentInfo[] commentArray)
- Parameters:
commentArray- Comment array
-
writeXML
public void writeXML(org.xml.sax.ContentHandler hd, java.util.Map<java.lang.String,java.lang.String> locales, boolean withComments) throws org.xml.sax.SAXExceptionWrites data as xml part.- Parameters:
hd- Content handlerlocales- Localization mapwithComments- With comments- Throws:
org.xml.sax.SAXException- Exception
-
-