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: /**
053: * Section 8.9.2 of the Interface 5 WFMC standards.
054: *
055: * @author Antony Lodge
056: */
057: public class WMAAttributeChangedSourceNotification extends
058: WMASourceNotification {
059: private static final long serialVersionUID = -283375994402132149L;
060:
061: private String attributeName;
062: private int attributeType;
063: private int attributeLength;
064: private int attributeValue;
065:
066: /**
067: * @param cwadPrefix
068: * @param messageId
069: * @param extensionNumber
070: * @param extensionType
071: * @param sourceConversationId
072: * @param targetConversationId
073: * @param sourceActivityDefinitionBusinessName
074: *
075: * @param targetProcessInstanceId
076: * @param targetProcessDefinitionId
077: * @param targetNodeId
078: * @param attributeName
079: * @param attributeType
080: * @param attributeLength
081: * @param attributeValue
082: */
083: public WMAAttributeChangedSourceNotification(CWADPrefix cwadPrefix,
084: String messageId, short extensionNumber,
085: String extensionType, String sourceConversationId,
086: String targetConversationId,
087: String sourceActivityDefinitionBusinessName,
088: String targetProcessInstanceId,
089: String targetProcessDefinitionId, String targetNodeId,
090: String attributeName, int attributeType,
091: int attributeLength, int attributeValue) {
092:
093: super (cwadPrefix, messageId, extensionNumber, extensionType,
094: sourceConversationId, targetConversationId,
095: sourceActivityDefinitionBusinessName,
096: targetProcessInstanceId, targetProcessDefinitionId,
097: targetNodeId);
098:
099: this .attributeName = attributeName;
100: this .attributeType = attributeType;
101: this .attributeLength = attributeLength;
102: this .attributeValue = attributeValue;
103: }
104:
105: /**
106: * @param cwadPrefix
107: * @param messageId
108: * @param extensionNumber
109: * @param extensionType
110: * @param sourceConversationId
111: * @param targetConversationId
112: * @param sourceActivityDefinitionBusinessName
113: *
114: * @param targetProcessInstanceId
115: * @param targetProcessDefinitionId
116: * @param targetNodeId
117: */
118: public WMAAttributeChangedSourceNotification(CWADPrefix cwadPrefix,
119: String messageId, short extensionNumber,
120: String extensionType, String sourceConversationId,
121: String targetConversationId,
122: String sourceActivityDefinitionBusinessName,
123: String targetProcessInstanceId,
124: String targetProcessDefinitionId, String targetNodeId) {
125:
126: super (cwadPrefix, messageId, extensionNumber, extensionType,
127: sourceConversationId, targetConversationId,
128: sourceActivityDefinitionBusinessName,
129: targetProcessInstanceId, targetProcessDefinitionId,
130: targetNodeId);
131: }
132:
133: /**
134: * @return Name of attribute requested
135: */
136: public String getAttributeName() {
137: return attributeName;
138: }
139:
140: /**
141: * @param attributeName Name of attribute requested
142: */
143: public void setAttributeName(String attributeName) {
144: this .attributeName = attributeName;
145: }
146:
147: /**
148: * @return Type of attribute requested
149: */
150: public int getAttributeType() {
151: return attributeType;
152: }
153:
154: /**
155: * @param attributeType Type of attribute requested
156: */
157: public void setAttributeType(int attributeType) {
158: this .attributeType = attributeType;
159: }
160:
161: /**
162: * @return Length of requested attribute
163: */
164: public int getAttributeLength() {
165: return attributeLength;
166: }
167:
168: /**
169: * @param attributeLength Length of requested attribute
170: */
171: public void setAttributeLength(int attributeLength) {
172: this .attributeLength = attributeLength;
173: }
174:
175: /**
176: * @return New value Extension Number
177: */
178: public int getAttributeValue() {
179: return attributeValue;
180: }
181:
182: /**
183: * @param attributeValue New value Extension Number
184: */
185: public void setAttributeValue(int attributeValue) {
186: this .attributeValue = attributeValue;
187: }
188:
189: public String toString() {
190: return "WMAAttributeChangedSourceNotification@"
191: + System.identityHashCode(this ) + '[' + " cwadPrefix="
192: + formatCwadPrefix() + ", messageId=" + getMessageId()
193: + ", sourceActivityDefinitionBusinessName='"
194: + getSourceActivityDefinitionBusinessName() + '\''
195: + ", targetProcessDefinitionId="
196: + getTargetProcessDefinitionId()
197: + ", targetProcessInstanceId="
198: + getTargetProcessInstanceId() + ", targetNodeId="
199: + getTargetNodeId() + ", attributeName='"
200: + attributeName + '\'' + ", attributeType="
201: + attributeType + ", attributeLength="
202: + attributeLength + ", attributeValue="
203: + attributeValue + ", extensionNumber="
204: + getExtensionNumber() + ", extensionType='"
205: + getExtensionType() + '\''
206: + ", sourceConversationId='"
207: + getSourceConversationId() + '\''
208: + ", targetConversationId='"
209: + getTargetConversationId() + '\'' + ']';
210: }
211: }
|