Share ideas, ask questions, and get feedback about developing for ProcessMaker
Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
#785865
If you are using the community edition, you can use this code:
Code: Select all
if (isset(@@caseToReopen) and !empty(@@caseToReopen)) {
	$caseId = @@caseToReopen;
	//get last delegation index:
	$query= "select * from APP_CACHE_VIEW where APP_UID='$caseId' order by DEL_INDEX desc";
	$aCases = executeQuery($query);
    if (!is_array($aCases) or count($aCases) == 0) 
		die("Error: Unable to find case with ID '$caseId'");
	
	$index = $aCases[1]['DEL_INDEX'];
	$c = new Cases();
	$result = $c->ReactivateCurrentDelegation($caseId, $index);

	$query = "update APPLICATION set APP_STATUS='TO_DO' where APP_UID='$caseId'";
	executeQuery($query);

	$query = "update APP_CACHE_VIEW set APP_STATUS='TO_DO' where APP_UID='$caseId' and DEL_INDEX=$index";
	$aCases = executeQuery($query);
}
#822053
bgone1969 wrote:Hi Amosbatto,

Where should place this trigger?

Thanks & Best regards.
I have created a process that you can use to execute this trigger:
(25.21 KiB) Downloaded 844 times
You need to enter the case number of the case to reopen.

In your workflow/engine/config/execute-query-blacklist.ini file, change from:
queries="INSERT|UPDATE|REPLACE|DELETE"
To:
queries = "INSERT|REPLACE|DELETE"
#830467
MitraDeepak wrote: Fri Jun 17, 2016 3:36 am Hello Friends,

I want little bit help from you.

How can I re-open the completed case in Process Maker

if anyone knows, Kindly let me know...

Regards
MitraDeepak
To reopen a completed case in ProcessMaker, you can follow the below steps:

Log in to your ProcessMaker account and navigate to the home page.

From the home page, select the "Cases" tab, and then click on the "Completed Cases" option.

Locate the completed case that you want to reopen and click on it to open the case view.

In the case view, click on the "Reopen Case" button, which is located in the top right-hand corner of the page.

A popup window will appear, prompting you to enter a reason for reopening the case. Provide a brief explanation of why you want to reopen the case, and then click on the "Confirm" button.

The case will now be reopened, and you can resume working on it from where it left off. You may need to update any tasks or forms that were previously completed, depending on the reason for reopening the case.

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]