moqui / mantle-udm Goto Github PK
View Code? Open in Web Editor NEWMantle Universal Data Model
Home Page: http://www.moqui.org/mantle.html
License: Other
Mantle Universal Data Model
Home Page: http://www.moqui.org/mantle.html
License: Other
Hi David,
Is there a method of editing entities once they have been created by adding in an additional file at runtime to operate once the initial mantle-udm has been created.
If an entity has already been created for example ProductPrice and we want to add additional columns and drop foreign key relationships how could we do this?
Kind Regards,
Shah
Was given the answer
https://searchcode.com/codesearch/view/2634204/
Hi David,
Currently, when I want to setup the manufacturer info for a product, I think the ProductParty entity is for it.
In the receiving asset service, the default mfgPartyId of an asset is from the shipment.fromPartyId.
In real world, many factories can produce the product with the same product name, and many suppliers will supply the product. like in medicine industry. So in case we need to setup the manufacturer info, I think there is a mfgPartyId field in product entity would be much better.
My database is derby, when I run "./gradlew run", its show error:
SQL Exception while executing the following SQL [ALTER TABLE PRODUCT_STORE ADD CONSTRAINT ProductStoreContentDataDocumnt FOREIGN KEY (CONTENT_DATA_DOCUMENT_ID) REFERENCES DATA_DOCUMENT (DATA_DOCUMENT_ID)]: java.sql.SQLException: Constraint 'PRODUCTSTORECONTENTDATADOCUMNT' is invalid: there is no unique or primary key constraint on table '"APP"."DATA_DOCUMENT"' that matches the number and types of the columns in the foreign key.
Then i am compare the field CONTENT_DATA_DOCUMENT_ID and DATA_DOCUMENT_ID:
field CONTENT_DATA_DOCUMENT_ID is type='text-medium' and the length is 255
then i see DATA_DOCUMENT_ID, but the length is only 40.
With latest code, I got the error below when run "gradle load"
_18:13:32.170 INFO RequireNewTx o.moqui.i.e.EntityDataLoaderImpl Loading entity data from [file:D:/Projects/Moqui/moqui-framework/runtime/component/mantle-udm/entity/AccountingAccountEntities.xml]
18:13:32.316 ERROR RequireNewTx o.moqui.i.s.ServiceCallSyncImpl Error running service [store#mantle.account.financial.FinancialAccountType]
org.moqui.entity.EntityException: Error in create of [[mantle.account.financial.FinancialAccountType: [lastUpdatedStamp:2016-06-20 18:13:32.17, description:Gift Certificate, replenishTypeEnumId:FarpManual, finAccountTypeId:GiftCertificate, isRefundable:N]]]
at org.moqui.impl.entity.EntityValueImpl.createExtended(EntityValueImpl.groovy:101) ~[moqui-2.0.0.war:2.0.0]
at org.moqui.impl.entity.EntityValueBase.basicCreate(EntityValueBase.groovy:1182) ~[moqui-2.0.0.war:2.0.0]
at org.moqui.impl.entity.EntityValueBase.basicCreate(EntityValueBase.groovy:1177) ~[moqui-2.0.0.war:2.0.0]
at org.moqui.impl.entity.EntityValueBase.create(EntityValueBase.groovy:1148) ~[moqui-2.0.0.war:2.0.0]
at org.moqui.impl.entity.EntityValueBase.createOrUpdate(EntityValueBase.groovy:556) ~[moqui-2.0.0.war:2.0.0]
at org.moqui.impl.service.runner.EntityAutoServiceRunner.storeRecursive(EntityAutoServiceRunner.groovy:401) ~[moqui-2.0.0.war:2.0.0]
at org.moqui.impl.service.runner.EntityAutoServiceRunner.storeEntity(EntityAutoServiceRunner.groovy:357) ~[moqui-2.0.0.war:2.0.0]
at org.moqui.impl.service.ServiceCallSyncImpl.runImplicitEntityAuto(ServiceCallSyncImpl.groovy:507) ~[moqui-2.0.0.war:2.0.0]
at org.moqui.impl.service.ServiceCallSyncImpl.callSingle(ServiceCallSyncImpl.groovy:256) ~[moqui-2.0.0.war:2.0.0]
at org.moqui.impl.service.ServiceCallSyncImpl.call(ServiceCallSyncImpl.groovy:167) ~[moqui-2.0.0.war:2.0.0]
at org.moqui.impl.entity.EntityDataLoaderImpl$LoadValueHandler.handlePlainMap(EntityDataLoaderImpl.groovy:384) ~[moqui-2.0.0.war:2.0.0]
at org.moqui.impl.entity.EntityDataLoaderImpl$EntityXmlHandler.endElement(EntityDataLoaderImpl.groovy:638) ~[moqui-2.0.0.war:2.0.0]
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609) ~[?:1.8.0_40]
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Abst ractXMLDocumentParser.java:183) ~[?:1.8.0_40]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343) ~[?:1.8.0_40]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2786) ~[?:1.8.0_40]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) ~[?:1.8.0_40]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) ~[?:1.8.0_40]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) ~[?:1.8.0_40]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) ~[?:1.8.0_40]
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) ~[?:1.8.0_40]
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) ~[?:1.8.0_40]
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649) ~[?:1.8.0_40]
at org.moqui.impl.entity.EntityDataLoaderImpl.loadSingleFile(EntityDataLoaderImpl.groovy:308) ~[moqui-2.0.0.war:2.0.0]
at org.moqui.impl.entity.EntityDataLoaderImpl$_internalRun_closure1.doCall(EntityDataLoaderImpl.groovy:283) ~[moqui-2.0.0.war:2.0.0]
at org.moqui.impl.context.TransactionFacadeImpl$runRequireNew_closure1.doCall(TransactionFacadeImpl.groovy:194) ~[moqui-2.0.0.war:2.0.0]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_40]
Caused by: org.moqui.entity.EntityException: Error in update for:INSERT INTO public.FINANCIAL_ACCOUNT_TYPE (FIN_ACCOUNT_TYPE_ID, DESCRIPTION, IS_REFUNDABLE, REPLENISH_TYPE_ENUM_ID, LAST_UPDATED_STAMP) VALUES (?, ?, ?, ?, ?)
at org.moqui.impl.entity.EntityQueryBuilder.executeUpdate(EntityQueryBuilder.groovy:112) ~[moqui-2.0.0.war:2.0.0]
at org.moqui.impl.entity.EntityValueImpl.createExtended(EntityValueImpl.groovy:98) ~[moqu i-2.0.0.war:2.0.0]
... 26 more
Caused by: org.postgresql.util.PSQLException: ERROR: insert or update on table "financial_account_type" violates foreign key constraint "financilccnttypfrplnshtypnmrtn"
Detail:Key(replenish_type_enum_id)=(FarpManual)is not present in table "enumeration".
Currently the PartyQualification defined as
<entity entity-name="PartyQualification" package="mantle.humanres.ability" use="nontransactional">
<field name="partyId" type="id" is-pk="true"/>
<field name="qualificationTypeEnumId" type="id" is-pk="true"/>
<field name="fromDate" type="date-time" is-pk="true"/>
<field name="thruDate" type="date-time"/>
<field name="description" type="text-medium"/>
...
</entity>
Would it be better to define it in the pattern like ContactMech as abstract entity which has PostalAddress, TelecomNumber extends it. In this pattern, for the QualificationTypeEnumId
such as EXPERIENCE
, DEGREE
, there may be concrete entity to extend PartyQualification and fill with more details.
e.g. for qualificationTypeEnumId DEGREE
, a Education
entity may be defined to maintain school, major, degree information, start date, end date, for EXPERIENCE
, a WorkExperience
entity may be defined to maintain employer info, position, department, start date, end date, job detail, responsibility etc.
And it seems that fromDate
and thruDate
in PartyQualification should not be used to represent duration (start, end date) of acquiring the qualification since they are used in the pattern for telling it is expired or not.
I think the primary key of mantle.humanres.employment.EmploymentLeave should be partyId rather than partyRelationshipId. I am not sure if I am correct. Same problem in Employment, EmploymentBenefit, EmploymentPayHistory, EmploymentPayDetail and EmploymentSalary
Hi David,
I can see you introduce the shippingInstructions in Party entity for customer, and use it as follows
<!-- if customer Party.shippingInstructions populate if none specified --> <if condition="!shippingInstructions && customerPartyId"> <entity-find-one entity-name="mantle.party.Party" value-field="customerParty"> <field-map field-name="partyId" from="customerPartyId"/></entity-find-one> <set field="shippingInstructions" from="customerParty?.shippingInstructions"/> </if>
As Party is a highly abstract entity, would it better to introduce an entity call 'Customer' with customer specific fields in it?(like Employee in HR mantle.humanres.employment.Employee) as for storing other parties, we might be don't need this field.
I am getting the following error when trying to build a system with demo data and mysql datasource, an error that does not occur if you use the h2 database?
git clone https://github.com/moqui/moqui-framework.git moqui-test
cd moqui-test
./gradlew getRuntime
./gradlew getComponent -Pcomponent=example
./gradlew getComponent -Pcomponent=mantle-udm
./gradlew getComponent -Pcomponent=mantle-usl
cp ../moqui/mysql-connector-java-5.1.38-bin.jar runtime/lib
java -Dmoqui.conf=conf/MoquiProductionConf.xml -jar moqui-1.6.2.war -load -types=seed,demo
Loading entity data from [file:/Users/samhamilton/Sources/ts-moqui-docker/moqui-test/runtime/component/mantle-udm/data/ZbaOrganizationDemoData.xml]
--- 11:39:46.413 [ RequireNewTx] WARN moqui.impl.context.TransactionFacadeImpl
Transaction set rollback only. The rollback was originally caused by: Error running service [mantle.ledger.LedgerServices.init#PartyAccountingConfiguration] (message): Could not find PartyAcctgPreference for source party [DefaultSettings]
--- 11:39:46.414 [ RequireNewTx] WARN moqui.impl.context.TransactionFacadeImpl
Transaction set rollback only for [Error running service [mantle.ledger.LedgerServices.init#PartyAccountingConfiguration] (message): Could not find PartyAcctgPreference for source party [DefaultSettings]
]. Here is the current location:
org.moqui.BaseException: Set rollback only location
at org.moqui.impl.context.TransactionFacadeImpl.setRollbackOnly(TransactionFacadeImpl.groovy:432) ~[moqui-1.6.2.war:1.6.2]
at org.moqui.impl.context.TransactionFacadeImpl.rollback(TransactionFacadeImpl.groovy:394) ~[moqui-1.6.2.war:1.6.2]
at org.moqui.impl.service.ServiceCallSyncImpl.callSingle(ServiceCallSyncImpl.groovy:324) ~[moqui-1.6.2.war:1.6.2]
at org.moqui.impl.service.ServiceCallSyncImpl.call(ServiceCallSyncImpl.groovy:163) ~[moqui-1.6.2.war:1.6.2]
at org.moqui.impl.entity.EntityDataLoaderImpl$LoadValueHandler.handleService(EntityDataLoaderImpl.groovy:402) ~[moqui-1.6.2.war:1.6.2]
at org.moqui.impl.entity.EntityDataLoaderImpl$EntityXmlHandler.endElement(EntityDataLoaderImpl.groovy:659) ~[moqui-1.6.2.war:1.6.2]
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.moqui.impl.entity.EntityDataLoaderImpl.loadSingleFile(EntityDataLoaderImpl.groovy:317) ~[moqui-1.6.2.war:1.6.2]
at org.moqui.impl.entity.EntityDataLoaderImpl$_internalRun_closure1.doCall(EntityDataLoaderImpl.groovy:292) ~[moqui-1.6.2.war:1.6.2]
at org.moqui.impl.context.TransactionFacadeImpl$_runRequireNew_closure1.doCall(TransactionFacadeImpl.groovy:194) ~[moqui-1.6.2.war:1.6.2]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_71]
--- 11:39:46.446 [ RequireNewTx] INFO g.moqui.impl.entity.EntityDataLoaderImpl
Called service [mantle.ledger.LedgerServices.init#PartyAccountingConfiguration] in data load, results: [:]
--- 11:39:46.447 [ RequireNewTx] WARN moqui.impl.context.TransactionFacadeImpl
Transaction rollback. The rollback was originally caused by: Error loading entity data
org.xml.sax.SAXException: Error running service [mantle.ledger.LedgerServices.init#PartyAccountingConfiguration] (line 138): org.moqui.BaseException: Error handling data load service call: Could not find PartyAcctgPreference for source party [DefaultSettings]
at org.moqui.impl.entity.EntityDataLoaderImpl$EntityXmlHandler.endElement(EntityDataLoaderImpl.groovy:663) ~[moqui-1.6.2.war:1.6.2]
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.moqui.impl.entity.EntityDataLoaderImpl.loadSingleFile(EntityDataLoaderImpl.groovy:317) [moqui-1.6.2.war:1.6.2]
at org.moqui.impl.entity.EntityDataLoaderImpl$_internalRun_closure1.doCall(EntityDataLoaderImpl.groovy:292) [moqui-1.6.2.war:1.6.2]
at org.moqui.impl.entity.EntityDataLoaderImpl$_internalRun_closure1.call(EntityDataLoaderImpl.groovy) [moqui-1.6.2.war:1.6.2]
at org.moqui.impl.context.TransactionFacadeImpl$_runRequireNew_closure1.doCall(TransactionFacadeImpl.groovy:194) [moqui-1.6.2.war:1.6.2]
at org.moqui.impl.context.TransactionFacadeImpl$_runRequireNew_closure1.call(TransactionFacadeImpl.groovy) [moqui-1.6.2.war:1.6.2]
at groovy.lang.Closure.run(Closure.java:507) [moqui-1.6.2.war:2.4.5]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_71]
Caused by: org.moqui.BaseException: Error handling data load service call: Could not find PartyAcctgPreference for source party [DefaultSettings]
at org.moqui.impl.entity.EntityDataLoaderImpl$LoadValueHandler.handleService(EntityDataLoaderImpl.groovy:407) ~[moqui-1.6.2.war:1.6.2]
at org.moqui.impl.entity.EntityDataLoaderImpl$EntityXmlHandler.endElement(EntityDataLoaderImpl.groovy:659) ~[moqui-1.6.2.war:1.6.2]
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[moqui-1.6.2.war:?]
at org.moqui.impl.entity.EntityDataLoaderImpl.loadSingleFile(EntityDataLoaderImpl.groovy:317) ~[moqui-1.6.2.war:1.6.2]
at org.moqui.impl.entity.EntityDataLoaderImpl$_internalRun_closure1.doCall(EntityDataLoaderImpl.groovy:292) ~[moqui-1.6.2.war:1.6.2]
at org.moqui.impl.context.TransactionFacadeImpl$_runRequireNew_closure1.doCall(TransactionFacadeImpl.groovy:194) ~[moqui-1.6.2.war:1.6.2]
... 1 more
--- 11:39:46.463 [ RequireNewTx] WARN moqui.impl.context.TransactionFacadeImpl
Transaction rollback for [Error loading entity data]. Here is the current location:
org.moqui.BaseException: Rollback location
at org.moqui.impl.context.TransactionFacadeImpl.rollback(TransactionFacadeImpl.groovy:409) ~[moqui-1.6.2.war:1.6.2]
at org.moqui.impl.context.TransactionFacadeImpl.rollback(TransactionFacadeImpl.groovy:392) ~[moqui-1.6.2.war:1.6.2]
at org.moqui.impl.entity.EntityDataLoaderImpl.loadSingleFile(EntityDataLoaderImpl.groovy:336) ~[moqui-1.6.2.war:1.6.2]
at org.moqui.impl.entity.EntityDataLoaderImpl$_internalRun_closure1.doCall(EntityDataLoaderImpl.groovy:292) ~[moqui-1.6.2.war:1.6.2]
at org.moqui.impl.context.TransactionFacadeImpl$_runRequireNew_closure1.doCall(TransactionFacadeImpl.groovy:194) ~[moqui-1.6.2.war:1.6.2]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_71]
Error loading data: java.lang.IllegalArgumentException: Error loading entity data file [file:/Users/samhamilton/Sources/ts-moqui-docker/moqui-test/runtime/component/mantle-udm/data/ZbaOrganizationDemoData.xml]
java.lang.IllegalArgumentException: Error loading entity data file [file:/Users/samhamilton/Sources/ts-moqui-docker/moqui-test/runtime/component/mantle-udm/data/ZbaOrganizationDemoData.xml]
at org.moqui.impl.entity.EntityDataLoaderImpl.loadSingleFile(EntityDataLoaderImpl.groovy:337)
at org.moqui.impl.entity.EntityDataLoaderImpl$_internalRun_closure1.doCall(EntityDataLoaderImpl.groovy:292)
at org.moqui.impl.entity.EntityDataLoaderImpl$_internalRun_closure1.call(EntityDataLoaderImpl.groovy)
at org.moqui.impl.context.TransactionFacadeImpl$_runRequireNew_closure1.doCall(TransactionFacadeImpl.groovy:194)
at org.moqui.impl.context.TransactionFacadeImpl$_runRequireNew_closure1.call(TransactionFacadeImpl.groovy)
at groovy.lang.Closure.run(Closure.java:507)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.xml.sax.SAXException: Error running service [mantle.ledger.LedgerServices.init#PartyAccountingConfiguration] (line 138): org.moqui.BaseException: Error handling data load service call: Could not find PartyAcctgPreference for source party [DefaultSettings]
org.moqui.BaseException: Error handling data load service call: Could not find PartyAcctgPreference for source party [DefaultSettings]
at org.moqui.impl.entity.EntityDataLoaderImpl$EntityXmlHandler.endElement(EntityDataLoaderImpl.groovy:663)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.moqui.impl.entity.EntityDataLoaderImpl.loadSingleFile(EntityDataLoaderImpl.groovy:317)
... 6 more
Caused by: org.moqui.BaseException: Error handling data load service call: Could not find PartyAcctgPreference for source party [DefaultSettings]
at org.moqui.impl.entity.EntityDataLoaderImpl$LoadValueHandler.handleService(EntityDataLoaderImpl.groovy:407)
at org.moqui.impl.entity.EntityDataLoaderImpl$EntityXmlHandler.endElement(EntityDataLoaderImpl.groovy:659)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.moqui.impl.entity.EntityDataLoaderImpl.loadSingleFile(EntityDataLoaderImpl.groovy:317)
at org.moqui.impl.entity.EntityDataLoaderImpl$_internalRun_closure1.doCall(EntityDataLoaderImpl.groovy:292)
at org.moqui.impl.context.TransactionFacadeImpl$_runRequireNew_closure1.doCall(TransactionFacadeImpl.groovy:194)
... 1 more
========== Shutting down Moqui Executable (closing jars, etc) ==========
<?xml version="1.0" encoding="UTF-8" ?>
<!-- No copyright or license for configuration file, details here are not considered a creative work. -->
<moqui-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/moqui-conf-1.6.xsd">
<tools enable-elasticsearch="true" enable-camel="true"/>
<server-stats stats-skip-condition="pathInfo?.startsWith('/rpc') || pathInfo?.startsWith('/rest') || pathInfo?.startsWith('/status')">
<artifact-stats type="screen" persist-bin="true" persist-hit="true"/>
<artifact-stats type="screen-content" persist-bin="true" persist-hit="true"/>
<artifact-stats type="transition" persist-bin="true" persist-hit="true"/>
<artifact-stats type="service" persist-bin="true" persist-hit="false"/>
<artifact-stats type="entity" persist-bin="false"/>
</server-stats>
<webapp-list>
<!-- NOTE: when you set https-enabled="true" make sure to set the http-port and https-port attributes -->
<webapp name="webroot" http-port="" http-host=""
https-port="" https-host="" https-enabled="true"
require-session-token="true">
<root-screen host=".*" location="component://webroot/screen/webroot.xml"/>
</webapp>
</webapp-list>
<screen-facade boundary-comments="false"/>
<entity-facade crypt-pass="MoquiDefaultPassword:CHANGEME">
<!--<datasource group-name="tenantcommon" database-conf-name="postgres" schema-name="public" startup-add-missing="true" runtime-add-missing="true">
<inline-jdbc pool-minsize="1" pool-maxsize="2">
<xa-properties user="postgres" password=""
serverName="192.168.99.100" portNumber="5432" databaseName="tenantcommon"/>
</inline-jdbc>
</datasource>
<datasource group-name="transactional" database-conf-name="postgres" schema-name="public" startup-add-missing="true" runtime-add-missing="true">
<inline-jdbc pool-minsize="1" pool-maxsize="5">
<xa-properties user="postgres" password=""
serverName="192.168.99.100" portNumber="5432" databaseName="moqui"/>
</inline-jdbc>
</datasource>-->
<datasource group-name="tenantcommon" database-conf-name="mysql" schema-name="">
<inline-jdbc pool-minsize="5" pool-maxsize="50">
<xa-properties user="root" password="moqui" pinGlobalTxToPhysicalConnection="true"
serverName="192.168.99.100" port="3306" databaseName="tenantcommon" autoReconnectForPools="true"
useUnicode="true" encoding="UTF-8"/>
</inline-jdbc>
</datasource>
<datasource group-name="transactional" database-conf-name="mysql" schema-name="">
<inline-jdbc pool-minsize="5" pool-maxsize="50">
<xa-properties user="root" password="moqui" pinGlobalTxToPhysicalConnection="true"
serverName="192.168.99.100" port="3306" databaseName="moqui" autoReconnectForPools="true"
useUnicode="true" encoding="UTF-8"/>
</inline-jdbc>
</datasource>
</entity-facade>
<repository-list>
<!-- <repository name="main" location="http://localhost:8081/rmi" type="rmi" workspace="default"
username="admin" password="admin"/> -->
</repository-list>
</moqui-conf>
Some duplicate enumIds in seed data.
IctReceipt
PctIndustry
TdtpUnitsProduction
SPC_NNW
Should uom be added to ProductAssoc to support BOM quantities?
For example, how should 1 cup of flour for a bread recipe be specified?
A purchase order of 1 5lb bag of flour will be received as an inventory asset with a quantity of 1 which can be used by a production run to turn the flour into bread but ProductAssoc only has a quantity field which means 1 cup would have to be specified as a ratio of the full 5lb bag (1cup / 5lb = 0.06lbs if 1lb = 3 cups).
Specifying BOM quantities this way doesn't support the original recipe uom (cups) to be determined. Ofbiz also lacks a uom field for ProductAssoc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.