public function runWorkflow(int $workflowId, array $convos): void
    {
        Assert::notEmpty(
            $convos,
            'Conversations cannot be empty'
        );

        $conversations = new RunWorkflowRequest($convos);

        $uri = sprintf(self::RUN_WORKFLOW_URL, $workflowId);

        foreach ($conversations->getBatch() as $batch) {
            $this->restClient->createResource($batch, $uri);
        }
    }
public function runWorkflow(int $workflowId, array $convos): void
    {
        Assert::notEmpty(
            $convos,
            'Conversations cannot be empty'
        );

        $conversations = new RunWorkflowRequest($convos);

        $uri = sprintf(self::RUN_WORKFLOW_URL, $workflowId);

        foreach ($conversations->getBatch() as $batch) {
            $this->restClient->createResource($batch, $uri);
        }
    }
public function runWorkflow ( int $ workflowId , array $ convos ) : void { Assert :: notEmpty ( $ convos , 'Conversations cannot be empty' ) ; $ conversations = new RunWorkflowRequest ( $ convos ) ; $ uri = sprintf ( self :: RUN_WORKFLOW_URL , $ workflowId ) ; foreach ( $ conversations -> getBatch ( ) as $ batch ) { $ this -> restClient -> createResource ( $ batch , $ uri ) ; } }
Run a manual workflow on a list of conversations.

@param int   $workflowId
@param array $convos
Run a manual workflow on a list of conversations .