Page 1 of 1

Open Generated Document Summary

Posted: Tue Jul 16, 2019 9:05 am
by amithatle123
Hii,

Processmaker Community Version is 3.3.6

I have created one plugin and i want to open generated document summary through that plugin
I have create one php file and in that file i created one button when i click on that button i want to open that summary window
I tried to call this url:http://localhost/sysworkflow/en/neoclas ... ntsSummary
When i hit this url directly to the browser it works fine but when i hit through that button its gives me 503 service unavailable error.
Please help
Thank You

Re: Open Generated Document Summary

Posted: Thu Jul 18, 2019 8:46 pm
by amosbatto
You probably have to set the system variable for the case in your plugin code:
Code: Select all
$_SESSION['APPLICATION'] = 'XXXXXXXXXXXXXXXXXXXXXXXX'; //set to the case ID
$_SESSION['INDEX'] = 2;  //set to the delegation index of the case
$_SESSION['PROCESS'] = 'XXXXXXXXXXXXXXXXXXXXXXXXXX'; //set to the process ID
$_SESSION['TASK'] =  'XXXXXXXXXXXXXXXXXXXXXXXXXXXX';  //set to the task ID
//now call http://localhost/sysworkflow/en/neoclassic/cases/ajaxListener?action=generatedDocumentsSummary
Also remember that the logged in user needs Process Permissions to see the Output Documents.