Open racheliurui opened 5 years ago
Grammar mistake with XML tag naming. ThrowedFrom should be ThrownFrom in ErrorInfo-UserArea.xsd Fixed in ETP Bitbucket
@CharlieG021163 This is an ErrorHandling.xsd created by Rachel. Shall we propose this Error.xsd as a new B2MML-Error.xsd for inclusion in the MESA schemas? If yes, then we should change the name of this issue to: ADD: B2MML-ERROR.XSD I can then supply you with the .xsd and it already has the fix applied.
If not, then we can make this an ERDi Design Rule (i've created a milestone for ERDi Design Rule)
Add File: ErrorInfo-UserArea.xsd
<?xml version="1.0" encoding="UTF-8" ?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.mesa.org/xml/B2MML-Extention" xmlns:ext="http://www.mesa.org/xml/B2MML-Extention">
<xs:element name="ErrorMessage" type="ext:ErrorMessageType" />
<xs:simpleType name="ErrorTypeType" final="restriction">
<xs:restriction base="xs:string">
<xs:enumeration value="BusinessError" />
<xs:enumeration value="SystemError" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ErrorMessageType">
<xs:sequence>
<xs:element name="ThrownFrom" type="xs:string" />
<xs:element name="TimeStamp" type="xs:dateTime"/>
<xs:element name="ErrorType" type="ext:ErrorTypeType"/>
<xs:element name="ErrorCode" type="xs:string" minOccurs = "0" />
<xs:element name="ErrorDescription" type="xs:string" minOccurs = "0" />
<xs:element name="CausedBy" type="ext:ErrorMessageType" minOccurs = "0" />
</xs:sequence>
</xs:complexType>
Trapper will send actual file. Charlie will review.
Charlie, try this link Process Event Wrappers/ErrorInfo-UserArea.xsd https://github.com/etpartners-com-au/ETPSchemaDesign/blob/master/Process%20Event%20Wrappers/ErrorInfo-UserArea.xsd
I think a brief discussion with the ISA 95 committee is needed here. I agree with the need, but they may have more ideas on the error types. In addition the ErrorTypeType needs to have an "Other" category to allow for extensions.
More than happy to add an 'other' element. Does this really need to go to ISA95 @Dennis-Brandl ? I would see this simply as a tool of xml to handle business errors outside of ISA95 concepts, without breaking the xml formatting of the message. This way, incorrect values can be directly fixed, and the message replayed without having to convert a non-B@MML error message.
If we do have to take it to ISA95, can we arrange a meeting to discuss with them next week?
After discussion, and no objections from the ISA 95 committee, I added this to the MESA V0700 that I just uploaded. This issue can be closed.
@Dennis-Brandl did you also add an 'other' element on your change?
Gerard,
Yes it includes the “other” element I the error type:
ERDi, MESA:
Background B2MML does not have an error handling schema. A basic set of error handling logic should be considered by MESA as starting point for users.
Solution ADD: B2MML-ErrorMessage.XSD This is an extension schema to help standardize the error handling logic.