Class AppointmentLoadOrCreateEvent
java.lang.Object
overit.geocall.bl.GenericEvent<AppointmentLoadOrCreateOutput>
overit.geocall.bl.BusinessEvent<AppointmentLoadOrCreateOutput>
overit.geocall.bl.SimpleBusinessEvent<AppointmentLoadOrCreateInput,AppointmentLoadOrCreateOutput>
overit.geocallapp.wfm.scheduling.appointment.event.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:
- No Spouts
BTAppointmentLoadOrCreate(0)-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.bl.GenericEvent
GenericEvent.Step<O> -
Field Summary
Fields inherited from class overit.geocall.bl.SimpleBusinessEvent
inputFields inherited from class overit.geocall.bl.GenericEvent
executorService, journal, streamJournal -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new appointment load or create event. -
Method Summary
Methods inherited from class overit.geocall.bl.SimpleBusinessEvent
getInputMethods inherited from class overit.geocall.bl.BusinessEvent
doLaunchMethods inherited from class overit.geocall.bl.GenericEvent
clearEvents, defineInterruptor, defineResult, getJournal, getResult, getSpouts, getStreamJournal, isInternal, launch, launch, launchAsync, launchAsync, register, registerSpouts
-
Constructor Details
-
AppointmentLoadOrCreateEvent
Creates a new appointment load or create event.- Parameters:
input- the input containing work order operation ID and optional data
-