Hello,
I am unable to pass parameters to service when invoked through eeca. I am
taking an eeca example from financials module since it uses a java service.
I would appreciate any suggestions. Thanks in advance.
Regards,
Vinay Agarwal
Reference EECA from financials module: (I assume it works - didn't test
myself)
----------------------------------------------------
EECA declaration -
<eca entity="Payment" operation="create-store" event="return">
<condition field-name="statusId" operator="equals"
value="PMNT_RECEIVED"/>
<action service="postPaymentToGl" mode="sync"/>
</eca>
Service declaration -
<service name="postPaymentToGl" engine="java"
location="com.opensourcestrategies.financials.ledger.LedgerServices"
invoke="postPaymentToGl" default-entity-name="Payment">
<description>
Posts a payment to General Ledger.
</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<attribute name="acctgTransId" type="String" mode="OUT"
optional="true"/>
</service>
My EECA - gets error The following required parameter is missing:
[updateProductsQual.partyId]
----------------
EECA declaration-
<eca entity="PartyQual" operation="create-store" event="return">
<action service="updateProductsQual" mode="sync" />
</eca>
Service declaration -
<service name="updateProductsQual" auth="true" engine="java"
location="com.grayzilla.GrayzillaServices"
invoke="updateProductsQual" default-entity-name="PartyQual">
<description>Updates product qualifications</description>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
</service>
_________________________________________________________________
Now you can see troubleĀ
before he arrives
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_protection_0507