Author: hansbak
Date: Tue May 19 08:00:23 2009
New Revision: 776224
URL:
http://svn.apache.org/viewvc?rev=776224&view=revLog:
set the status of the all commevent participants to complete when a customer request is created from it
Modified:
ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectSimpleEvents.xml
Modified: ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectSimpleEvents.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectSimpleEvents.xml?rev=776224&r1=776223&r2=776224&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectSimpleEvents.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectSimpleEvents.xml Tue May 19 08:00:23 2009
@@ -26,6 +26,14 @@
<call-service service-name="createCustRequestFromCommEvent" in-map-name="eventCreateCust">
<result-to-field result-name="custRequestId"/>
</call-service>
+ <!-- set the status of all participants to complete so not somebody else will also create a customer request -->
+ <entity-and entity-name="CommunicationEventRole" list="commRoles">
+ <field-map field-name="communicationEventId" from-field="parameters.communicationEventId"/>
+ </entity-and>
+ <iterate entry="commRole" list="commRoles">
+ <set field="commRole.statusId" value="COM_ROLE_COMPLETED"/>
+ <store-value value-field="commRole"/>
+ </iterate>
<else>
<set-service-fields service-name="createCustRequest" map="parameters" to-map="eventCreateCust"/>
<call-service service-name="createCustRequest" in-map-name="eventCreateCust">