Workflow using Rest API
Posted: Wed Aug 07, 2019 6:02 am
Can we create flows using rest API, without accessing Design Tab ?
workflow simplified
https://forum.processmaker.com/
function redirectToDesigner($oToken) {
global $pmServer, $pmWorkspace;
$processId = '3488462315d48989d598bc8012454964';
$url = "$pmServer/api/1.0/$pmWorkspace/extrarest/session-id";
$oRet = pmRestRequest('GET', $url, null, $oToken->access_token);
if ($oRet->status==200) {
$redirectUrl = "http://localhost:3310/sysworkflow/en/neoclassic/designer?prj_uid=$processId&sid=" .
$oRet->response;
header("location: $redirectUrl");
}
}