| <?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="createWorkEffort" event="commit"> |
| <condition field-name="quickAssignPartyId" operator="is-not-empty"/> |
| <action service="quickAssignPartyToWorkEffort" mode="sync"/> |
| </eca> |
| <eca service="createWorkEffort" event="commit"> |
| <condition field-name="communicationEventId" operator="is-not-empty"/> |
| <condition field-name="custRequestId" operator="is-empty"/><!-- otherwise link is made over the customer request --> |
| <action service="makeCommunicationEventWorkEffort" mode="sync"/> |
| </eca> |
| |
| <eca service="updateWorkEffort" event="commit"> |
| <condition field-name="communicationEventId" operator="is-not-empty"/> |
| <action service="makeCommunicationEventWorkEffort" mode="sync"/> |
| </eca> |
| <eca service="createCommunicationEventWorkEff" event="invoke"> |
| <condition field-name="communicationEventId" operator="is-empty"/> |
| <action service="createCommunicationEvent" mode="sync"/> |
| </eca> |
| <eca service="createWorkEffortRequest" event="invoke"> |
| <condition field-name="custRequestId" operator="is-empty"/> |
| <action service="createCustRequest" mode="sync"/> |
| </eca> |
| <eca service="createWorkEffortRequestItem" event="invoke"> |
| <condition field-name="custRequestItemExists" operator="is-empty"/> |
| <action service="createCustRequestItem" mode="sync"/> |
| </eca> |
| <eca service="createWorkEffortQuote" event="invoke"> |
| <condition field-name="quoteId" operator="is-empty"/> |
| <action service="createQuote" mode="sync"/> |
| </eca> |
| <eca service="createWorkRequirementFulfillment" event="invoke"> |
| <condition field-name="requirementId" operator="is-empty"/> |
| <action service="createRequirement" mode="sync"/> |
| </eca> |
| <eca service="createShoppingListWorkEffort" event="invoke"> |
| <condition field-name="shoppingListId" operator="is-empty"/> |
| <action service="createShoppingList" mode="sync"/> |
| </eca> |
| <eca service="createOrderHeaderWorkEffort" event="invoke"> |
| <condition field-name="orderId" operator="is-empty"/> |
| <action service="createOrderHeader" mode="sync"/> |
| </eca> |
| </service-eca> |