elioria-sst-x
    Preparing search index...

    Class InterventionExecutionWorkflow

    Hierarchy

    • WorkflowEntrypoint<Env, InterventionExecutionParams>
      • InterventionExecutionWorkflow
    Index
    • Parameters

      • ctx: ExecutionContext
      • env: Env

      Returns InterventionExecutionWorkflow

    • Generated

      Executes run.

      Parameters

      • event: WorkflowEvent<InterventionExecutionParams>

        The event value.

      • step: WorkflowStep

        The step value.

      Returns Promise<
          | {
              actionStatus: string;
              executionId: string;
              interventionStatus: string;
              interventionVersion: number;
              output: {
                  actionType: "TRAINING_RENEWAL"
                  | "EQUIPMENT_MAINTENANCE";
                  affectedEntityId: string;
                  affectedEntityType: "WORK_PERMIT" | "EQUIPMENT";
                  dueDate: string;
                  orderId: string;
                  orderStatus: "REQUESTED";
                  providerReceipt?: {
                      providerRef: string;
                      requestId: string;
                      validUntil: string;
                  };
                  subjectId: string;
              };
              status: string;
          }
          | {
              actionStatus?: undefined;
              executionId: string;
              interventionStatus: string;
              interventionVersion: number;
              output: CapabilityOutput;
              status: string;
          },
      >

      The function result.

      Objective: In module apps/agente/src/workflows/intervention-execution.ts, run run.

      Behavior: Async; accepts event and step; returns a value; invokes step.do; may throw.

      When the function cannot complete normally.