ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deb.pa...@tcs.com
Subject Re: Send Request and Response to an existing event
Date Wed, 09 May 2012 03:39:41 GMT

Enlisted are some options below. Perhaps, I am not able to get the 
bigscene, but here is my take. (Could you elaborate the scenario?)
Upon triggering the call, I hit the controller and there I can cascade the 
request based on the response.

Request cascaded over from one event to another. (Events may be 
simple/minilang or java or ajax)
Within controller.xml - Single pass
        <request-map uri="createcustomer">
                <security https="true" auth="true" />
                <event type="simple"
                        invoke="createCustomer" />
                <response name="success" type="view" value="main" />
                <response name="error" type="view" value="newcustomer" />

Within controller.xml - Multiple pass
The response statements can be cascaded to another request map.

        <request-map uri="processCustomerSettings">
        <security https="true" auth="false"/>
        <event type="simple" path="component://..../XYZ.xml" invoke=
        <response name="success" type="request" value=
        <response name="error" type="view" value="OnePageCheckout"/>
        <request-map uri="createUpdateShippingAddressCheckout">
                <security https="true" auth="false" />
                <event type="simple"
                        invoke="createUpdateCustomerAndShippingAddress" />
                <response name="success" type="request" value=
"setShippingOption" />
                <response name="error" type="view" value="OnePageCheckout" 

Passing request method from within simple method to another.
                java.util.ArrayList userMessagePices = new 
                String userFname = (String) 
            XYZ.SmsServicesRegistration.smsServices(request, response, 
userMessagePices, phoneNo.toString());


dev@ofbiz.apache.org, user@ofbiz.apache.org
05/09/2012 04:06 AM
Send Request and Response to an existing event

I want to pass the request and response to a simple method ( 
createCustomer) of an existing event (CustomerEvent.xml). 

I am calling this event as a part of a service which is defined in my 
services.xml file by using the "dispatcher.runsync " .

Could someone please let me know if this is doable and if so then how?

Software Engineer
Object Edge Inc.

Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message