001: package org.wfmc.audit;
002:
003: /**
004: * Source Workflow Engine Audit Data.
005: *
006: * @author Antony Lodge
007: */
008: public abstract class WMAConversationAuditData extends
009: WMARemoteAuditBase {
010: private static final long serialVersionUID = -7249229384286210094L;
011:
012: private String correspondentContextId;
013:
014: protected WMAConversationAuditData() {
015: }
016:
017: private String correspondentNodeId;
018:
019: /**
020: * @param cwadPrefix
021: * @param messageId
022: * @param extensionNumber
023: * @param extensionType
024: * @param sourceConversationId
025: * @param targetConversationId
026: */
027: protected WMAConversationAuditData(CWADPrefix cwadPrefix,
028: String messageId, short extensionNumber,
029: String extensionType, String sourceConversationId,
030: String targetConversationId) {
031:
032: super (cwadPrefix, messageId, extensionNumber, extensionType,
033: sourceConversationId, targetConversationId);
034: }
035:
036: /**
037: * @param cwadPrefix
038: * @param messageId
039: * @param extensionNumber
040: * @param extensionType
041: * @param sourceConversationId
042: * @param targetConversationId
043: * @param correspondentContextId
044: * @param correspondentNodeId
045: */
046: protected WMAConversationAuditData(CWADPrefix cwadPrefix,
047: String messageId, short extensionNumber,
048: String extensionType, String sourceConversationId,
049: String targetConversationId, String correspondentContextId,
050: String correspondentNodeId) {
051:
052: super (cwadPrefix, messageId, extensionNumber, extensionType,
053: sourceConversationId, targetConversationId);
054:
055: this .correspondentContextId = correspondentContextId;
056: this .correspondentNodeId = correspondentNodeId;
057: }
058:
059: /**
060: * @return ContractId of Workflow Engine accepting the conversation request
061: */
062: public String getCorrespondentContextId() {
063: return correspondentContextId;
064: }
065:
066: /**
067: * @param correspondentContextId ContractId of Workflow Engine accepting
068: * the conversation request
069: */
070: public void setCorrespondentContextId(String correspondentContextId) {
071:
072: this .correspondentContextId = correspondentContextId;
073: }
074:
075: /**
076: * @return Node Id of the Workflow Engine accepting the coversation request
077: */
078: public String getCorrespondentNodeId() {
079: return correspondentNodeId;
080: }
081:
082: /**
083: * @param correspondentNodeId Node Id of the Workflow Engine accepting the
084: * conversation request
085: */
086: public void setCorrespondentNodeId(String correspondentNodeId) {
087: this .correspondentNodeId = correspondentNodeId;
088: }
089:
090: public String toString() {
091: return "WMAConversationAuditData@"
092: + System.identityHashCode(this ) + '[' + " cwadPrefix="
093: + formatCwadPrefix() + ", messageId=" + getMessageId()
094: + ", correspondentContextId=" + correspondentContextId
095: + ", correspondentNodeId=" + correspondentNodeId
096: + ", extensionNumber=" + getExtensionNumber()
097: + ", extensionType='" + getExtensionType() + '\''
098: + ", sourceConversationId='"
099: + getSourceConversationId() + '\''
100: + ", targetConversationId='"
101: + getTargetConversationId() + '\'' + ']';
102: }
103: }
|