Skip to main content
Module

x/live/deps.ts>WorkflowContext#callActivity

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Very Popular
Go to Latest
method WorkflowContext.prototype.callActivity
Re-export
import { WorkflowContext } from "https://deno.land/x/live@0.36.7/deps.ts";

Executes the activity for the given context and args.

Type Parameters

optional
TArgs extends Arg = Arg
optional
TResult = unknown

Parameters

activity: Activity<TArgs, TResult>

the activity that should be executed

...input: [...TArgs]

the activity args (optionally)

Returns

ScheduleActivityCommand<TArgs, TResult>