...
Step - 4 : Show labels in screens above the form like "New Person --- Simple Event" and "New Person --- Java Event" so that it will be easy to identify the purpose of that form.
...
Step - 2 : Now you have to create a file by name "eecas.xml" in "entitydef" directory, which will be in your component directory "practice". Eeca definition will come here. (Take reference from eecas.xml of "accounting" component). This will be :
<!-- To create party role whenever a party is created -->
<eca entity="Party" operation="create" event="return">
<condition field-name="partyId" operator="is-not-empty"/>
<action service="createPartyRoleCustomer" mode="sync"/>
</eca>
...
Create a group service by name "partyGroup" like :
<!-- Group service - ->
<service name="partyGroup" engine="group" auth="true">
<description>Creates a party, person and party role Client</description>
<group>
<invoke name="createPracticePerson" result-to-context="true"/>
<invoke name="createPartyRoleClient"/>
</group>
</service>
...
Step - 3 : For loading the defintion you need to do an entry in your ofbiz-component.xml file like:
Code Block |
---|
<entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel.xml"/> |
That implies that when ever you do a change you need to restart the server to have those changes in effect.
...
Step - 1 : For extending an entity use
Code Block |
---|
<extend-entity entity-name="">
<field name="" type=""/>
</extend-entity>
|
...