Import a Workflow

Import a Workflow into your Catalytic team using a .catalytic file, created by the Export Workflow method or via the Catalytic WebApp. This method returns the newly created Workflow.

Method Signature

import(string $path): Workflow


$importFileSplFileObjectPath to the Workflow export file to use to create the Workflow
$passwordstringOptional Password used to secure the exported file
returnsWorkflowThe imported Workflow



 * This example demonstrates importing a Workflow from a 
 * `.catalytic` Workflow export file.

require_once(__DIR__ . '/vendor/autoload.php');

use Catalytic\SDK\CatalyticClient;

$catalytic = new CatalyticClient();
$workflow = $catalytic->workflows()->import("/path/to/export/file.catalytic");