Author: jonesde
Date: Tue Jun 19 00:38:26 2007 New Revision: 548631 URL: http://svn.apache.org/viewvc?view=rev&rev=548631 Log: Added entities and seed data to keep track of general OAGIS message info Added: ofbiz/trunk/specialpurpose/oagis/data/ ofbiz/trunk/specialpurpose/oagis/data/OagisTypeData.xml (with props) ofbiz/trunk/specialpurpose/oagis/entitydef/ ofbiz/trunk/specialpurpose/oagis/entitydef/entitygroup.xml (with props) ofbiz/trunk/specialpurpose/oagis/entitydef/entitymodel.xml (with props) Modified: ofbiz/trunk/specialpurpose/oagis/ofbiz-component.xml Added: ofbiz/trunk/specialpurpose/oagis/data/OagisTypeData.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/data/OagisTypeData.xml?view=auto&rev=548631 ============================================================================== --- ofbiz/trunk/specialpurpose/oagis/data/OagisTypeData.xml (added) +++ ofbiz/trunk/specialpurpose/oagis/data/OagisTypeData.xml Tue Jun 19 00:38:26 2007 @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<entity-engine-xml> + <StatusType description="OAGIS Message Processing Status" statusTypeId="OAGIS_MP_STATUS" hasTable="N" parentTypeId=""/> + <StatusItem description="Received" sequenceId="01" statusCode="RECEIVED" statusId="OAGMP_RECEIVED" statusTypeId="OAGIS_MP_STATUS"/> + <StatusItem description="Processed - Success" sequenceId="02" statusCode="PROC_SUCCESS" statusId="OAGMP_PROC_SUCCESS" statusTypeId="OAGIS_MP_STATUS"/> + <StatusItem description="Processed - Error" sequenceId="03" statusCode="PROC_ERROR" statusId="OAGMP_PROC_ERROR" statusTypeId="OAGIS_MP_STATUS"/> + <StatusValidChange condition="" statusId="OAGMP_RECEIVED" statusIdTo="OAGMP_PROC_SUCCESS" transitionName="Processing Succeeded"/> + <StatusValidChange condition="" statusId="OAGMP_RECEIVED" statusIdTo="OAGMP_PROC_ERROR" transitionName="Processing Errored"/> +</entity-engine-xml> Propchange: ofbiz/trunk/specialpurpose/oagis/data/OagisTypeData.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/oagis/data/OagisTypeData.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/oagis/data/OagisTypeData.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/oagis/entitydef/entitygroup.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/entitydef/entitygroup.xml?view=auto&rev=548631 ============================================================================== --- ofbiz/trunk/specialpurpose/oagis/entitydef/entitygroup.xml (added) +++ ofbiz/trunk/specialpurpose/oagis/entitydef/entitygroup.xml Tue Jun 19 00:38:26 2007 @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<entitygroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/entitygroup.xsd"> + + <!-- ========================================================= --> + <!-- org.ofbiz.specialpurpose.oagis --> + <!-- ========================================================= --> + + <entity-group group="org.ofbiz" entity="OagisMessageInfo" /> + <entity-group group="org.ofbiz" entity="OagisMessageErrorInfo" /> +</entitygroup> + Propchange: ofbiz/trunk/specialpurpose/oagis/entitydef/entitygroup.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/oagis/entitydef/entitygroup.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/oagis/entitydef/entitygroup.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/oagis/entitydef/entitymodel.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/entitydef/entitymodel.xml?view=auto&rev=548631 ============================================================================== --- ofbiz/trunk/specialpurpose/oagis/entitydef/entitymodel.xml (added) +++ ofbiz/trunk/specialpurpose/oagis/entitydef/entitymodel.xml Tue Jun 19 00:38:26 2007 @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<entitymodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/entitymodel.xsd"> + <!-- ========================================================= --> + <!-- ======================== Defaults ======================= --> + <!-- ========================================================= --> + <title>Entity of an Open For Business Project Component</title> + <description>None</description> + <copyright>Copyright 2001-2007 The Apache Software Foundation</copyright> + <author>None</author> + <version>1.0</version> + + <!-- ========================================================= --> + <!-- ======================== Data Model ===================== --> + <!-- The modules in this file are as follows: --> + <!-- - org.ofbiz.specialpurpose.oagis --> + <!-- ========================================================= --> + + + <!-- ========================================================= --> + <!-- org.ofbiz.specialpurpose.oagis --> + <!-- ========================================================= --> + + <entity entity-name="OagisMessageInfo" package-name="org.ofbiz.specialpurpose.oagis" title="OAGIS Message Info Entity"> + <field name="logicalId" type="very-short"><!-- CNTROLAREA -> SENDER -> LOGICALID; max 10 chars --></field> + <field name="component" type="very-short"><!-- CNTROLAREA -> SENDER -> COMPONENT; max 10 chars --></field> + <field name="task" type="very-short"><!-- CNTROLAREA -> SENDER -> TASK; max 10 chars --></field> + <field name="referenceId" type="id-long-ne"> + <!-- CNTROLAREA -> SENDER -> REFERENCEID; max 40 chars in spec; for messages sent from OFBiz this will be a + sequenced ID and be unique on its own; for messages from other systems this may only be unique relative + to the logicalId, component, and task as defined in the OAGIS specifications --> + </field> + <field name="authId" type="id-long"><!-- CNTROLAREA -> SENDER -> AUTHID; max 50 chars in spec --></field> + <field name="outgoingMessage" type="indicator"><!-- Y for outgoing, N for incoming --></field> + <field name="sentDate" type="date-time"><!-- should be the same as the CNTROLAREA -> DATETIMEISO (DATETIMEANY) element --></field> + <field name="receivedDate" type="date-time"><!-- will generally only be set for outgoing messages --></field> + <field name="bsrVerb" type="short-varchar"></field> + <field name="bsrNoun" type="short-varchar"></field> + <field name="bsrRevision" type="short-varchar"></field> + <field name="processingStatusId" type="id"></field> + <field name="orderId" type="id"></field> + <field name="returnId" type="id"></field> + <field name="shipmentId" type="id"></field> + <prim-key field="logicalId"/> + <prim-key field="component"/> + <prim-key field="task"/> + <prim-key field="referenceId"/> + <relation type="one" fk-name="OAGIS_MI_PROCSTS" title="Processing" rel-entity-name="StatusItem"> + <key-map field-name="processingStatusId" rel-field-name="statusId"/> + </relation> + <relation type="one" fk-name="OAGIS_MI_ORDHDR" rel-entity-name="OrderHeader"> + <key-map field-name="orderId"/> + </relation> + <relation type="one" fk-name="OAGIS_MI_RETURN" rel-entity-name="ReturnHeader"> + <key-map field-name="returnId"/> + </relation> + <relation type="one" fk-name="OAGIS_MI_SHPMNT" rel-entity-name="Shipment"> + <key-map field-name="shipmentId"/> + </relation> + </entity> + <entity entity-name="OagisMessageErrorInfo" package-name="org.ofbiz.specialpurpose.oagis" title="OAGIS Message Error Info Entity"> + <field name="logicalId" type="very-short"></field> + <field name="component" type="very-short"></field> + <field name="task" type="very-short"></field> + <field name="referenceId" type="id-long-ne"></field> + <field name="errorSeqId" type="id"><!-- this is a secondary sequenced ID relative to the primary key of OagisMessageInfo --></field> + <field name="reasonCode" type="short-varchar"></field> + <field name="description" type="long-varchar"></field> + <prim-key field="logicalId"/> + <prim-key field="component"/> + <prim-key field="task"/> + <prim-key field="referenceId"/> + <prim-key field="errorSeqId"/> + <relation type="one" fk-name="OAGIS_MIER_MI" rel-entity-name="OagisMessageInfo"> + <key-map field-name="logicalId"/> + <key-map field-name="component"/> + <key-map field-name="task"/> + <key-map field-name="referenceId"/> + </relation> + </entity> +</entitymodel> Propchange: ofbiz/trunk/specialpurpose/oagis/entitydef/entitymodel.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/oagis/entitydef/entitymodel.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/oagis/entitydef/entitymodel.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: ofbiz/trunk/specialpurpose/oagis/ofbiz-component.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/ofbiz-component.xml?view=diff&rev=548631&r1=548630&r2=548631 ============================================================================== --- ofbiz/trunk/specialpurpose/oagis/ofbiz-component.xml (original) +++ ofbiz/trunk/specialpurpose/oagis/ofbiz-component.xml Tue Jun 19 00:38:26 2007 @@ -26,6 +26,10 @@ <classpath type="dir" location="config"/> <classpath type="jar" location="build/lib/*"/> + <entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel.xml"/> + <entity-resource type="group" reader-name="main" loader="main" location="entitydef/entitygroup.xml"/> + <entity-resource type="data" reader-name="seed" loader="main" location="data/OagisTypeData.xml"/> + <webapp name="oagis" title="Oagis" server="default-server" |
Free forum by Nabble | Edit this page |