class WorkflowDefinitionImporter (View source)

Workflow definition import-specific logic.

WorkflowDefinitionExporter.

Methods

public
getImportedWorkflows($name = null)

Generates an array of WorkflowTemplate Objects of all uploaded workflows.

public
array
parseYAMLImport(string $source)

Handles finding and parsing YAML input as a string or from the contents of a file.

public
importWorkflowDefinitionFromYAML($filepath)

Import WorkflowDefinition record from exported YML definition

Details

WorkflowTemplate getImportedWorkflows($name = null)

Generates an array of WorkflowTemplate Objects of all uploaded workflows.

Parameters

$name

Return Value

WorkflowTemplate

$template | array $importedDefs

array parseYAMLImport(string $source)

Handles finding and parsing YAML input as a string or from the contents of a file.

Parameters

string $source

YAML as a string or a filename

Return Value

array

See also

addYAMLConfigFile() on {@link SS_ConfigManifest} from where this logic was taken and adapted.

WorkflowDefinition importWorkflowDefinitionFromYAML($filepath)

Import WorkflowDefinition record from exported YML definition

Parameters

$filepath

Return Value

WorkflowDefinition