[ \t]+$ => "" (empty) Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg) Of course this effort to remove trailing spaces has no functional implications. Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135 In the meantime I did some refactoring also in *.java and *.groovy files : ){ => ) { if( => if ( while( => while ( }else => } else else{ => else { switch( => switch ( try{ => try { }catch => } catch catch( => catch ( }finally{ => } finally { So these changes are also in this commit, should not be a problem anyway. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
78 lines
3.4 KiB
XML
78 lines
3.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<service-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/service-eca.xsd">
|
|
<eca service="createPerson" event="commit">
|
|
<action service="ensureNaPartyRole" mode="sync"/>
|
|
</eca>
|
|
<eca service="createPartyGroup" event="commit">
|
|
<action service="ensureNaPartyRole" mode="sync"/>
|
|
</eca>
|
|
<eca service="createAffiliate" event="commit">
|
|
<action service="ensureNaPartyRole" mode="sync"/>
|
|
</eca>
|
|
|
|
<eca service="updatePerson" event="invoke">
|
|
<action service="savePartyNameChange" mode="sync"/>
|
|
</eca>
|
|
<eca service="updatePartyGroup" event="invoke">
|
|
<action service="savePartyNameChange" mode="sync"/>
|
|
</eca>
|
|
|
|
<!-- before running the createPartyRelationship service, make sure the party is in the _NA_ role if that is the desired roleTypeId for From or To -->
|
|
<eca service="createPartyRelationship" event="invoke">
|
|
<condition field-name="roleTypeIdFrom" operator="equals" value="_NA_"/>
|
|
<action service="ensureNaPartyRoleFrom" mode="sync"/>
|
|
</eca>
|
|
<eca service="createPartyRelationship" event="invoke">
|
|
<condition field-name="roleTypeIdTo" operator="equals" value="_NA_"/>
|
|
<action service="ensureNaPartyRoleTo" mode="sync"/>
|
|
</eca>
|
|
|
|
<!-- party contact mech service ECAs -->
|
|
<!-- NOTE: because we have an ECA on createPartyContactMech, we don't need to do it on createPartyPostalAddress, createPartyEmailAddress, createPartyTelecomNumber because those will call it -->
|
|
<eca service="createPartyContactMech" event="commit">
|
|
<condition field-name="contactMechPurposeTypeId" operator="is-not-empty"/>
|
|
<condition field-name="contactMechId" operator="is-not-empty"/>
|
|
<action service="createPartyContactMechPurpose" mode="sync"/>
|
|
</eca>
|
|
|
|
<eca service="createCommEventWorkEffort" event="invoke">
|
|
<condition field-name="workEffortId" operator="is-empty"/>
|
|
<action service="createWorkEffort" mode="sync"/>
|
|
</eca>
|
|
|
|
<!-- all these secas are now replaced by a sheduled job (sendEmailDated) which runs every 5 minutes -->
|
|
|
|
<!-- After all the emails have been sent to a contact list, mark it as complete. -->
|
|
<eca service="sendEmailToContactList" event="commit">
|
|
<action service="setCommEventComplete" mode="sync"/>
|
|
</eca>
|
|
|
|
<eca service="updatePassword" event="commit">
|
|
<action service="sendUpdatePersonalInfoEmailNotification" mode="async" persist="true"/>
|
|
</eca>
|
|
|
|
<eca service="createEmailAddressVerification" event="commit">
|
|
<action service="sendVerifyEmailAddressNotification" mode="async"/>
|
|
</eca>
|
|
</service-eca>
|