class WorkflowDefinitionImporter (View source)

Workflow definition import-specific logic.

WorkflowDefinitionExporter.

Methods

public
getImportedWorkflows(string $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.

Details

WorkflowTemplate|WorkflowTemplate[] getImportedWorkflows(string $name = null)

Generates an array of WorkflowTemplate Objects of all uploaded workflows.

Parameters

string $name

. If set, a single-value array comprising a WorkflowTemplate object who's first constructor param matches $name is returned.

Return Value

WorkflowTemplate|WorkflowTemplate[]

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.