Blame view

applications/workeffort/servicedef/services.xml 61.1 KB
c16038356   Anchit Jindal   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
  <?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.
  -->
  
  <services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
      <description>Common Application Shared WorkEffort Services</description>
      <vendor>OFBiz</vendor>
      <version>1.0</version>
  
    <!-- WorkEffort services -->
      <service name="interfaceWorkEffort" default-entity-name="WorkEffort" engine="interface" location="" invoke="">
          <description>WorkEffort Entity Interface</description>
          <auto-attributes mode="IN" include="nonpk" optional="true">
              <exclude field-name="lastStatusUpdate"/>
              <exclude field-name="revisionNumber"/>
              <exclude field-name="createdDate"/>
              <exclude field-name="createdByUserLogin"/>
              <exclude field-name="lastModifiedDate"/>
              <exclude field-name="lastModifiedByUserLogin"/>
          </auto-attributes>
          <override name="workEffortName" allow-html="safe"/>
          <override name="description" allow-html="safe"/>
      </service>
      <service name="createWorkEffort" default-entity-name="WorkEffort" engine="simple"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffort">
          <description>Create a WorkEffort Entity</description>
          <permission-service service-name="workEffortGenericPermission" main-action="CREATE"/>
          <implements service="interfaceWorkEffort"/>
          <auto-attributes mode="INOUT" include="pk" optional="true"/>
          <attribute name="quickAssignPartyId" type="String" mode="IN" optional="true"/>
          <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" allow-html="safe"/>
          <override name="currentStatusId" optional="false"/>
          <override name="description" allow-html="safe"/>
      </service>
      <service name="createWorkEffortAndPartyAssign" default-entity-name="WorkEffort" engine="simple"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortAndPartyAssign">
          <description>Create a WorkEffort Entity and assign to a party</description>
          <permission-service service-name="workEffortGenericPermission" main-action="CREATE"/>
          <implements service="interfaceWorkEffort"/>
          <auto-attributes mode="INOUT" include="pk" optional="true"/>
          <attribute name="partyId" type="String" mode="IN" optional="false"/>
          <attribute name="roleTypeId" type="String" mode="IN" optional="false"/>
          <attribute name="statusId" type="String" mode="IN" optional="false"/>
          <attribute name="quickAssignPartyId" type="String" mode="IN" optional="true"/>
          <attribute name="requirementId" type="String" mode="IN" optional="true"/>
          <attribute name="communicationEventId" type="String" mode="IN" optional="true"/>
          <override name="workEffortTypeId" optional="false"/>
          <override name="workEffortName" optional="false"/>
          <override name="currentStatusId" optional="false"/>
      </service>
      <service name="updateWorkEffort" default-entity-name="WorkEffort" engine="simple"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="updateWorkEffort">
          <description>Update a WorkEffort Entity</description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <implements service="interfaceWorkEffort"/>
          <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">
          <description>Delete a WorkEffort Entity</description>
          <auto-attributes mode="IN" include="pk" optional="false"/>
      </service>
  
      <service name="copyWorkEffort" engine="simple" auth="true" transaction-timeout="300"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="copyWorkEffort">
          <description>Copies an existing WorkEffort to a new WorkEffort.</description>
          <permission-service service-name="workEffortGenericPermission" main-action="CREATE"/>
          <attribute name="sourceWorkEffortId" mode="IN" type="String" optional="false">
              <description>The ID of the WorkEffort to copy from.</description>
          </attribute>
          <attribute name="targetWorkEffortId" mode="IN" type="String" optional="true">
              <description>The ID of the WorkEffort copy. If empty a new WorkEffort ID will be created.</description>
          </attribute>
          <attribute name="copyWorkEffortAssocs" mode="IN" type="String" optional="true">
              <description>Copy WorkEffort associations (Y/N). Only child WorkEffort associations will be copied.</description>
          </attribute>
          <attribute name="deepCopy" mode="IN" type="String" optional="true">
              <description>Copy associated WorkEfforts (Y/N). Used only when copyWorkEffortAssocs = Y.</description>
          </attribute>
          <attribute name="excludeExpiredAssocs" mode="IN" type="String" optional="true">
              <description>Exclude expired associated WorkEfforts from copying (Y/N). Used only when copyWorkEffortAssocs = Y.</description>
          </attribute>
          <attribute name="copyRelatedValues" mode="IN" type="String" optional="true">
              <description>Copy WorkEffort related values (Y/N).</description>
          </attribute>
          <attribute name="excludeExpiredRelations" mode="IN" type="String" optional="true">
              <description>Exclude expired WorkEffort related values from copying (Y/N). Used only when copyRelatedValues = Y.</description>
          </attribute>
          <attribute name="workEffortId" mode="OUT" type="String" optional="false" />
      </service>
  
      <service name="duplicateWorkEffort" engine="simple"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="duplicateWorkEffort" auth="true">
          <description>Duplicate a Work Effort. If workEffortId is empty a new workEffortId will be generated.</description>
          <permission-service service-name="workEffortGenericPermission" main-action="CREATE"/>
          <attribute name="workEffortId" type="String" mode="IN" optional="true"/>
          <attribute name="oldWorkEffortId" type="String" mode="IN" optional="false"/>
          <attribute name="duplicateWorkEffortAssocs" type="String" mode="IN" optional="true"/>
          <attribute name="duplicateWorkEffortContents" type="String" mode="IN" optional="true"/>
          <attribute name="duplicateWorkEffortNotes" type="String" mode="IN" optional="true"/>
          <attribute name="duplicateWorkEffortAssignmentRates" type="String" mode="IN" optional="true"/>
          <attribute name="removeWorkEffortAssocs" type="String" mode="IN" optional="true"/>
          <attribute name="removeWorkEffortContents" type="String" mode="IN" optional="true"/>
          <attribute name="removeWorkEffortNotes" type="String" mode="IN" optional="true"/>
          <attribute name="removeWorkEffortAssignmentRates" type="String" mode="IN" optional="true"/>
          <attribute name="workEffortId" type="String" mode="OUT" optional="false"/>
      </service>
  
      <!-- Communication Event WorkEffort -->
      <service name="makeCommunicationEventWorkEffort" default-entity-name="WorkEffort" engine="simple"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="makeCommunicationEventWorkEffort" auth="true">
          <description>Make a Communication Event Workeffort and create the workeffort itself if the ID not supplied</description>
          <auto-attributes include="pk" mode="INOUT" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
          <attribute name="communicationEventId" type="String" mode="INOUT"/>
          <attribute name="relationDescription" type="String" mode="IN" optional="true"/>
      </service>
  
      <!-- WorkEffortPartyAssignment services -->
      <service name="assignPartyToWorkEffort" default-entity-name="WorkEffortPartyAssignment" engine="simple"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="assignPartyToWorkEffort">
          <description>Create a WorkEffortPartyAssignment Entity</description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <auto-attributes mode="IN" include="pk" optional="false"/>
          <auto-attributes mode="IN" include="nonpk" optional="true">
              <exclude field-name="statusDateTime"/>
          </auto-attributes>
          <override name="fromDate" mode="INOUT" optional="true"/>
          <override name="statusId" optional="false"/>
      </service>
      <service name="updatePartyToWorkEffortAssignment" default-entity-name="WorkEffortPartyAssignment" engine="simple"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="updatePartyToWorkEffortAssignment">
          <description>Update a WorkEffortPartyAssignment Entity</description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <auto-attributes mode="IN" include="pk" optional="false"/>
          <auto-attributes mode="IN" include="nonpk" optional="true">
              <exclude field-name="statusDateTime"/>
          </auto-attributes>
      </service>
      <service name="deletePartyToWorkEffortAssignment" default-entity-name="WorkEffortPartyAssignment" engine="simple"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deletePartyToWorkEffortAssignment">
          <description>delete/set the thrudate on the WorkEffortPartyAssignment Entity to today</description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <auto-attributes mode="IN" include="pk" optional="false"/>
      </service>
      <service name="unassignPartyFromWorkEffort" default-entity-name="WorkEffortPartyAssignment" engine="simple"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="unassignPartyFromWorkEffort">
          <description>Delete a WorkEffortPartyAssignment Entity</description>
          <permission-service service-name="workEffortGenericPermission" main-action="DELETE"/>
          <auto-attributes mode="IN" include="pk" optional="false"/>
      </service>
  
      <service name="quickAssignPartyToWorkEffort" engine="simple"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="quickAssignPartyToWorkEffort">
          <description>Quick Assign Party To WorkEffort as Owner</description>
          <attribute name="workEffortId" type="String" mode="IN" optional="false"/>
          <attribute name="quickAssignPartyId" type="String" mode="IN" optional="false"/>
      </service>
      <service name="quickAssignPartyToWorkEffortWithRole" engine="simple"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="quickAssignPartyToWorkEffortWithRole">
          <description>Quick Assign Party To WorkEffort as Owner</description>
          <attribute name="workEffortId" type="String" mode="IN" optional="false"/>
          <attribute name="quickAssignPartyId" type="String" mode="IN" optional="false"/>
          <attribute name="roleTypeId" type="String" mode="IN" optional="false"/>
      </service>
      <service name="createWorkEffortNote" engine="simple"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortNote" auth="true">
          <description>Create a WorkEffort Note</description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <attribute name="workEffortId" type="String" mode="IN" optional="false"/>
          <attribute name="noteInfo" type="String" mode="IN" optional="false"/>
          <attribute name="noteParty" type="String" mode="IN" optional="true"/>
          <attribute name="noteName" type="String" mode="IN" optional="true"/>
          <attribute name="internalNote" type="String" mode="IN" optional="true"/>
          <attribute name="noteId" type="String" mode="OUT" optional="false"/>
      </service>
      <service name="updateWorkEffortNote" engine="simple"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="updateWorkEffortNote" auth="true">
          <description>Update a WorkEffort Note</description>
          <attribute name="workEffortId" type="String" mode="IN" optional="false"/>
          <attribute name="noteId" type="String" mode="IN" optional="false"/>
          <attribute name="internalNote" type="String" mode="IN" optional="false"/>
          <attribute name="noteInfo" type="String" mode="IN" optional="true"/>
      </service>
      <!-- Services for finding Assigned WorkEfforts -->
      <service name="getWorkEffortAssignedEventsForRole" engine="java"
              location="org.ofbiz.workeffort.workeffort.WorkEffortServices" invoke="getWorkEffortAssignedEventsForRole">
          <description>Get the active WorkEffort Events where the logged in user is assigned in the specidied role.</description>
          <attribute name="roleTypeId" type="String" mode="IN" optional="false"/>
          <attribute name="events" type="java.util.List" mode="OUT" optional="false"/>
      </service>
      <service name="getWorkEffortAssignedEventsForRoleOfAllParties" engine="java"
              location="org.ofbiz.workeffort.workeffort.WorkEffortServices" invoke="getWorkEffortAssignedEventsForRoleOfAllParties">
          <description>Get the active WorkEffort Events in the specified role for all the parties.</description>
          <attribute name="roleTypeId" type="String" mode="IN" optional="false"/>
          <attribute name="events" type="java.util.List" mode="OUT" optional="false"/>
      </service>
      <service name="getWorkEffortAssignedTasks" engine="java"
              location="org.ofbiz.workeffort.workeffort.WorkEffortServices" invoke="getWorkEffortAssignedTasks">
          <description>Get WorkEffort Assigned Tasks : workEffort assign to userLogin.partyId and with
              workEffortTypeId = TASK and currentStatusId not in (CAL_DECLINED, CAL_DELEGATED, CAL_COMPLETED, CAL_CANCELLED) and partyAssign.statusId != PRTYASGN_UNASSIGNED
              OR  workEffortTypeId = PROD_ORDER_TASK and currentStatusId not in (PRUN_CANCELLED, PRUN_COMPLETED, PRUN_CLOSED)</description>
          <attribute name="tasks" type="java.util.List" mode="OUT" optional="false"/>
      </service>
      <service name="getWorkEffortAssignedActivities" engine="java"
              location="org.ofbiz.workeffort.workeffort.WorkEffortServices" invoke="getWorkEffortAssignedActivities">
          <description>Get WorkEffort Assigned Activities : workEffort assign to userLogin.partyId and with
              workEffortTypeId = ACTIVITY and currentStatusId not in (WF_COMPLETED, WF_TERMINATED, WF_ABORTED)
              and partyAssign.statusId not in (CAL_DECLINED, CAL_DELEGATED, CAL_COMPLETED, CAL_CANCELLED, PRTYASGN_UNASSIGNED)</description>
          <attribute name="activities" type="java.util.List" mode="OUT" optional="false"/>
      </service>
      <service name="getWorkEffortAssignedActivitiesByRole" engine="java"
              location="org.ofbiz.workeffort.workeffort.WorkEffortServices" invoke="getWorkEffortAssignedActivitiesByRole">
          <description>Get WorkEffort Assigned Activities By Role : same condition as getWorkEffortAssignedActivities but on view WorkEffortPartyAssignByRole
              to be able to have all party roles</description>
          <attribute name="roleActivities" type="java.util.List" mode="OUT" optional="false"/>
      </service>
      <service name="getWorkEffortAssignedActivitiesByGroup" engine="java"
              location="org.ofbiz.workeffort.workeffort.WorkEffortServices" invoke="getWorkEffortAssignedActivitiesByGroup">
          <description>Get WorkEffort Assigned Activities By Group : same condition as getWorkEffortAssignedActivities but on view WorkEffortPartyAssignByGroup
              to be able to have all parties associated to userLogin.partyId by PartyRelationship</description>
          <attribute name="groupActivities" type="java.util.List" mode="OUT" optional="false"/>
      </service>
  
      <!-- Worker services -->
      <service name="getWorkEffort" engine="java"
              location="org.ofbiz.workeffort.workeffort.WorkEffortServices" invoke="getWorkEffort">
          <description>Get WorkEffort</description>
          <attribute name="workEffortId" type="java.lang.String" mode="INOUT" optional="true"/>
          <attribute name="currentStatusId" type="java.lang.String" mode="IN" optional="true"/>
          <attribute name="workEffort" type="org.ofbiz.entity.GenericValue" mode="OUT" optional="true"/>
          <attribute name="canView" type="java.lang.Boolean" mode="OUT" optional="true"/>
          <attribute name="tryEntity" type="java.lang.Boolean" mode="OUT" optional="true"/>
          <attribute name="currentStatusItem" type="org.ofbiz.entity.GenericValue" mode="OUT" optional="true"/>
          <attribute name="partyAssigns" type="java.util.Collection" mode="OUT" optional="true"/>
      </service>
      <service name="getWorkEffortEventsByPeriod" auth="true" engine="java"
              location="org.ofbiz.workeffort.workeffort.WorkEffortServices" invoke="getWorkEffortEventsByPeriod">
          <description>Get WorkEffort Events by a period specified by periodType attribute (one of the
            java.util.Calendar field values). Return a Map with periodStart as the key and a Collection of events for that period as value
            If filterOutCanceledEvents is set to Boolean(true) then workEfforts with currentStatusId=EVENT_CANCELLED will not be returned.
            To limit the events to a particular partyId, specify the partyId.  To limit the events to a set of partyIds, specify a Collection of partyIds.
          </description>
          <attribute name="calendarType" type="String" mode="IN" optional="true">
              <description>Can be either CAL_PERSONAL or CAL_MANUFACTURING, defaults to CAL_PERSONAL. The value controls the type of work efforts
              returned. To bypass this behavior, use an invalid value (like VOID).</description>
          </attribute>
          <attribute name="partyId" type="String" mode="IN" optional="true"/>
          <attribute name="partyIds" type="java.util.Collection" mode="IN" optional="true"/>
          <attribute name="facilityId" type="String" mode="IN" optional="true"/>
          <attribute name="fixedAssetId" type="String" mode="IN" optional="true"/>
          <attribute name="workEffortTypeId" type="String" mode="IN" optional="true"/>
          <attribute name="start" type="java.sql.Timestamp" mode="IN" optional="false"/>
          <attribute name="numPeriods" type="java.lang.Integer" mode="IN" optional="false"/>
          <attribute name="periodType" type="java.lang.Integer" mode="IN" optional="false"/>
          <attribute name="filterOutCanceledEvents" type="java.lang.Boolean" mode="IN" optional="true"/>
          <attribute name="entityExprList" type="java.util.List" mode="IN" optional="true"/>
          <attribute name="periods" type="java.util.List" mode="OUT" optional="false"/>
          <attribute name="maxConcurrentEntries" type="java.lang.Integer" mode="OUT" optional="false"/>
      </service>
      <service name="removeDuplicateWorkEfforts" auth="true" engine="java"
              location="org.ofbiz.workeffort.workeffort.WorkEffortServices" invoke="removeDuplicateWorkEfforts">
          <description>Removes duplicate work efforts from a list of work efforts.</description>
          <attribute name="workEffortIterator" type="java.util.ListIterator" mode="IN" optional="true"/>
          <attribute name="workEfforts" type="java.util.List" mode="INOUT" optional="true"/>
      </service>
      <service name="getProductManufacturingSummaryByFacility" engine="java"
              location="org.ofbiz.workeffort.workeffort.WorkEffortServices" invoke="getProductManufacturingSummaryByFacility">
          <description>
              Create a map with an entry for each facility. The value is another map with information about
              the manufacturing orders running in the facility for the given product:
              incoming - incomingProductionRunList, estimatedQuantityTotal.  Shows quantity of product to be produced.
              outgoing - outgoingProductionRunList, estimatedQuantityTotal.  Shows quantity of product to be consumed.
          </description>
          <attribute name="productId" type="String" mode="IN" optional="false"/>
          <attribute name="facilityId" type="String" mode="IN" optional="true"/>
          <attribute name="summaryInByFacility" type="Map" mode="OUT" optional="false"/>
          <attribute name="summaryOutByFacility" type="Map" mode="OUT" optional="false"/>
      </service>
      <service name="createWorkEffortAssoc" default-entity-name="WorkEffortAssoc" engine="simple"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortAssoc">
          <description>
              Create a WorkEffort Assoc, for linking task to describe a project or
              for linking routing with its routingTasks
          </description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
          <override name="fromDate" optional="true"/>
      </service>
      <service name="updateWorkEffortAssoc" default-entity-name="WorkEffortAssoc" engine="simple"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="updateWorkEffortAssoc">
          <description>
              Update a WorkEffort Assoc, for linking task to describe a project or
              for linking routing with its routingTasks
          </description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="removeWorkEffortAssoc" engine="simple" default-entity-name="WorkEffortAssoc"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="removeWorkEffortAssoc">
          <description>
              Remove a WorkEffort Assoc, for linking task to describe a project or
              for linking routing with its routingTasks
          </description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
      </service>
  
      <service name="copyWorkEffortAssocs" engine="simple" auth="true" transaction-timeout="300"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="copyWorkEffortAssocs">
          <description>Copies WorkEffortAssocs from one WorkEffort to another WorkEffort. Only child WorkEffort associations will be copied.</description>
          <permission-service service-name="workEffortGenericPermission" main-action="CREATE"/>
          <attribute name="sourceWorkEffortId" mode="IN" type="String" optional="false">
              <description>The ID of the WorkEffort to copy the associations from.</description>
          </attribute>
          <attribute name="targetWorkEffortId" mode="IN" type="String" optional="true">
              <description>The ID of the WorkEffort to copy the associations to.</description>
          </attribute>
          <attribute name="deepCopy" mode="IN" type="String" optional="true">
              <description>Copy associated WorkEfforts (Y/N).</description>
          </attribute>
          <attribute name="excludeExpiredAssocs" mode="IN" type="String" optional="true">
              <description>Exclude expired WorkEffort associations from copying (Y/N).</description>
          </attribute>
          <attribute name="copyRelatedValues" mode="IN" type="String" optional="true">
              <description>Copy WorkEffort related values (Y/N). Used only when deepCopy = Y.</description>
          </attribute>
          <attribute name="excludeExpiredRelations" mode="IN" type="String" optional="true">
              <description>Exclude expired WorkEffort related values from copying (Y/N). Used only when deepCopy = Y.</description>
          </attribute>
      </service>
  
      <service name="createWorkEffortAndAssoc" engine="simple" location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortAndAssoc" auth="true">
          <description>Creates a WorkEffort entity and WorkEffortAssoc</description>
          <auto-attributes include="pk" mode="INOUT" optional="true" entity-name="WorkEffort"/>
          <auto-attributes include="nonpk" mode="IN" optional="true" entity-name="WorkEffort"/>
          <auto-attributes include="pk" mode="INOUT" optional="true" entity-name="WorkEffortAssoc"/>
          <auto-attributes include="nonpk" mode="IN" optional="true" entity-name="WorkEffortAssoc"/>
          <attribute name="quickAssignPartyId" type="String" mode="IN" optional="true"/>
      </service>
      <service name="updateWorkEffortAndAssoc" engine="group" location="updateWorkEffortAndAssoc" invoke="" auth="true">
          <description>Creates a WorkEffort entity and WorkEffortAssoc</description>
          <auto-attributes include="pk" mode="INOUT" optional="true" entity-name="WorkEffort"/>
          <auto-attributes include="nonpk" mode="IN" optional="true" entity-name="WorkEffort"/>
          <auto-attributes include="pk" mode="INOUT" optional="true" entity-name="WorkEffortAssoc"/>
          <auto-attributes include="nonpk" mode="IN" optional="true" entity-name="WorkEffortAssoc"/>
      </service>
  
      <service name="createWorkEffortGoodStandard" engine="simple" default-entity-name="WorkEffortGoodStandard"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortGoodStandard">
          <description>
              Create a WorkEffort - Product Assoc, for linking WorkEffort to In or Out  Product,
              for routing it's the link between Manufactured Product with its routings
          </description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
          <override name="fromDate" optional="true"/>
      </service>
      <service name="updateWorkEffortGoodStandard" engine="simple" default-entity-name="WorkEffortGoodStandard"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="updateWorkEffortGoodStandard">
          <description>
              Update a WorkEffort - Product Assoc, for linking WorkEffort to In or Out  Product,
              for routing it's the link between Manufactured Product with its routings
          </description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="removeWorkEffortGoodStandard" engine="simple" default-entity-name="WorkEffortGoodStandard"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="removeWorkEffortGoodStandard">
          <description>Remove a WorkEffort - Product Assoc, for linking WorkEffort to In or Out  Product,
              for routing it's the link between Manufactured Product with its routings
          </description>
          <auto-attributes include="pk" mode="IN" optional="false"/>
      </service>
      <service name="assignInventoryToWorkEffort" default-entity-name="WorkEffortInventoryAssign" engine="simple"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="assignInventoryToWorkEffort" auth="true">
          <description>Create or update WorkEffortInventoryAssign</description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="createCommunicationEventWorkEff" engine="simple" location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="makeCommunicationEventWorkEffort" auth="true">
          <description>Creates a CommunicationEvent entity and CommunicationEventWorkEff</description>
          <auto-attributes include="pk" mode="INOUT" optional="true" entity-name="CommunicationEvent"/>
          <auto-attributes include="nonpk" mode="IN" optional="true" entity-name="CommunicationEvent"/>
          <auto-attributes include="pk" mode="INOUT" optional="true" entity-name="CommunicationEventWorkEff"/>
          <auto-attributes include="nonpk" mode="IN" optional="true" entity-name="CommunicationEventWorkEff"/>
      </service>
      <service name="updateCommunicationEventWorkEff" engine="simple" location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="updateCommunicationEventWorkEff" auth="true">
          <description>Updates CommunicationEventWorkEff</description>
          <auto-attributes include="pk" mode="IN" optional="false" entity-name="CommunicationEventWorkEff"/>
          <auto-attributes include="nonpk" mode="IN" optional="true" entity-name="CommunicationEventWorkEff"/>
      </service>
      <service name="deleteCommunicationEventWorkEff" engine="simple" location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteCommunicationEventWorkEff" auth="true">
          <description>Deletes CommunicationEventWorkEff</description>
          <auto-attributes include="pk" mode="IN" optional="false" entity-name="CommunicationEventWorkEff"/>
      </service>
      <service name="createWorkEffortRequest" engine="simple" location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortRequest" auth="true">
          <description>Creates a CustRequestWorkEffort</description>
          <auto-attributes include="pk" mode="IN" optional="false" entity-name="CustRequestWorkEffort"/>
          <auto-attributes include="all" mode="IN" optional="true" entity-name="CustRequest"/>
          <override name="custRequestId" optional="true" mode="INOUT"/>
          <override name="description" allow-html="safe"/>
      </service>
      <service name="deleteWorkEffortRequest" engine="simple" location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteWorkEffortRequest" auth="true">
          <description>Deletes a CustRequestWorkEffort</description>
          <auto-attributes include="pk" mode="IN" optional="false" entity-name="CustRequestWorkEffort"/>
      </service>
      <service name="createWorkEffortRequestItemAndRequestItem" engine="group" location="createWorkEffortRequestItemAndRequestItem" invoke="" auth="true">
          <description>Creates a CustRequestItem entity and CustRequestItemWorkEffort</description>
          <auto-attributes include="pk" mode="IN" optional="false" entity-name="CustRequestItemWorkEffort"/>
          <auto-attributes include="all" mode="IN" optional="true" entity-name="CustRequestItem"/>
          <attribute name="custRequestItemExists" type="java.lang.String" mode="OUT" optional="true"/>
      </service>
      <service name="createWorkEffortRequestItem" engine="simple"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortRequestItem" auth="true">
          <description>Creates a CustRequestItemWorkEffort</description>
          <auto-attributes include="pk" mode="IN" optional="false" entity-name="CustRequestItemWorkEffort"/>
          <auto-attributes include="all" mode="IN" optional="true" entity-name="CustRequestItem"/>
          <attribute name="custRequestItemExists" type="java.lang.String" mode="IN" optional="true"/>
      </service>
      <service name="deleteWorkEffortRequestItem" engine="simple"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteWorkEffortRequestItem" auth="true">
          <description>Deletes a CustRequestItemWorkEffort</description>
          <auto-attributes include="pk" mode="IN" optional="false" entity-name="CustRequestItemWorkEffort"/>
      </service>
      <service name="checkCustRequestItemExists" engine="simple" location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="checkCustRequestItemExists" auth="true">
          <description>Checks to see if a CustRequestItem exists</description>
          <auto-attributes include="pk" mode="IN" optional="true" entity-name="CustRequestItem"/>
          <attribute name="custRequestItemExists" type="java.lang.String" mode="OUT" optional="true"/>
      </service>
  
      <service name="createWorkEffortQuote" engine="simple" location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortQuote" auth="true">
          <description>Creates a QuoteWorkEffort</description>
          <auto-attributes include="pk" mode="IN" optional="false" entity-name="QuoteWorkEffort"/>
          <auto-attributes include="all" mode="IN" optional="true" entity-name="Quote"/>
          <override name="quoteId" optional="true" mode="INOUT"/>
      </service>
      <service name="deleteWorkEffortQuote" default-entity-name="QuoteWorkEffort" engine="simple" auth="true"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteWorkEffortQuote">
          <description>Deletes a QuoteWorkEffort</description>
          <auto-attributes include="pk" mode="IN" optional="false"/>
      </service>
  
      <service name="createWorkRequirementFulfillment" engine="simple" auth="true"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkRequirementFulfillment">
          <description>Creates a WorkRequirementFulfillment</description>
          <auto-attributes include="pk" mode="IN" optional="true" entity-name="WorkRequirementFulfillment"/>
          <auto-attributes include="nonpk" mode="IN" optional="true" entity-name="WorkRequirementFulfillment"/>
          <auto-attributes include="all" mode="IN" optional="true" entity-name="Requirement"/>
      </service>
      <service name="deleteWorkRequirementFulfillment" engine="simple" auth="true"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteWorkRequirementFulfillment">
          <description>Deletes a WorkRequirementFulfillment</description>
          <auto-attributes include="pk" mode="IN" optional="false" entity-name="WorkRequirementFulfillment"/>
      </service>
  
      <service name="createShoppingListWorkEffort" engine="simple" location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createShoppingListWorkEffort" auth="true">
          <description>Creates a ShoppingListWorkEffort</description>
          <auto-attributes include="pk" mode="IN" optional="false" entity-name="ShoppingListWorkEffort"/>
          <auto-attributes include="nonpk" mode="IN" optional="true" entity-name="ShoppingListWorkEffort"/>
          <auto-attributes include="all" mode="IN" optional="true" entity-name="ShoppingList"/>
          <override name="shoppingListId" optional="true" mode="INOUT"/>
      </service>
      <service name="deleteShoppingListWorkEffort" engine="simple" location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteShoppingListWorkEffort" auth="true">
          <description>Deletes a ShoppingListWorkEffort</description>
          <auto-attributes include="pk" mode="IN" optional="false" entity-name="ShoppingListWorkEffort"/>
      </service>
  
      <service name="createOrderHeaderWorkEffort" engine="simple" auth="true"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createOrderHeaderWorkEffort">
          <description>Creates a OrderHeaderWorkEffort</description>
          <auto-attributes include="pk" mode="IN" optional="false" entity-name="OrderHeaderWorkEffort"/>
          <auto-attributes include="nonpk" mode="IN" optional="true" entity-name="OrderHeaderWorkEffort"/>
          <auto-attributes include="all" mode="IN" optional="true" entity-name="OrderHeader"/>
          <override name="orderId" optional="true" mode="INOUT"/>
      </service>
      <service name="deleteOrderHeaderWorkEffort" default-entity-name="OrderHeaderWorkEffort" engine="simple" auth="true"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteOrderHeaderWorkEffort">
          <description>Deletes a OrderHeaderWorkEffort</description>
          <auto-attributes include="pk" mode="IN" optional="false"/>
      </service>
      <service name="setWorkEffortFixedAssetAssign" engine="simple"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="setWorkEffortFixedAssetAssign" auth="true">
          <description>Based on task's estimate dates, write assign entries for the fixed asset the task is assigned to</description>
          <attribute mode="IN" name="workEffortId" optional="false" type="String"/>
      </service>
      <!-- WorkEffort-FixedAsset management services -->
      <service name="createWorkEffortFixedAssetStd" engine="simple" auth="true"
              default-entity-name="WorkEffortFixedAssetStd"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"
              invoke="createWorkEffortFixedAssetStd">
          <description>Creates a WorkEffortFixedAssetStd entry to associate a routing task
              with a fixed asset (type)</description>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="updateWorkEffortFixedAssetStd" engine="simple" auth="true"
              default-entity-name="WorkEffortFixedAssetStd"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"
              invoke="updateWorkEffortFixedAssetStd">
          <description>Updates an existing WorkEffortFixedAssetStd entry</description>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="removeWorkEffortFixedAssetStd" engine="simple" auth="true"
              default-entity-name="WorkEffortFixedAssetStd"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"
              invoke="removeWorkEffortFixedAssetStd">
          <description>Removes a WorkEffortFixedAssetStd, thus removing the association between a routing task
              and a fixed asset (type)</description>
          <auto-attributes include="pk" mode="IN" optional="false"/>
      </service>
      <service name="createWorkEffortFixedAssetAssign" engine="simple" auth="true"
              default-entity-name="WorkEffortFixedAssetAssign"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"
              invoke="createWorkEffortFixedAssetAssign">
          <description>Create a WorkEffortFixedAssetAssign entry to associate a fixed asset
              with a work effort (e.g. a production run task)</description>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
          <override name="fromDate" optional="true" mode="IN"/>
      </service>
      <service name="updateWorkEffortFixedAssetAssign" engine="simple" auth="true"
              default-entity-name="WorkEffortFixedAssetAssign"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"
              invoke="updateWorkEffortFixedAssetAssign">
          <description>Update an existing WorkEffortFixedAssetAssign entry</description>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="removeWorkEffortFixedAssetAssign" engine="simple" auth="true"
              default-entity-name="WorkEffortFixedAssetAssign"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"
              invoke="removeWorkEffortFixedAssetAssign">
          <description>Remove a WorkEffortFixedAssign entry, which removes the association between a fixed asset
              and a work effort (e.g. a production run task)</description>
          <auto-attributes include="pk" mode="IN" optional="false"/>
      </service>
  
      <!-- work effort content services -->
      <service name="createWorkEffortContent" engine="simple"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"
          invoke="createWorkEffortContent"
          default-entity-name="WorkEffortContent" auth="true">
          <description>Create a Work Effort Content</description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
          <override name="fromDate" optional="true"/>
      </service>
      <service name="updateWorkEffortContent" engine="simple"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"
          invoke="updateWorkEffortContent"
          default-entity-name="WorkEffortContent" auth="true">
          <description>Update a Work Effort Content</description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="deleteWorkEffortContent" engine="simple"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"
          invoke="deleteWorkEffortContent"
          default-entity-name="WorkEffortContent" auth="true">
          <description>Delete a Work Effort Content</description>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
  
      <!-- simple use content services -->
      <service name="createWorkEffortTextContent" engine="group" transaction-timeout="300" auth="true">
          <description>Creates a Text Document DataResource and Content Records</description>
          <group>
              <invoke name="createTextContent" result-to-context="true"/>
              <invoke name="createWorkEffortContent"/>
          </group>
      </service>
      <service name="updateWorkEffortTextContent" engine="group" transaction-timeout="300" auth="true">
          <description>Update a Text Document DataResource and Content Records</description>
          <group>
              <invoke name="updateTextContent" result-to-context="true"/>
              <invoke name="updateWorkEffortContent"/>
          </group>
      </service>
  
      <service name="uploadWorkEffortContentFile" engine="group" transaction-timeout="300">
          <description>Upload and attach a file to a WorkEffort</description>
          <group>
              <invoke name="createContentFromUploadedFile" result-to-context="true"/>
              <invoke name="createWorkEffortContent"/>
          </group>
      </service>
  
      <!-- work effort review services -->
      <service name="createWorkEffortReview" default-entity-name="WorkEffortReview" engine="simple"
                  location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortReview" auth="true">
          <description>Create a Work Effort Review</description>
          <auto-attributes include="pk" mode="IN" optional="true"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="updateWorkEffortReview" default-entity-name="WorkEffortReview" engine="simple"
                  location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="updateWorkEffortReview" auth="true">
          <description>Update a Work Effort Review</description>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="deleteWorkEffortReview" engine="simple"
                  location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteWorkEffortReview" auth="true">
          <description>Remove a Work Effort Review</description>
          <auto-attributes entity-name="WorkEffortReview" include="pk" mode="IN" optional="false"/>
      </service>
  
      <service name="indexWorkEffortKeywords" engine="simple"
                  location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="indexWorkEffortKeywords">
          <description>Index the Keywords for a WorkEffort</description>
          <attribute name="workEffortId" type="String" mode="IN" optional="false"/>
          <attribute name="workEffortInstance" type="org.ofbiz.entity.GenericValue" mode="IN" optional="true"/>
      </service>
      <service name="createWorkEffortKeyword" default-entity-name="WorkEffortKeyword" engine="simple"
                  location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortKeyword" auth="true">
          <description>Create a Work Effort Keyword</description>
          <auto-attributes include="pk" mode="IN" optional="true"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="deleteWorkEffortKeyword" engine="simple"
                  location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteWorkEffortKeyword" auth="true">
          <description>Remove a Work Effort Keyword</description>
          <auto-attributes entity-name="WorkEffortKeyword" include="pk" mode="IN" optional="false"/>
      </service>
      <service name="createWorkEffortKeywords" default-entity-name="WorkEffortKeyword" engine="simple"
                  location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortKeywords" auth="true">
          <description>Create a Work Effort Keyword</description>
          <auto-attributes include="pk" mode="IN" optional="true"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="deleteWorkEffortKeywords" engine="simple"
                  location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteWorkEffortKeywords" auth="true">
          <description>Remove all Work Effort Keyword</description>
          <auto-attributes entity-name="WorkEffort" include="pk" mode="IN" optional="false"/>
      </service>
  
      <!-- Permission Services -->
      <service name="workEffortManagerPermission" engine="simple"
               location="component://workeffort/script/org/ofbiz/workeffort/permission/WorkEffortPermissionServices.xml" invoke="workEffortManagerPermission">
          <implements service="permissionInterface"/>
      </service>
      <service name="workEffortGenericPermission" engine="simple"
               location="component://workeffort/script/org/ofbiz/workeffort/permission/WorkEffortPermissionServices.xml" invoke="workEffortGenericPermission">
          <implements service="permissionInterface"/>
          <attribute name="workEffortId" mode="IN" type="String" optional="true"/>
          <attribute name="workEffortParentId" mode="IN" type="String" optional="true"/>
      </service>
      <service name="timesheetUpdatePermission" engine="simple"
               location="component://workeffort/script/org/ofbiz/workeffort/permission/WorkEffortPermissionServices.xml" invoke="timesheetUpdatePermission">
          <implements service="permissionInterface"/>
          <attribute name="workEffortId" mode="IN" type="String" optional="true"></attribute>
      </service>
  
      <!-- WorkEffort Skill Standard Services -->
      <service name="createWorkEffortSkillStandard" engine="simple" default-entity-name="WorkEffortSkillStandard"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortSkillStandard" auth="true">
          <description>Create WorkEffortSkillStandard</description>
          <auto-attributes mode="IN" include="pk" optional="false"/>
          <auto-attributes mode="IN" include="nonpk" optional="true"/>
      </service>
      <service name="updateWorkEffortSkillStandard" engine="simple" default-entity-name="WorkEffortSkillStandard"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="updateWorkEffortSkillStandard" auth="true">
          <description>Update WorkEffortSkillStandard</description>
          <auto-attributes mode="IN" include="pk" optional="false"/>
          <auto-attributes mode="IN" include="nonpk" optional="true"/>
      </service>
      <service name="deleteWorkEffortSkillStandard" engine="simple" default-entity-name="WorkEffortSkillStandard"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteWorkEffortSkillStandard" auth="true">
          <description>Delete WorkEffortSkillStandard</description>
          <auto-attributes mode="IN" include="pk" optional="false"/>
      </service>
  
      <!-- WorkEffort Contact Mech Services -->
      <service name="createWorkEffortContactMech" engine="simple"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortContactMech" auth="true">
          <description>Create WorkEffortContactMech; if contactMechId is not provided, a new contact mech is created (if partyId is set then the new contact mech is also associated to the party)</description>
          <permission-service service-name="workEffortGenericPermission" main-action="CREATE"/>
          <auto-attributes entity-name="WorkEffortContactMech" mode="IN" include="nonpk" optional="true"/>
          <auto-attributes entity-name="PartyContactMech" include="all" mode="IN" optional="true"/>
          <attribute name="workEffortId" mode="IN" type="String" optional="false"></attribute>
          <attribute name="contactMechTypeId" mode="IN" type="String" optional="true"></attribute>
          <attribute name="infoString" mode="IN" type="String" optional="true"></attribute>
          <attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="true"/>
          <attribute name="contactMechId" type="String" mode="INOUT" optional="true"/>
      </service>
      <service name="deleteWorkEffortContactMech" engine="simple" default-entity-name="WorkEffortContactMech"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteWorkEffortContactMech" auth="true">
          <description>Delete WorkEffortContactMech</description>
          <permission-service service-name="workEffortGenericPermission" main-action="DELETE"/>
          <auto-attributes mode="IN" include="pk" optional="false"/>
      </service>
  
      <!--WorkEffortInventoryProduced Services   -->
      <service name="createWorkEffortInventoryProduced" engine="simple" default-entity-name="WorkEffortInventoryProduced"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortInventoryProduced" auth="true">
          <description>Create WorkEffortInventoryProduced</description>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="false"/>
      </service>
      <service name="deleteWorkEffortInventoryProduced" engine="simple" default-entity-name="WorkEffortInventoryProduced"
              location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteWorkEffortInventoryProduced" auth="true">
          <description>Delete WorkEffortInventoryProduced</description>
          <auto-attributes mode="IN" include="pk" optional="false"/>
      </service>
  
      <!-- WorkEffort iCalendar Services -->
      <service name="createWorkEffortICalData" default-entity-name="WorkEffortIcalData" engine="entity-auto" invoke="create" auth="true">
          <description>Create WorkEffort iCalendar Data</description>
          <permission-service service-name="workEffortICalendarPermission" main-action="CREATE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="updateWorkEffortICalData" default-entity-name="WorkEffortIcalData" engine="entity-auto" invoke="update" auth="true">
          <description>Update WorkEffort iCalendar Data</description>
          <permission-service service-name="workEffortICalendarPermission" main-action="UPDATE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="deleteWorkEffortICalData" default-entity-name="WorkEffortIcalData" engine="entity-auto" invoke="delete" auth="true">
          <description>Delete WorkEffort iCalendar Data</description>
          <permission-service service-name="workEffortICalendarPermission" main-action="DELETE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
      </service>
      <service name="workEffortICalendarPermission" engine="simple"
               location="component://workeffort/script/org/ofbiz/workeffort/permission/WorkEffortPermissionServices.xml" invoke="workEffortICalendarPermission">
          <description>iCalendar Permission Check</description>
          <implements service="permissionInterface"/>
          <attribute type="String" mode="IN" name="workEffortId" optional="true"/>
      </service>
      <service name="getICalWorkEfforts" engine="simple" auth="false"
               location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="getICalWorkEfforts">
          <description>Get iCalendar Work Efforts</description>
          <!-- No permission checking - the servlet handles that -->
          <attribute type="String" mode="IN" name="workEffortId" optional="false"/>
          <attribute type="String" mode="IN" name="workEffortTypeId" optional="true"/>
          <attribute type="List" mode="OUT" name="workEfforts"/>
      </service>
      <service name="getPartyICalUrl" engine="simple" auth="false"
               location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="getPartyICalUrl">
          <description>Get Party iCalendar URL</description>
          <!-- No permission checking - the servlet handles that -->
          <attribute type="String" mode="IN" name="partyId" optional="false"/>
          <attribute type="String" mode="OUT" name="iCalUrl" optional="true"/>
      </service>
  
      <!-- WorkEffort Event Reminder Services -->
      <service name="createWorkEffortEventReminder" default-entity-name="WorkEffortEventReminder" engine="entity-auto" invoke="create" auth="true">
          <description>Create a WorkEffort Event Reminder</description>
          <permission-service service-name="workEffortGenericPermission" main-action="CREATE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
          <override name="sequenceId" mode="OUT"/>
      </service>
      <service name="updateWorkEffortEventReminder" default-entity-name="WorkEffortEventReminder" engine="entity-auto" invoke="update" auth="true">
          <description>Update a WorkEffort Event Reminder</description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="deleteWorkEffortEventReminder" default-entity-name="WorkEffortEventReminder" engine="entity-auto" invoke="delete" auth="true">
          <description>Delete a WorkEffort Event Reminder</description>
          <permission-service service-name="workEffortGenericPermission" main-action="DELETE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
      </service>
      <service name="processWorkEffortEventReminders" engine="java"
              location="org.ofbiz.workeffort.workeffort.WorkEffortServices" invoke="processWorkEffortEventReminders" auth="true">
          <description>Process work effort event reminders. This service is run by the job scheduler.</description>
      </service>
      <service name="processWorkEffortEventReminder" engine="java"
              location="org.ofbiz.workeffort.workeffort.WorkEffortServices" invoke="processWorkEffortEventReminder" auth="true">
          <description>Send a work effort event reminder</description>
          <attribute name="reminder" mode="IN" type="GenericValue"/>
          <attribute name="bodyParameters" mode="IN" type="Map"/>
      </service>
      <service name="migrateWorkEffortEventReminders" engine="java"
              location="org.ofbiz.workeffort.workeffort.WorkEffortServices" invoke="migrateWorkEffortEventReminders" auth="true">
          <description>Migrate work effort event reminders. Run this service to update work effort reminders.</description>
      </service>
  
      <!-- WorkEffort and Survey Services -->
      <service name="createWorkEffortSurveyAppl" engine="simple" default-entity-name="WorkEffortSurveyAppl"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortSurveyAppl" auth="true">
          <description>Create a WorkEffort Survey</description>
          <permission-service service-name="workEffortGenericPermission" main-action="CREATE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
          <override name="fromDate" optional="true"/>
      </service>
      <service name="updateWorkEffortSurveyAppl" default-entity-name="WorkEffortSurveyAppl" engine="simple"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="updateWorkEffortSurveyAppl" auth="true">
          <description>Update a WorkEffort Survey</description>
          <permission-service service-name="workEffortGenericPermission" main-action="UPDATE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
      </service>
      <service name="deleteWorkEffortSurveyAppl" default-entity-name="WorkEffortSurveyAppl" engine="simple"
          location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteWorkEffortSurveyAppl" auth="true">
          <description>Delete a WorkEffort Survey</description>
          <permission-service service-name="workEffortGenericPermission" main-action="DELETE"/>
          <auto-attributes include="pk" mode="IN" optional="false"/>
      </service>
  </services>