Class ActivityPasteInput
java.lang.Object
overit.geocallapp.wfm.scheduling.paste.event.ActivityPasteInput
- All Implemented Interfaces:
Serializable
Input for the activity paste event.
This event handles the complete process of:
- Loading or creating an appointment for a work order operation
- Creating or reusing an agenda
- Scheduling the activity to a resource or team
- Since:
- 22.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the activity data (optional).Gets the assistant workshift IDs (for team scheduling).Gets whether this is an encapsulated call.Gets the foreman/resource workshift ID.Gets whether to skip user questions/confirmations.Gets the operation center ID.Gets whether to paste before the reference activity.Gets the reference activity ID for positioning.Gets the scheduling model ID.Gets the team start time (for team scheduling).Gets the time limit for real-time scheduling.Gets whether to use time limit for real-time scheduling.Gets the work order operation ID.voidsetActivityData(HashGetter activityData) Sets the activity data.voidsetAssistantWorkshiftIds(LongSet assistantWorkshiftIds) Sets the assistant workshift IDs.voidsetEncapsulatedCall(Boolean encapsulatedCall) Sets whether this is an encapsulated call.voidsetForemanWorkshiftId(Long foremanWorkshiftId) Sets the foreman/resource workshift ID.voidsetNoQuestions(Boolean noQuestions) Sets whether to skip user questions/confirmations.voidsetOperationCenterId(Long operationCenterId) Sets the operation center ID.voidsetPasteBefore(Boolean pasteBefore) Sets whether to paste before the reference activity.voidsetPasteReferenceActivityId(Long pasteReferenceActivityId) Sets the reference activity ID for positioning.voidsetSchedulingModelId(Long schedulingModelId) Sets the scheduling model ID.voidsetTeamStartTime(Date teamStartTime) Sets the team start time.voidsetTimeLimit(Date timeLimit) Sets the time limit for real-time scheduling.voidsetUseTimeLimit(Boolean useTimeLimit) Sets whether to use time limit for real-time scheduling.voidsetWorkOrderOperationId(Long workOrderOperationId) Sets the work order operation ID.
-
Constructor Details
-
ActivityPasteInput
public ActivityPasteInput()
-
-
Method Details
-
getWorkOrderOperationId
Gets the work order operation ID.- Returns:
- the work order operation ID
-
setWorkOrderOperationId
Sets the work order operation ID.- Parameters:
workOrderOperationId- the work order operation ID to set
-
getActivityData
Gets the activity data (optional). If provided, this HashGetter contains the complete work order operation data and will be used to create the appointment. If not provided, the data will be loaded from the database using the workOrderOperationId.- Returns:
- the activity data
-
setActivityData
Sets the activity data.- Parameters:
activityData- the activity data to set
-
getForemanWorkshiftId
Gets the foreman/resource workshift ID.- Returns:
- the foreman workshift ID
-
setForemanWorkshiftId
Sets the foreman/resource workshift ID.- Parameters:
foremanWorkshiftId- the foreman workshift ID to set
-
getAssistantWorkshiftIds
Gets the assistant workshift IDs (for team scheduling). If null or empty, this is a single resource scheduling.- Returns:
- the assistant workshift IDs
-
setAssistantWorkshiftIds
Sets the assistant workshift IDs.- Parameters:
assistantWorkshiftIds- the assistant workshift IDs to set
-
getSchedulingModelId
Gets the scheduling model ID. If null, the activity will be scheduled on the real plan.- Returns:
- the scheduling model ID
-
setSchedulingModelId
Sets the scheduling model ID.- Parameters:
schedulingModelId- the scheduling model ID to set
-
getOperationCenterId
Gets the operation center ID.- Returns:
- the operation center ID
-
setOperationCenterId
Sets the operation center ID.- Parameters:
operationCenterId- the operation center ID to set
-
getUseTimeLimit
Gets whether to use time limit for real-time scheduling.- Returns:
- true if time limit should be used
-
setUseTimeLimit
Sets whether to use time limit for real-time scheduling.- Parameters:
useTimeLimit- true to use time limit
-
getTimeLimit
Gets the time limit for real-time scheduling. This is typically the current time plus a configured delta.- Returns:
- the time limit
-
setTimeLimit
Sets the time limit for real-time scheduling.- Parameters:
timeLimit- the time limit to set
-
getTeamStartTime
Gets the team start time (for team scheduling). This ensures all team members start together when the last one arrives.- Returns:
- the team start time
-
setTeamStartTime
Sets the team start time.- Parameters:
teamStartTime- the team start time to set
-
getPasteBefore
Gets whether to paste before the reference activity. If true, paste before; if false, paste after.- Returns:
- true to paste before
-
setPasteBefore
Sets whether to paste before the reference activity.- Parameters:
pasteBefore- true to paste before
-
getPasteReferenceActivityId
Gets the reference activity ID for positioning. If provided, the new activity will be pasted before or after this activity.- Returns:
- the reference activity ID
-
setPasteReferenceActivityId
Sets the reference activity ID for positioning.- Parameters:
pasteReferenceActivityId- the reference activity ID to set
-
getNoQuestions
Gets whether to skip user questions/confirmations.- Returns:
- true to skip questions
-
setNoQuestions
Sets whether to skip user questions/confirmations.- Parameters:
noQuestions- true to skip questions
-
getEncapsulatedCall
Gets whether this is an encapsulated call. When true, certain validations may be skipped.- Returns:
- true if encapsulated call
-
setEncapsulatedCall
Sets whether this is an encapsulated call.- Parameters:
encapsulatedCall- true if encapsulated call
-