fix the new notification services using sendMailFromTemplateSetting using body parameters

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768245 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hans Bakker
2009-04-24 10:08:55 +00:00
parent 8b0f97a7ed
commit 0c5a93074c
5 changed files with 37 additions and 15 deletions
@@ -22,9 +22,11 @@ under the License.
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="sendMailFromTemplateSetting" short-description="Send Mail from Email Template Setting">
<if-not-empty field="parameters.partyId">
<!-- if partyIdTo provided but no emailAddress, get it from the partyContactMech -->
<if-not-empty field="parameters.partyIdTo">
<if-empty field="parameters.sendTo">
<set-service-fields service-name="getPartyEmail" map="parameters" to-map="getEmail"/>
<set field="getMail.partyId" from-field="parameters.partyIdTo"/>
<call-service service-name="getPartyEmail" in-map-name="getEmail">
<result-to-field result-name="emailAddress" field="parameters.sendTo"/>
</call-service>