src/Zenaton/v1/Client.php
public function findWorkflow($workflowName, $customId)
    {
        $params = [
            static::ATTR_ID => $customId,
            static::ATTR_NAME => $workflowName,
            static::ATTR_PROG => static::PROG,
        ];

        $response = $this->http->get($this->getInstanceWebsiteUrl($params));
        if ($response->code === 404) {
            return null;
        }

        if ($response->hasErrors()) {
            throw ApiException::unexpectedStatusCode($response->code);
        }

        return $this->properties->getObjectFromNameAndProperties($response->body->data->name, $this->serializer->decode($response->body->data->properties));
    }
public function findWorkflow($workflowName, $customId)
    {
        $params = [
            static::ATTR_ID => $customId,
            static::ATTR_NAME => $workflowName,
            static::ATTR_PROG => static::PROG,
        ];

        $response = $this->http->get($this->getInstanceWebsiteUrl($params));
        if ($response->code === 404) {
            return null;
        }

        if ($response->hasErrors()) {
            throw ApiException::unexpectedStatusCode($response->code);
        }

        return $this->properties->getObjectFromNameAndProperties($response->body->data->name, $this->serializer->decode($response->body->data->properties));
    }
Find a workflow instance.

@param string $workflowName Workflow class name
@param string $customId     Provided custom id

@return null|WorkflowInterface