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 |
Hmm,
It's not possible to pass attribute on mode "IN" for an eeca service. Because the service take on entry only the GenericValue transmit by the delegator. finally I believe. Nicolas Vinay Agarwal a écrit : > 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 > > > -- Nicolas MALIN Consultant Tél : 06.17.66.40.06 Site projet : http://www.neogia.org/ ------- Société LibrenBerry Tél : 02.48.02.56.12 Site : http://www.librenberry.net/ |
Free forum by Nabble | Edit this page |