/** * @swagger * components: * schemas: * CronjobEvent: * description: Describes a single Cronjob. Used as payload for the CronjobEventMessage. * type: object * required: * - startEventId * - processModelId * - cronjob * properties: * startEventId: * description: The ID of the StartEvent that contains the cronjob. * type: string * processModelId: * description: The ID of the ProcessModel that contains the cronjob. * type: string * cronjob: * description: The crontab that describs the cronjob. * type: string */ /** * Describes a single Cronjob. Used as payload for the CronjobEventMessage. */ export type CronjobEvent = { startEventId: string; processModelId: string; cronjob: string; }; /** * @swagger * components: * schemas: * CronjobEventMessage: * description: A message that is sent when a cronjob related event was triggered. * type: object * required: * - processDefinitionId * - cronjobs * properties: * processDefinitionId: * description: The ID of the ProcessDefinition that contains the cronjob. * type: string * cronjobs: * description: The cronjobs that were triggered. * type: array * items: * $ref: '#/components/schemas/CronjobEvent' */ /** * Encapsulates the message that is sent when a cronjob related event was triggered. */ export type CronjobEventMessage = { processDefinitionId: string; cronjobs: Array; };