Class BTTeamPreProcessAssignment
java.lang.Object
overit.geocall.bl.BusinessTask<TeamPreProcessAssignmentEvent>
overit.geocallapp.wfm.core.bl.schedule.team.task.BTTeamPreProcessAssignment
- All Implemented Interfaces:
Serializable,Tool
@Event(TeamPreProcessAssignmentEvent.class)
public class BTTeamPreProcessAssignment
extends BusinessTask<TeamPreProcessAssignmentEvent>
Business task in order to pre-process the schedulation of an activity to a resource.
When the
When the
TeamPreProcessAssignmentEvent is launched
the BT notices the call and pre-process the schedulation basing on the event's input. - Since:
- 18.0
- See Also:
- GCApi:
- task
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashGetterprotected overit.geocallapp.wfm.scheduler.util.LinearAssetAddress.Directionprotected Longprotected Dateprotected overit.geocallapp.wfm.scheduler.oss.cache.OssCacheprotected overit.geocallapp.wfm.util.wfmtasklog.WfmTaskLogprotected SchedulingCacheprotected overit.geocallapp.wfm.schedulazione.cristallizzazione.DARCalendarioUtentiAgendaprotected overit.geocallapp.wfm.schedulazione.manuale.anteprima.SquadraAnteprimaprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCaposquadra(HashGetter hgRcut, Long simulationId, int posNuovaAttivita, PooledConnection conn) protected voidaddResources(Long simulationId, LongSet lsIdAuteAssSquadra, PooledConnection conn) protected voidaddRisorsaSquadra(Long idAute, Long simulationId, Date dtRiferimento, PooledConnection conn) protected voidbody(TeamPreProcessAssignmentEvent teamPreProcessAssignmentEvent, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.calcolaIncollaAttivita(org.locationtech.jts.geom.Coordinate coordDepositoRisorsa, HashGetter hgRcuaPrec, HashGetter hgRcuaDest, HashGetter hgRcut, PooledConnection conn) protected voidcalcolaOraArrivoRisorsa(overit.geocallapp.wfm.schedulazione.manuale.anteprima.RisorsaAnteprima r, Date oraAttivita, int posAttivita, PooledConnection conn) protected voidcancelActivity(ActivitySchedulingContext schedulingContext, Long scheduling, DBView resourceActivities, int i, PooledConnection conn) protected booleancheckRisorseSquadra(LongSet lsIdAuteAssSquadra) protected ActivitySchedulingContextgetActivitySchedulingContext(HashGetter pasteParams) protected intgetCardinality(HashGetter pasteParams) protected intgetNewActivityPosition(overit.geocallapp.wfm.schedulazione.manuale.anteprima.RisorsaAnteprima r, Date activityTime) protected intgetNewPosition(ActivitySchedulingContext schedulingContext, DBView resourceActivities) protected HashGettergetNextScheduling(int currRow, overit.geocallapp.wfm.schedulazione.manuale.anteprima.RisorsaAnteprima r) protected HashGettergetPreviousScheduling(int currRow, overit.geocallapp.wfm.schedulazione.manuale.anteprima.RisorsaAnteprima r) protected DBViewgetResourceActivities(Long workshift, Long simulation, HashGetter schedulingKey, WorkShiftCache cache, PooledConnection conn) protected HashGettergetSchedulingKey(Long workshift, Long simulation) protected HashGetterloadRcutUtente(Long idAute, Date dtOraRiferimento, PooledConnection conn) protected DBViewloadRisorse(boolean bMostraTutte, HashGetter pasteParams, HashGetter activity, Date workshiftDate, PooledConnection conn) protected LongSetloadTeamAssistants(DBView resources, DBView team, int teamCardinality) protected intrefreshAfterActivityCancellation(HashGetter pasteParams, DBView resourceActivities, ActivitySchedulingContext schedulingContext, int newActivityPosition) protected voidremoveCrewShellsAndMembersFromDBView(DBView resources, Date compositionDay) protected voidsetUseOraLimite(HashGetter pasteParams) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
useOraLimite
protected boolean useOraLimite -
oraLimite
-
team
protected overit.geocallapp.wfm.schedulazione.manuale.anteprima.SquadraAnteprima team -
operationCenterId
-
activity
-
ossCache
protected transient overit.geocallapp.wfm.scheduler.oss.cache.OssCache ossCache -
schedulingCache
-
pasteLog
protected overit.geocallapp.wfm.util.wfmtasklog.WfmTaskLog pasteLog -
direction
protected overit.geocallapp.wfm.scheduler.util.LinearAssetAddress.Direction direction -
schedulingDA
protected overit.geocallapp.wfm.schedulazione.cristallizzazione.DARCalendarioUtentiAgenda schedulingDA
-
-
Constructor Details
-
BTTeamPreProcessAssignment
public BTTeamPreProcessAssignment()
-
-
Method Details
-
body
protected void body(TeamPreProcessAssignmentEvent teamPreProcessAssignmentEvent, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<TeamPreProcessAssignmentEvent>- Parameters:
teamPreProcessAssignmentEvent- the object upon which the task will works onpoolKit- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
getActivitySchedulingContext
-
refreshAfterActivityCancellation
protected int refreshAfterActivityCancellation(HashGetter pasteParams, DBView resourceActivities, ActivitySchedulingContext schedulingContext, int newActivityPosition) -
cancelActivity
protected void cancelActivity(ActivitySchedulingContext schedulingContext, Long scheduling, DBView resourceActivities, int i, PooledConnection conn) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
addCaposquadra
protected void addCaposquadra(HashGetter hgRcut, Long simulationId, int posNuovaAttivita, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
checkRisorseSquadra
-
addRisorsaSquadra
protected void addRisorsaSquadra(Long idAute, Long simulationId, Date dtRiferimento, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadRcutUtente
protected HashGetter loadRcutUtente(Long idAute, Date dtOraRiferimento, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
calcolaOraArrivoRisorsa
protected void calcolaOraArrivoRisorsa(overit.geocallapp.wfm.schedulazione.manuale.anteprima.RisorsaAnteprima r, Date oraAttivita, int posAttivita, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getNewActivityPosition
protected int getNewActivityPosition(overit.geocallapp.wfm.schedulazione.manuale.anteprima.RisorsaAnteprima r, Date activityTime) -
getPreviousScheduling
protected HashGetter getPreviousScheduling(int currRow, overit.geocallapp.wfm.schedulazione.manuale.anteprima.RisorsaAnteprima r) -
getNextScheduling
protected HashGetter getNextScheduling(int currRow, overit.geocallapp.wfm.schedulazione.manuale.anteprima.RisorsaAnteprima r) -
calcolaIncollaAttivita
public HashGetter calcolaIncollaAttivita(org.locationtech.jts.geom.Coordinate coordDepositoRisorsa, HashGetter hgRcuaPrec, HashGetter hgRcuaDest, HashGetter hgRcut, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadTeamAssistants
-
loadRisorse
protected DBView loadRisorse(boolean bMostraTutte, HashGetter pasteParams, HashGetter activity, Date workshiftDate, PooledConnection conn) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
setUseOraLimite
-
removeCrewShellsAndMembersFromDBView
protected void removeCrewShellsAndMembersFromDBView(DBView resources, Date compositionDay) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getCardinality
-
getSchedulingKey
-
getResourceActivities
protected DBView getResourceActivities(Long workshift, Long simulation, HashGetter schedulingKey, WorkShiftCache cache, PooledConnection conn) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getNewPosition
protected int getNewPosition(ActivitySchedulingContext schedulingContext, DBView resourceActivities) -
addResources
protected void addResources(Long simulationId, LongSet lsIdAuteAssSquadra, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-