Class WorkEffortServices
java.lang.Object
org.apache.ofbiz.workeffort.workeffort.WorkEffortServices
WorkEffortServices - WorkEffort related Services
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetProductManufacturingSummaryByFacility
(DispatchContext ctx, Map<String, ? extends Object> context) getWorkEffort
(DispatchContext ctx, Map<String, ? extends Object> context) getWorkEffortAssignedActivities
(DispatchContext ctx, Map<String, ? extends Object> context) getWorkEffortAssignedActivitiesByGroup
(DispatchContext ctx, Map<String, ? extends Object> context) getWorkEffortAssignedActivitiesByRole
(DispatchContext ctx, Map<String, ? extends Object> context) getWorkEffortAssignedEventsForRole
(DispatchContext ctx, Map<String, ? extends Object> context) getWorkEffortAssignedEventsForRoleOfAllParties
(DispatchContext ctx, Map<String, ? extends Object> context) getWorkEffortAssignedTasks
(DispatchContext ctx, Map<String, ? extends Object> context) getWorkEffortEventsByPeriod
(DispatchContext ctx, Map<String, ? extends Object> context) Get Work Efforts by period.processWorkEffortEventReminder
(DispatchContext dctx, Map<String, ? extends Object> context) processWorkEffortEventReminders
(DispatchContext ctx, Map<String, ? extends Object> context) Process work effort event reminders.removeDuplicateWorkEfforts
(DispatchContext ctx, Map<String, ? extends Object> context)
-
Constructor Details
-
WorkEffortServices
public WorkEffortServices()
-
-
Method Details
-
getWorkEffortAssignedEventsForRole
-
getWorkEffortAssignedEventsForRoleOfAllParties
-
getWorkEffortAssignedTasks
-
getWorkEffortAssignedActivities
-
getWorkEffortAssignedActivitiesByRole
-
getWorkEffortAssignedActivitiesByGroup
-
getWorkEffort
-
getWorkEffortEventsByPeriod
public static Map<String,Object> getWorkEffortEventsByPeriod(DispatchContext ctx, Map<String, ? extends 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
-
processWorkEffortEventReminders
public static Map<String,Object> processWorkEffortEventReminders(DispatchContext ctx, Map<String, ? extends Object> context) Process work effort event reminders. This service is used by the job scheduler.- Parameters:
ctx
- the dispatch contextcontext
- the context- Returns:
- returns the result of the service execution
-
processWorkEffortEventReminder
-
removeDuplicateWorkEfforts
-