wsdm message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: RE: [wsdm] Groups - WEF substitutableMsg
- From: "Vambenepe, William N" <vbp@hp.com>
- To: "Thomas Studwell" <studwell@us.ibm.com>,<wsdm@lists.oasis-open.org>
- Date: Tue, 16 Nov 2004 09:06:07 -0800
Hi Tom,
A few comments. My main problem with this mechanism is that
it goes against loose coupling. It assumes the right catalog is already
available at both ends. While this might be true in some cases, it won't work in
the general case. So if we need this mechanism we need to add to it an optional
URL to download the appropriate catalog.
Also, the msgIdType (and probably the msgId too) should be
a URI. This way we don't have to "reserve" keywords like "IBM" or "JMX" in our
spec. This really doesn't scale . This is exactly what URI have been invented
for.
Why do the values need to be typed? If I have a catalog
then presumably I know how to handle each value. This doesn't need to be in the
message passed around. On the other hand, it might be useful to give names or
sequence numbers to the different values so that the template messages can
refer to them explicitly rather than implicitly through the order of the
elements. Depending on elements order in XML is not always
recommended.
William
Igor,
thanks for the comment. I wasn't clear on how substitutableMsg was
used. Let me try again with a possibly more correct version.
Message
catalogs exist for different languages so that messages displayed on an English
console can render the same information as a message rendered on a French
console by simply changing the Language catalog used. In my example the
msgIdType specifies the base catalog, not the "type" of the data, and the
local setting determines which language version of the base catalog is used.
Then the msgId of "DBT1234E" is used to pull out the text from the
catalog and, from the English catalog the following string is
returned:
"Database copy initiated, %s process, transaction ID:
%x."
This string has formatting information for two substitution values,
one string type, one hexadecimal formatting of an integer. Substituting, the
rendored message would read:
"Database copy initiated, backup process,
transaction ID: 0A120987BEA49342."
The French catalog would yield
something like:
"La copie de données a inauguré, procédé de backup,
transaction ID: 0A120987BEA49342."
In the doc I had mistakenly thought I
could simply type the values using type element names. Perhaps a better way is
to have the {any} element a named element with a type attribute. For
example:
<substitutableMsg msgId=”xs:string” msgIdType=”xs:string”?>
<value
valueType="xs:string">xs:any</value>*?
</substitutableMsg> ?
where
valueType has enumerated values of string, integer,
hexadecimal, float so that the appropriate type conversion of the
values can be performed.
The example would now be stated as:
<substitutableMsg msgId=”DBT1234E”
msgIdType=”IBM3.4”>
<value>”backup”</value> ! string could be the default
type
<value
valueType="hexadecimal">”0A120987BEA49342”</value>
</substitutableMsg>
Thomas W.
Studwell
Senior Technical Staff Member, Autonomic Computing
Architecture
IBM Software Group
C151/Bldg 500
4205 S Miami Blvd,
Durham, NC 27703
(919) 254-7574 Fax: (919) 254-7628 Mobile: (919)
619-1038
studwell@us.ibm.com
"What marks the mind of the strategist is
an intellectual elasticity or flexibility that enables him to come up with
realistic responses to changing conditions... In strategic thinking, one first
seeks a clear understanding of the particular character of each element of a
situation and then makes the fullest possible use of human brainpower to
restructure the elements in the most advantageous way." (Keniche Ohmae, The Mind
of the Strategist)
"Sedukhin, Igor S"
<Igor.Sedukhin@ca.com>
"Sedukhin, Igor S"
<Igor.Sedukhin@ca.com>
11/15/2004 01:49 PM |
|
Should
do
<substitutableMsg msgId="xs:string">
xs:anyType
</substitutableMsg> ?
E.g. instance of
this
<substiutableMsg msgId="abc"
xsi:type="java:ExceptionString">
<[[CDATA[ X.y.Z.Class threw exception
... ]]>
</substiutableMsg>
-- Igor Sedukhin ..
(igor.sedukhin@ca.com)
-- (631) 342-4325 .. 1 CA Plaza, Islandia, NY 11749
-----Original Message-----
From: studwell@us.ibm.com [mailto:studwell@us.ibm.com]
Sent:
Monday, November 15, 2004 11:20 AM
To: wsdm@lists.oasis-open.org
Subject:
[wsdm] Groups - WSDM_EventFormatV0.7f.doc uploaded
The document
WSDM_EventFormatV0.7f.doc has been submitted by Thomas
Studwell
(studwell@us.ibm.com) to the OASIS Web Services Distributed
Management (WSDM)
TC document repository.
Document Description:
[WEF] Updated doc
includes new values for Severity based on input from
Homayoun. Thanks
Homayoun.
Download Document:
http://www.oasis-open.org/apps/org/workgroup/wsdm/download.php/10094/WSD
M_EventFormatV0.7f.doc
View
Document Details:
http://www.oasis-open.org/apps/org/workgroup/wsdm/document.php?document_
id=10094
PLEASE
NOTE: If the above links do not work for you, your email
application
may be breaking the link into two pieces. You may be able
to copy and
paste the entire link address into the address field of your
web
browser.
To unsubscribe from this mailing list (and be removed
from the roster of
the OASIS TC), go to
http://www.oasis-open.org/apps/org/workgroup/wsdm/members/leave_workgrou
p.php.
To
unsubscribe from this mailing list (and be removed from the roster of the OASIS
TC), go to http://www.oasis-open.org/apps/org/workgroup/wsdm/members/leave_workgroup.php.
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]