[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [ubl-dev] Question regarding item specification in Catalogue
Hi Ken, Thank you for the response. I had seen the item property collections at the different levels but hadn't thought of using the ItemInstance level to describe properties that would be specific to the instance of the item. After you mentioned it for some reason it made sense. In terms of representing any rules about the value that can be specified for the property would something like this seem reasonable? Example: a shirt needs a string that represents the name where the name can be up to 30 characters <cac:ItemInstance> <cac:AdditionalItemProperty> <cbc:Name>Name</cbc:Name> <cbc:NameCode>NAME_CODE</cbc:NameCode> <cbc:TestMethod>^[0-9a-zA-Z\s]{1,30}$</cbc:TestMethod> </cac:AdditionalItemProperty> </cac:ItemInstance> There is a TestMethod element in the item property. Based on the example in the documentation I'm not sure if this would be an appropriate usage. Another option I had for the string length would be to use the RangeDimension element with a unitCode of "CHAR" or something to denote min and max lengths. This feels like it would be stretching the concept of what Dimension is meant to represent. Example: a title needs to be selected from a predefined list of Mr., Mrs., and Dr. <cac:ItemInstance> <cac:AdditionalItemProperty> <cbc:Name>Title</cbc:Name> <cbc:NameCode listURI="http://title-code-list.gc">TITLE_CODE</cbc:NameCode> </cac:AdditionalItemProperty> </cac:ItemInstance> In this case the validation would come using the provided code list to validate the selection. Any thoughts you had on this would be appreciated. I think if the ItemProperty is used the validation when ordering the item might have to vary based on the structure of the specific ItemProperty. John -----Original Message----- From: G. Ken Holman [mailto:g.ken.holman@gmail.com] On Behalf Of G. Ken Holman Sent: Thursday, February 18, 2016 9:28 PM To: John Grekso; ubl-dev@lists.oasis-open.org Subject: Re: [ubl-dev] Question regarding item specification in Catalogue There are two places where one specifies properties for an item: those that are properties of all examples of the item, and those that are specific to a given instance of the item. I would think that the name used to embroider a shirt would be an example of something specific to a given instance of the item: Catalogue http://docs.oasis-open.org/ubl/os-UBL-2.1/mod/summary/reports/UBL-AllDocuments-2.1.html#Table_Catalogue.Details / cac:CatalogueLine http://docs.oasis-open.org/ubl/os-UBL-2.1/mod/summary/reports/UBL-AllDocuments-2.1.html#Table_CatalogueLine.Details / cac:Item http://docs.oasis-open.org/ubl/os-UBL-2.1/mod/summary/reports/UBL-AllDocuments-2.1.html#Table_Item.Details / cac:ItemInstance http://docs.oasis-open.org/ubl/os-UBL-2.1/mod/summary/reports/UBL-AllDocuments-2.1.html#Table_ItemInstance.Details / cac:AdditionaItemProperty http://docs.oasis-open.org/ubl/os-UBL-2.1/mod/summary/reports/UBL-AllDocuments-2.1.html#t-CommonLibrary-1087 And I would think the generic properties would go here: Catalogue http://docs.oasis-open.org/ubl/os-UBL-2.1/mod/summary/reports/UBL-AllDocuments-2.1.html#Table_Catalogue.Details / cac:CatalogueLine http://docs.oasis-open.org/ubl/os-UBL-2.1/mod/summary/reports/UBL-AllDocuments-2.1.html#Table_CatalogueLine.Details / cac:Item http://docs.oasis-open.org/ubl/os-UBL-2.1/mod/summary/reports/UBL-AllDocuments-2.1.html#Table_Item.Details / cac:AdditionaItemProperty http://docs.oasis-open.org/ubl/os-UBL-2.1/mod/summary/reports/UBL-AllDocuments-2.1.html#t-CommonLibrary-1056 CAVEAT: I'm an angle-bracket guy and not a business analyst but I try to answer questions like these in order to learn more about the business semantics. If anyone on the list would like to question what I've suggested, please speak up! I'm only speaking for myself in these kinds of answers. I hope this helps. . . . . . . Ken At 2016-02-19 02:47 +0000, John Grekso wrote: >Hi, > >I've looked around and haven't been able to find any guidance or >examples so I'm hoping someone might be able to help. > >We are currently looking at using the UBL Catalogue and for so far I >have been able to represent the scenarios we currently have. There is >one scenario that I am having trouble representing. We have products >that require additional information in order to be purchased. For >example, a shirt might have embroidery and require the name of the >person to be specified. In looking through the components of the Item >element though I am not seeing how this could be represented. > >Any help or guidance on where I could look or how this might be >represented would be much appreciated. > >Thanks, >John > -- Check our site for free XML, XSLT, XSL-FO and UBL developer resources | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/video.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/u/ | G. Ken Holman mailto:gkholman@CraneSoftwrights.com | Google+ profile: http://plus.google.com/+GKenHolman-Crane/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal | --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]