Class AppointmentLoadOrCreateEvent


public class AppointmentLoadOrCreateEvent extends SimpleBusinessEvent<AppointmentLoadOrCreateInput,AppointmentLoadOrCreateOutput>
Event for loading or creating an appointment for a work order operation. This event provides a modern interface to replace the legacy pattern of caricaOCreaAppuntamento used in DATSchedulazioneOdl.

The event:

  • Searches for the last appointment for the work order operation
  • If an OPEN appointment exists, reuses it
  • If a SCHEDULED appointment exists:
    • If multiple assignment is disabled, throws an error
    • If multiple assignment is enabled, creates a new appointment
  • If no appointment exists, creates a new one using DATCreaAppuntamentoFittizioOdl
  • Returns the appointment ID and complete data for use with legacy scheduling code

This event is designed to be used by both immediate scheduling and manual scheduling requests, providing a consistent interface for appointment management.

Since:
22.0
GCApi:
event
Reactors:
BTAppointmentLoadOrCreate(0)
No Spouts
  • Constructor Details

    • AppointmentLoadOrCreateEvent

      public AppointmentLoadOrCreateEvent(AppointmentLoadOrCreateInput input)
      Creates a new appointment load or create event.
      Parameters:
      input - the input containing work order operation ID and optional data