• Creates a new workflow with the given name. Returns the id of the newly created Workflow.

    Parameters

    • name: string
    • status: WorkflowStatus
    • subject: WorkflowSubject
    • triggers: Trigger[]
    • graph: WorkflowGraph

    Returns Promise<{
        data: string;
    }>