/** * Get all models in the instance * @paramincludePermissions Define is the permissions for the current user should be attached */ awaitWorkflowClient.getAllModels(true);
/** * Get details for single workflow model. Includes information about instances of the model. * @paramworkflowAlias Defined in the manifest, under `mappings` */ awaitWorkflowClient.getModelDetails(WORKFLOW_ALIAS);
/** * Get details for single instance (i.e. an execution) of a workflow model * @paramworkflowAlias Defined in the manifest, under `mappings` * @paraminstanceId Unique UUID that identifies a single instance of the workflow */ awaitWorkflowClient.getInstance(WORKFLOW_ALIAS, MODEL_INSTANCE_ID);
/** * Trigger a manual instance of the workflow model (i.e. execute it once, manually) * @paramworkflowAlias Defined in the manifest, under `mappings` * @paramvariables Key-pair set of inputs for the start node of the workflow */ awaitWorkflowClient.startModel(WORKFLOW_ALIAS, { exampleInput:1000 });
Namespace
Utilities for helping your app interact with Workflows.
Example