Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
User avatar
By ericopro
Hi everyone!

I am trying to implement some processes with processmaker, and I would like to know if is possible to create a process summary when the process finishes.
This summary should be like: "who started the process?", "who approve/dissapprove the request)"...

Thank you all! :D
User avatar
By amosbatto
You can create an Output Document and set it as the final step in the final task in the process.
Give the users (who need access to this summary) Process Permissions to view the Output Document. They can see it by opening the completed case and going to Information > Generated Documents in the menu. They can also see it by going Home > Documents if they have the PM_FOLDERS_VIEW permission in their roles. If they didn't participate in the case and you need them to be able to find the case, then give them the PM_ALLCASES permission in their roles, so they find the case by going to Home > Advanced Search.

Another way to do it is email the summary to users who need it.

To get who started the current case, you can create this trigger:
Code: Select all
$c = new \Cases()
$aCaseInfo = $c->loadCase(@@APPLICATION);
$aUserInfo = userInfo( $aCaseInfo['APP_INIT_USER'] );
@@caseStarter = $aUserInfo['firstname'].' '.$aUserInfo['lastname'];
See: ... Case.28.29
Set this trigger to fire before the Output Document step or before you call PMFSendMessage() in a trigger or before you send out a notification when routing to the next task.

Then in the template of your Output Document or Email, add this line:
Code: Select all
Case started by: @#caseStarter

Hi, Is there any way to show my custom column only[…]

Send for clarification

Hi, I know this is an old post but i could not fin[…]

add dropdown to search process

Please replay if there is any solution!!!!

Amosbatto, is down.

Hi Amos, I appreciate you setting up a tips and t[…]