import type { IActivityHandler } from "@vertigis/workflow"; /** An interface that defines the inputs of the activity. */ interface SampleInputs { /** * @displayName Input 1 * @description The first input to the activity. * @required */ input1: string; /** * @displayName Input 2 * @description The second input to the activity. */ input2?: number; } /** An interface that defines the outputs of the activity. */ interface SampleOutputs { /** * @description The result of the activity. */ result: string; } /** * @displayName Sample * @category Custom Activities * @description sample for first prod-activity */ export default class SampleActivity implements IActivityHandler { /** Perform the execution logic of the activity. */ execute(inputs: SampleInputs): SampleOutputs { return { result: `input1: ${inputs.input1}, input2: ${ inputs.input2 || "undefined" }`, }; } }