class WorkflowContextRe-exportimport { WorkflowContext } from "https://deno.land/x/live@1.75.5/deps.ts"; WorkflowContext is used for providing api access to the workflow engine. ConstructorsnewWorkflowContext(execution: WorkflowExecution<Arg, unknown, TMetadata>)Type ParametersoptionalTMetadata extends Metadata = MetadataPropertiesprivaterand: () => numberMethods_experimentalWaitAll(commands: AwaitableCommands[]): WaitAllCommandUNDER TEST, wait all has a bug where the items where delivered out of the order. Wait until all commands has completed and return an array of results. callActivity<TArgs extends Arg = Arg, TResult = unknown>(activity: Activity<TArgs, TResult>, ...input: [...TArgs]): ScheduleActivityCommand<TArgs, TResult>Executes the activity for the given context and args. callLocalActivity<TResult = unknown>(activity: () => PromiseOrValue<TResult>): LocalActivityCommand<TResult>Executes the activity for the given context and args. fetch(url: string,options?: { body?: string; headers?: Record<string, string>; method?: string; },format?: InvokeHttpEndpointCommand["responseFormat"],): InvokeHttpEndpointCommandExecutes the http request for the given context and args. log(message: any, ...optionalParams: any[]): LocalActivityCommandLogs at least once with additional workflow information random(): numberReturns a random consistent with the given workflow execution sendSignal(executionId: string,_signal: string,payload: unknown,opts?: ClientOptions,): LocalActivityCommandSend a signal for the given workflow execution sleep(sleepMs: number): SleepCommandstop the current workflow execution and sleep the given miliseconds time. sleepUntil(until: Date): SleepCommandstops the current workflow execution and sleep until the given date. startExecution(exec: WorkflowExecutionBase, opts?: ClientOptions): LocalActivityCommandStart a new workflow execution waitAny(commands: AwaitableCommands[]): WaitAnyCommandWait until any of commands has completed and return its result. waitForSignal(signal: string): WaitForSignalCommandwaitForSignal wait for the given signal to be occurred.