Class WorkEffortServices


  • public class WorkEffortServices
    extends java.lang.Object
    WorkEffortServices - WorkEffort related Services
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • WorkEffortServices

        public WorkEffortServices()
    • Method Detail

      • getWorkEffortAssignedEventsForRole

        public static java.util.Map<java.lang.String,​java.lang.Object> getWorkEffortAssignedEventsForRole​(DispatchContext ctx,
                                                                                                                java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • getWorkEffortAssignedEventsForRoleOfAllParties

        public static java.util.Map<java.lang.String,​java.lang.Object> getWorkEffortAssignedEventsForRoleOfAllParties​(DispatchContext ctx,
                                                                                                                            java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • getWorkEffortAssignedTasks

        public static java.util.Map<java.lang.String,​java.lang.Object> getWorkEffortAssignedTasks​(DispatchContext ctx,
                                                                                                        java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • getWorkEffortAssignedActivities

        public static java.util.Map<java.lang.String,​java.lang.Object> getWorkEffortAssignedActivities​(DispatchContext ctx,
                                                                                                             java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • getWorkEffortAssignedActivitiesByRole

        public static java.util.Map<java.lang.String,​java.lang.Object> getWorkEffortAssignedActivitiesByRole​(DispatchContext ctx,
                                                                                                                   java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • getWorkEffortAssignedActivitiesByGroup

        public static java.util.Map<java.lang.String,​java.lang.Object> getWorkEffortAssignedActivitiesByGroup​(DispatchContext ctx,
                                                                                                                    java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • getWorkEffort

        public static java.util.Map<java.lang.String,​java.lang.Object> getWorkEffort​(DispatchContext ctx,
                                                                                           java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • getWorkEffortEventsByPeriod

        public static java.util.Map<java.lang.String,​java.lang.Object> getWorkEffortEventsByPeriod​(DispatchContext ctx,
                                                                                                         java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Get Work Efforts by period.

        This method takes the following parameters:

        • start - TimeStamp (Period start date/time)
        • numPeriods - Integer
        • periodType - Integer (see java.util.Calendar)
        • eventStatus - String
        • partyId - String
        • partyIds - List
        • facilityId - String
        • fixedAssetId - String
        • filterOutCanceledEvents - Boolean
        • entityExprList - List

        The method will find all matching Work Effort events and return them as a List called periods - one List element per period. It also returns a maxConcurrentEntries Integer - which indicates the maximum number of Work Efforts found in one period.

        Each periods list element is a Map containing the following key/value pairs:

        • start - TimeStamp (Period start date/time)
        • end - TimeStamp (Period end date/time)
        • calendarEntries - List of Maps. Each Map contains the following key/value pairs
          • workEffort - GenericValue
          • periodSpan - Integer (Number of periods this Work Effort spans)
          • startOfPeriod - Boolean (true if this is the first occurrence in the period range)
      • getProductManufacturingSummaryByFacility

        public static java.util.Map<java.lang.String,​java.lang.Object> getProductManufacturingSummaryByFacility​(DispatchContext ctx,
                                                                                                                      java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • processWorkEffortEventReminders

        public static java.util.Map<java.lang.String,​java.lang.Object> processWorkEffortEventReminders​(DispatchContext ctx,
                                                                                                             java.util.Map<java.lang.String,​? extends java.lang.Object> context)
        Process work effort event reminders. This service is used by the job scheduler.
        Parameters:
        ctx - the dispatch context
        context - the context
        Returns:
        returns the result of the service execution
      • processWorkEffortEventReminder

        public static java.util.Map<java.lang.String,​java.lang.Object> processWorkEffortEventReminder​(DispatchContext dctx,
                                                                                                            java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • removeDuplicateWorkEfforts

        public static java.util.Map<java.lang.String,​java.lang.Object> removeDuplicateWorkEfforts​(DispatchContext ctx,
                                                                                                        java.util.Map<java.lang.String,​? extends java.lang.Object> context)