Author: hansbak
Date: Wed Jan 12 11:15:10 2011
New Revision: 1058077

URL: http://svn.apache.org/viewvc?rev=1058077&view=rev
Log:
add an additional input parameter to the update communicationevent to select a 
specific purpose 'from' emailaddress

Modified:
    
ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
    ofbiz/trunk/applications/party/servicedef/services.xml

Modified: 
ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml?rev=1058077&r1=1058076&r2=1058077&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
 (original)
+++ 
ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
 Wed Jan 12 11:15:10 2011
@@ -288,6 +288,7 @@ under the License.
                 </if-not-empty>
                 <!-- add new role -->
                 <set field="newRoleFrom.partyId" 
from-field="parameters.partyIdFrom"/>
+                <set field="newRoleFrom.contactMechPurposeTypeId" 
from-field="parameters.contactMechPurposeTypeId" set-if-empty="false"/>
                 <call-service service-name="getPartyEmail" 
in-map-name="newRoleFrom">
                     <result-to-field result-name="contactMechId" 
field="newRoleFrom.contactMechId"/>
                 </call-service>

Modified: ofbiz/trunk/applications/party/servicedef/services.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/services.xml?rev=1058077&r1=1058076&r2=1058077&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/services.xml Wed Jan 12 11:15:10 
2011
@@ -783,6 +783,7 @@ under the License.
         <permission-service 
service-name="partyCommunicationEventPermissionCheck" main-action="UPDATE"/>
         <auto-attributes entity-name="CommunicationEvent" include="pk" 
mode="IN" optional="false"/>
         <auto-attributes entity-name="CommunicationEvent" include="nonpk" 
mode="IN" optional="true"/>
+        <attribute name="contactMechPurposeTypeIdFrom" type="String" mode="IN" 
optional="true"><description>Set a specific purpose for the originator 
email</description></attribute>
         <attribute name="oldStatusId" type="String" mode="OUT" 
optional="true"/>
         <override name="messageId" allow-html="safe"/>
         <override name="content" allow-html="safe"/>


Reply via email to