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
Parameters
Parameter | Type | Description |
---|---|---|
$importFile | SplFileObject | Path to the Workflow export file to use to create the Workflow |
$password | string | Optional Password used to secure the exported file |
returns | Workflow | The imported Workflow |
Example
<?php
/*
* 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");
Updated over 2 years ago