[OFBiz] Users - Calling services via simple-methods

Ashish Hareet Ashish.Hareet at cpbinc.com
Wed Jun 1 13:50:26 EDT 2005


Alt-Tab...Uh-Oh Alt-S

Anyways, my question again

To simplify a customer creation process for our app, I just take the required fields & generate
the rest of the required info/data like adding roles, via simple-methods.

Today I've been trying to add a billing account associated with the customer at the creation time.
I need to associate the account in the "BILL_TO_CUSTOMER" role & put a credit limit on it.

The problems I'm encountering are as follows

1. Calling the "createBillingAccount" service doesn't create the necessary role. I noticed
that the role is created via an ECA triggered by this service. Is it possible that the ECA is 
not being called & hence the role is not being created. Although, the minilang guide doesn't
say anything about this - http://www.ofbiz.org/docs/minilang.html#Call. I get around by calling
the "createBillingAccountRole" service after the billing account is created.

2. When the "createBillingAccount" service is called, the account is created but it does not create 
the account limit as I set it in the map. I also change the account limit var to a Double using 
the "convert" tag as required by the service. I can't really see where I'm going wrong. I also tried
using the "updateBillingAccount" service, but it also has the same effect.

Any suggestions...

Appreciate your help
Ashish Hareet


More information about the Users mailing list