001: /*--
002:
003: Copyright (C) 2002 Anthony Eden.
004: All rights reserved.
005:
006: Redistribution and use in source and binary forms, with or without
007: modification, are permitted provided that the following conditions
008: are met:
009:
010: 1. Redistributions of source code must retain the above copyright
011: notice, this list of conditions, and the following disclaimer.
012:
013: 2. Redistributions in binary form must reproduce the above copyright
014: notice, this list of conditions, and the disclaimer that follows
015: these conditions in the documentation and/or other materials
016: provided with the distribution.
017:
018: 3. The names "OBE" and "Open Business Engine" must not be used to
019: endorse or promote products derived from this software without prior
020: written permission. For written permission, please contact
021: me@anthonyeden.com.
022:
023: 4. Products derived from this software may not be called "OBE" or
024: "Open Business Engine", nor may "OBE" or "Open Business Engine"
025: appear in their name, without prior written permission from
026: Anthony Eden (me@anthonyeden.com).
027:
028: In addition, I request (but do not require) that you include in the
029: end-user documentation provided with the redistribution and/or in the
030: software itself an acknowledgement equivalent to the following:
031: "This product includes software developed by
032: Anthony Eden (http://www.anthonyeden.com/)."
033:
034: THIS SOFTWARE IS PROVIdED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
035: WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
036: OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
037: DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
038: INDIRECT, INCIdENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
039: (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
040: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
041: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
042: STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
043: IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
044: POSSIBILITY OF SUCH DAMAGE.
045:
046: For more information on OBE, please see <http://obe.sourceforge.net/>.
047:
048: */
049:
050: package org.wfmc.audit;
051:
052: import java.util.Date;
053:
054: /**
055: * @author Antony Lodge
056: */
057: public class WMAGetAttributesTargetWorkflowRequest extends
058: WMATargetWorkflow {
059: private static final long serialVersionUID = 4680867030950998473L;
060:
061: private String attributeName;
062:
063: public WMAGetAttributesTargetWorkflowRequest() {
064: }
065:
066: /**
067: * @param cwadPrefix
068: * @param messageId
069: * @param extensionNumber
070: * @param extensionType
071: * @param sourceConversationId
072: * @param targetConversationId
073: * @param sourceInitialProcessInstanceId
074: * @param sourceCurrentProcessInstanceId
075: * @param sourceActivityInstanceId
076: * @param sourceTimestamp
077: * @param sourceNodeId
078: * @param sourceUserId
079: * @param sourceRoleId
080: * @param sourceProcessDefinitionId
081: * @param sourceProcessDefinitionBusinessName
082: *
083: * @param sourceActivityDefinitionBusinessName
084: *
085: */
086: public WMAGetAttributesTargetWorkflowRequest(CWADPrefix cwadPrefix,
087: String messageId, short extensionNumber,
088: String extensionType, String sourceConversationId,
089: String targetConversationId,
090: String sourceInitialProcessInstanceId,
091: String sourceCurrentProcessInstanceId,
092: String sourceActivityInstanceId, Date sourceTimestamp,
093: String sourceNodeId, String sourceUserId,
094: String sourceRoleId, String sourceProcessDefinitionId,
095: String sourceProcessDefinitionBusinessName,
096: String sourceActivityDefinitionBusinessName) {
097:
098: super (cwadPrefix, messageId, extensionNumber, extensionType,
099: sourceConversationId, targetConversationId,
100: sourceInitialProcessInstanceId,
101: sourceCurrentProcessInstanceId,
102: sourceActivityInstanceId, sourceTimestamp,
103: sourceNodeId, sourceUserId, sourceRoleId,
104: sourceProcessDefinitionId,
105: sourceProcessDefinitionBusinessName,
106: sourceActivityDefinitionBusinessName);
107: }
108:
109: /**
110: * @param cwadPrefix
111: * @param messageId
112: * @param extensionNumber
113: * @param extensionType
114: * @param sourceConversationId
115: * @param targetConversationId
116: * @param sourceInitialProcessInstanceId
117: * @param sourceCurrentProcessInstanceId
118: * @param sourceActivityInstanceId
119: * @param sourceTimestamp
120: * @param sourceNodeId
121: * @param sourceUserId
122: * @param sourceRoleId
123: * @param sourceProcessDefinitionId
124: * @param sourceProcessDefinitionBusinessName
125: *
126: * @param sourceActivityDefinitionBusinessName
127: *
128: * @param attributeName
129: */
130: public WMAGetAttributesTargetWorkflowRequest(CWADPrefix cwadPrefix,
131: String messageId, short extensionNumber,
132: String extensionType, String sourceConversationId,
133: String targetConversationId,
134: String sourceInitialProcessInstanceId,
135: String sourceCurrentProcessInstanceId,
136: String sourceActivityInstanceId, Date sourceTimestamp,
137: String sourceNodeId, String sourceUserId,
138: String sourceRoleId, String sourceProcessDefinitionId,
139: String sourceProcessDefinitionBusinessName,
140: String sourceActivityDefinitionBusinessName,
141: String attributeName) {
142:
143: super (cwadPrefix, messageId, extensionNumber, extensionType,
144: sourceConversationId, targetConversationId,
145: sourceInitialProcessInstanceId,
146: sourceCurrentProcessInstanceId,
147: sourceActivityInstanceId, sourceTimestamp,
148: sourceNodeId, sourceUserId, sourceRoleId,
149: sourceProcessDefinitionId,
150: sourceProcessDefinitionBusinessName,
151: sourceActivityDefinitionBusinessName);
152:
153: this .attributeName = attributeName;
154: }
155:
156: /**
157: * @return Name of attribute requested
158: */
159: public String getAttributeName() {
160: return attributeName;
161: }
162:
163: /**
164: * @param attributeName Name of attribute requested
165: */
166: public void setAttributeName(String attributeName) {
167: this .attributeName = attributeName;
168: }
169:
170: public String toString() {
171: return "WMAGetAttributesTargetWorkflowRequest@"
172: + System.identityHashCode(this ) + '[' + " cwadPrefix="
173: + formatCwadPrefix() + ", messageId=" + getMessageId()
174: + ", sourceInitialProcessInstanceId="
175: + getSourceInitialProcessInstanceId()
176: + ", sourceCurrentProcessInstanceId="
177: + getSourceCurrentProcessInstanceId()
178: + ", sourceActivityInstanceId="
179: + getSourceActivityInstanceId() + ", sourceTimestamp="
180: + getSourceTimestamp() + ", sourceNodeId="
181: + getSourceNodeId() + ", sourceUserId="
182: + getSourceUserId() + ", sourceRoleId="
183: + getSourceRoleId() + ", sourceProcessDefinitionId="
184: + getSourceProcessDefinitionId()
185: + ", sourceProcessDefinitionBusinessName='"
186: + getSourceProcessDefinitionBusinessName() + '\''
187: + ", sourceActivityDefinitionBusinessName='"
188: + getSourceActivityDefinitionBusinessName() + '\''
189: + ", attributeName='" + attributeName + '\''
190: + ", extensionNumber=" + getExtensionNumber()
191: + ", extensionType='" + getExtensionType() + '\''
192: + ", sourceConversationId='"
193: + getSourceConversationId() + '\''
194: + ", targetConversationId='"
195: + getTargetConversationId() + '\'' + ']';
196: }
197: }
|