Class BTAppointmentLoadOrCreate

java.lang.Object
overit.geocall.bl.BusinessTask<AppointmentLoadOrCreateEvent>
overit.geocallapp.wfm.scheduling.appointment.task.BTAppointmentLoadOrCreate
All Implemented Interfaces:
Serializable, Tool

Business task for loading or creating an appointment for a work order operation. This task provides a modern interface to replace the legacy pattern of caricaOCreaAppuntamento used in DATSchedulazioneOdl.

The task:

  • Searches for the last appointment for the work order operation using DATSchedulazioneOdlPda.loadUltimoAppuntamento(overit.geocall.util.HashGetter, overit.geocall.sql.PooledConnection)
  • If an OPEN appointment exists, reuses it
  • If a SCHEDULED appointment exists:
    • If multiple assignment is disabled, throws an error (C270_1379)
    • If multiple assignment is enabled, creates a new appointment
  • If no appointment exists, creates a new one using DATCreaAppuntamentoFittizioOdl
  • Loads the complete appointment data using DAIncollaAttivita.loadAttivita(java.lang.Long)
  • Returns the appointment ID and data for use with legacy scheduling code
Since:
22.0
See Also:
GCApi:
task