Author: hansbak
Date: Mon May 30 03:01:29 2011 New Revision: 1128984 URL: http://svn.apache.org/viewvc?rev=1128984&view=rev Log: make notification services for custRequest and commevent website aware Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml ofbiz/trunk/applications/order/servicedef/secas.xml ofbiz/trunk/applications/order/servicedef/services_request.xml ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml ofbiz/trunk/applications/workeffort/servicedef/services.xml Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml?rev=1128984&r1=1128983&r2=1128984&view=diff ============================================================================== --- ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml (original) +++ ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml Mon May 30 03:01:29 2011 @@ -80,6 +80,9 @@ under the License. <if-not-empty field="parameters.statusId"> <set field="setStat.statusId" from-field="parameters.statusId"/> <set field="setStat.custRequestId" from-field="newEntity.custRequestId"/> + <if-not-empty field="parameters.webSiteId"> + <set field="setStat.webSiteId" from-field="parameters.webSiteId"/> + </if-not-empty> <call-service service-name="setCustRequestStatus" in-map-name="setStat"/> </if-not-empty> @@ -156,6 +159,9 @@ under the License. </if-compare> <!-- update status and save the changed status in the history --> <set-service-fields service-name="setCustRequestStatus" map="parameters" to-map="setStat"/> + <if-not-empty field="parameters.webSiteId"> + <set field="setStat.webSiteId" from-field="parameters.webSiteId"/> + </if-not-empty> <call-service service-name="setCustRequestStatus" in-map-name="setStat"/> <if-not-empty field="isShowEvent"> <clear-field field="successMessage"/> Modified: ofbiz/trunk/applications/order/servicedef/secas.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/secas.xml?rev=1128984&r1=1128983&r2=1128984&view=diff ============================================================================== --- ofbiz/trunk/applications/order/servicedef/secas.xml (original) +++ ofbiz/trunk/applications/order/servicedef/secas.xml Mon May 30 03:01:29 2011 @@ -360,6 +360,7 @@ under the License. <condition field-name="oldStatusId" operator="not-equals" value="CRQ_ACCEPTED"/> <condition field-name="oldStatusId" operator="not-equals" value="CRQ_PENDING"/> <condition field-name="statusId" operator="equals" value="CRQ_ACCEPTED"/> + <condition field-name="webSiteId" operator="equals" value="OrderEntry"/> <set field-name="bodyParameters.custRequestId" env-name="custRequestId"/> <set field-name="bodyParameters.custRequestName" env-name="custRequestName"/> <set field-name="partyIdTo" env-name="fromPartyId"/> @@ -370,6 +371,7 @@ under the License. <eca service="setCustRequestStatus" event="commit"> <condition field-name="oldStatusId" operator="not-equals" value="CRQ_COMPLETED"/> <condition field-name="statusId" operator="equals" value="CRQ_COMPLETED"/> + <condition field-name="webSiteId" operator="equals" value="OrderEntry"/> <set field-name="bodyParameters.custRequestId" env-name="custRequestId"/> <set field-name="partyIdTo" env-name="fromPartyId"/> <set field-name="emailTemplateSettingId" value="CUST_REQ_COMPLETED"/> Modified: ofbiz/trunk/applications/order/servicedef/services_request.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/services_request.xml?rev=1128984&r1=1128983&r2=1128984&view=diff ============================================================================== --- ofbiz/trunk/applications/order/servicedef/services_request.xml (original) +++ ofbiz/trunk/applications/order/servicedef/services_request.xml Mon May 30 03:01:29 2011 @@ -41,6 +41,7 @@ under the License. <auto-attributes include="pk" mode="INOUT" optional="true"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> <auto-attributes include="all" mode="IN" entity-name="CustRequestItem" optional="true"/> + <attribute name="webSiteId" type="String" mode="IN" optional="true"/><!-- for notification services --> <override name="custRequestName" allow-html="safe"/> <override name="description" allow-html="safe"/> <override name="story" allow-html="safe"/> @@ -52,6 +53,7 @@ under the License. <auto-attributes include="nonpk" mode="IN" optional="true"/> <attribute name="oldStatusId" type="String" mode="OUT"/> <attribute name="story" mode="IN" type="String" optional="true" allow-html="safe"/> + <attribute name="webSiteId" type="String" mode="IN" optional="true"/><!-- for notification services --> <override name="custRequestName" allow-html="safe"/> <override name="description" allow-html="safe"/> </service> @@ -179,6 +181,7 @@ under the License. <attribute name="oldStatusId" type="String" mode="OUT" optional="true"/> <attribute name="fromPartyId" type="String" mode="OUT" optional="true"/><!-- for notification services --> <attribute name="custRequestName" type="String" mode="OUT" optional="true"/><!-- for notification services --> + <attribute name="webSiteId" type="String" mode="IN" optional="true"/><!-- for notification services --> </service> <service name="createCustRequestFromCommEvent" engine="simple" default-entity-name="CommunicationEvent" location="component://order/script/org/ofbiz/order/request/CustRequestServices.xml" invoke="createCustRequestFromCommEvent" auth="true"> Modified: ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml?rev=1128984&r1=1128983&r2=1128984&view=diff ============================================================================== --- ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml (original) +++ ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml Mon May 30 03:01:29 2011 @@ -90,6 +90,7 @@ under the License. <!-- update status of customer request --> <set field="updCustReq.custRequestId" from-field="parameters.custRequestId"/> <set field="updCustReq.statusId" value="CRQ_REVIEWED"/> + <set field="updCustReq.webSiteId" from-field="parameters.webSiteId"/> <call-service service-name="setCustRequestStatus" in-map-name="updCustReq"/> <entity-and list="custRequestContents" entity-name="CustRequestContent"> <field-map field-name="custRequestId" from-field="parameters.custRequestId"/> Modified: ofbiz/trunk/applications/workeffort/servicedef/services.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/servicedef/services.xml?rev=1128984&r1=1128983&r2=1128984&view=diff ============================================================================== --- ofbiz/trunk/applications/workeffort/servicedef/services.xml (original) +++ ofbiz/trunk/applications/workeffort/servicedef/services.xml Mon May 30 03:01:29 2011 @@ -48,6 +48,7 @@ under the License. <attribute name="requirementId" type="String" mode="IN" optional="true"/> <attribute name="custRequestId" type="String" mode="IN" optional="true"/> <attribute name="communicationEventId" type="String" mode="IN" optional="true"/> + <attribute name="webSiteId" type="String" mode="IN" optional="true"/><!-- for notification services --> <override name="workEffortTypeId" optional="false"/> <override name="workEffortName" optional="false"/> <override name="currentStatusId" optional="false"/> @@ -77,6 +78,7 @@ under the License. <auto-attributes mode="IN" include="pk" optional="false"/> <attribute name="communicationEventId" type="String" mode="IN" optional="true"/> <attribute name="reason" type="String" mode="IN" optional="true"/> + <attribute name="webSiteId" type="String" mode="IN" optional="true"/><!-- for notification services --> </service> <service name="deleteWorkEffort" default-entity-name="WorkEffort" engine="simple" location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteWorkEffort"> |
Free forum by Nabble | Edit this page |