Skip to content

Commit

Permalink
Merge pull request #5 from hotwax/refactor/service-and-fact
Browse files Browse the repository at this point in the history
Refactor the Service and Entity definations
  • Loading branch information
patelanil authored Aug 22, 2024
2 parents 09d965a + 9c408d9 commit b383878
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions entity/FactEntities.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ under the License.

<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/entity-definition-3.xsd">
<entity entity-name="OrderItemFulfillmentFact" package="co.hotwax.bi.fact" group="analytical">
<field name="orderId" type="id" is-pk="true"/>
<field name="orderItemSeqId" type="id" is-pk="true"/>
<field name="orderItemFulfillmentFactId" type="id" is-pk="true"/>
<field name="orderId" type="id" />
<field name="orderItemSeqId" type="id" />
<field name="externalId" type="text-short"/>
<field name="orderName" type="text-short"/>
<field name="orderTypeId" type="id"/>
Expand Down Expand Up @@ -81,4 +82,4 @@ under the License.
<key-map field-name="itemCancelledDateDimId" related="dateValue"/>
</relationship>
</entity>
</entities>
</entities>
4 changes: 2 additions & 2 deletions service/co/hotwax/bi/DimensionServices.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/service-definition-3.xsd">
<!-- <service verb="load" type="script" noun="DateDimension" location="component://bi/src/loadDateDimension.groovy">-->
<service verb="load" noun="DateDayDimension">
<service verb="load" noun="DateDayDimension" transaction-timeout="300">
<in-parameters>
<parameter name="fromDate" type="Timestamp" format="yyyy-MM-dd" required="true">
<description>From date to generate the date dimension</description>
Expand Down Expand Up @@ -65,4 +65,4 @@
<return type="success" message="Date dimension entity loading is completed fromDate: ${fromDate}, thruDate: ${thruDate}" />
</actions>
</service>
</services>
</services>

0 comments on commit b383878

Please sign in to comment.