PHP code example of xunto / alfresco-control
1. Go to this page and download the library: Download xunto/alfresco-control library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xunto / alfresco-control example snippets
$alfresco = Alfresco::create('guzzle', [
'host' => '%host%',
'login' => '%login%',
'password' => '%password%'
]);
$processManager = $alfresco->getProcessManager();
$process = $processManager->createProcess('process_definition_key', '%variables:array%', '%items:array%');
$id = $process->getId();
$process = $processManager->findProcess($id);
$process->getId();