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 int
getActivity()
ActorInfo
getActor()
int
getCommand()
CommentInfo[]
getComments()
int
getError()
java.lang.String
getErrorMsg()
ActorInfo
getExecutor()
int
getIndex()
HistoryInfo.HistoryKind
getKind()
java.lang.String
getProcessName()
java.util.Date
getReceiveDate()
java.util.Date
getSendDate()
java.lang.String
getTaskDescr()
int
getTransition()
java.lang.String
getTransitionDescr()
void
setActivity(int act)
void
setCommand(int cmd)
void
setComments(CommentInfo[] commentArray)
void
setError(int errorId)
void
setErrorMsg(java.lang.String msg)
void
setIndex(int idx)
void
setKind(HistoryInfo.HistoryKind kindId)
void
setProcessName(java.lang.String processName)
void
setTransition(int trans)
void
writeXML(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:
getIndex
in interfaceHistoryInfo
- Returns:
- the index
- See Also:
HistoryInfo.getIndex()
-
getReceiveDate
public java.util.Date getReceiveDate()
- Specified by:
getReceiveDate
in interfaceHistoryInfo
- Returns:
- the receiveDate
- See Also:
HistoryInfo.getReceiveDate()
-
getSendDate
public java.util.Date getSendDate()
- Specified by:
getSendDate
in interfaceHistoryInfo
- Returns:
- the sendDate
- See Also:
HistoryInfo.getSendDate()
-
getTransition
public int getTransition()
- Specified by:
getTransition
in interfaceHistoryInfo
- Returns:
- the transition
- See Also:
HistoryInfo.getTransition()
-
getActivity
public int getActivity()
- Specified by:
getActivity
in interfaceHistoryInfo
- Returns:
- the activity
- See Also:
HistoryInfo.getActivity()
-
getCommand
public int getCommand()
- Specified by:
getCommand
in interfaceHistoryInfo
- Returns:
- the command
- See Also:
HistoryInfo.getCommand()
-
getKind
public HistoryInfo.HistoryKind getKind()
- Specified by:
getKind
in interfaceHistoryInfo
- Returns:
- the kind
- See Also:
HistoryInfo.getKind()
-
getExecutor
public ActorInfo getExecutor()
- Specified by:
getExecutor
in interfaceHistoryInfo
- Returns:
- the executor
- See Also:
HistoryInfo.getExecutor()
-
getActor
public ActorInfo getActor()
- Specified by:
getActor
in interfaceHistoryInfo
- Returns:
- the actor
- See Also:
HistoryInfo.getActor()
-
getTransitionDescr
public java.lang.String getTransitionDescr()
- Specified by:
getTransitionDescr
in interfaceHistoryInfo
- Returns:
- the transitionDescr
- See Also:
HistoryInfo.getTransitionDescr()
-
getTaskDescr
public java.lang.String getTaskDescr()
- Specified by:
getTaskDescr
in interfaceHistoryInfo
- Returns:
- the taskDescr
- See Also:
HistoryInfo.getTaskDescr()
-
getProcessName
public java.lang.String getProcessName()
- Specified by:
getProcessName
in interfaceHistoryInfo
- Returns:
- process name
- See Also:
HistoryInfo.getProcessName()
-
getError
public int getError()
- Specified by:
getError
in interfaceHistoryInfo
- Returns:
- the error
- See Also:
HistoryInfo.getError()
-
getErrorMsg
public java.lang.String getErrorMsg()
- Specified by:
getErrorMsg
in interfaceHistoryInfo
- Returns:
- the errorMsg
- See Also:
HistoryInfo.getErrorMsg()
-
getComments
public CommentInfo[] getComments()
- Specified by:
getComments
in 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.SAXException
Writes data as xml part.- Parameters:
hd
- Content handlerlocales
- Localization mapwithComments
- With comments- Throws:
org.xml.sax.SAXException
- Exception
-
-