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.3 of the Interface 5 WFMC standards.
054: *
055: * @author Antony Lodge
056: */
057: public class WMAAttributeChangedTargetNotification extends
058: WMATargetNotification {
059: private static final long serialVersionUID = 2953781925294546131L;
060:
061: private String attributeName;
062: private int attributeType;
063: private int attributeLength;
064: private int attributeValue;
065:
066: /**
067: * @return Name of attribute requested
068: */
069: public String getAttributeName() {
070: return attributeName;
071: }
072:
073: /**
074: * @param attributeName Name of attribute requested
075: */
076: public void setAttributeName(String attributeName) {
077: this .attributeName = attributeName;
078: }
079:
080: /**
081: * @return Type of attribute requested
082: */
083: public int getAttributeType() {
084: return attributeType;
085: }
086:
087: /**
088: * @param attributeType Type of attribute requested
089: */
090: public void setAttributeType(int attributeType) {
091: this .attributeType = attributeType;
092: }
093:
094: /**
095: * @return Length of requested attribute
096: */
097: public int getAttributeLength() {
098: return attributeLength;
099: }
100:
101: /**
102: * @param attributeLength Length of requested attribute
103: */
104: public void setAttributeLength(int attributeLength) {
105: this .attributeLength = attributeLength;
106: }
107:
108: /**
109: * @return New value Extension Number
110: */
111: public int getAttributeValue() {
112: return attributeValue;
113: }
114:
115: /**
116: * @param attributeValue New value Extension Number
117: */
118: public void setAttributeValue(int attributeValue) {
119: this .attributeValue = attributeValue;
120: }
121:
122: public String toString() {
123: return "WMAAttributeChangedTargetNotification@"
124: + System.identityHashCode(this ) + '[' + " cwadPrefix="
125: + formatCwadPrefix() + ", messageId=" + getMessageId()
126: + ", sourceActivityDefinitionBusinessName='"
127: + getSourceActivityDefinitionBusinessName() + '\''
128: + ", sourceProcessInstanceId="
129: + getSourceProcessInstanceId()
130: + ", sourceActivityInstanceId="
131: + getSourceActivityInstanceId() + ", sourceNodeId="
132: + getSourceNodeId() + ", attributeName='"
133: + attributeName + '\'' + ", attributeType="
134: + attributeType + ", attributeLength="
135: + attributeLength + ", attributeValue="
136: + attributeValue + ", extensionNumber="
137: + getExtensionNumber() + ", extensionType='"
138: + getExtensionType() + '\''
139: + ", sourceConversationId='"
140: + getSourceConversationId() + '\''
141: + ", targetConversationId='"
142: + getTargetConversationId() + '\'' + ']';
143: }
144: }
|