By stevensi1018 - Fri Jul 13, 2018 9:32 am
- Fri Jul 13, 2018 9:32 am
#815172
Hi, I have a process (see attachments) that creates a task in another process (it's not a subprocess) to the current user.
In a script task after the task creation, I have this code:
Any way to make it works ?
Thanks
In a script task after the task creation, I have this code:
Code: Select all
It allows me to redirect the user to the newly created task in the other process. The problem is that my 'parent application' doesn't go to the next task (which is an end event) because I called die() at the end of my code. If I don't call die(), it goes to the next step but it doesn't seem to redirect.$appUID = @@APPLICATION;
$queryParent = "SELECT APP_UID FROM SUB_APPLICATION WHERE APP_PARENT='$appUID' ORDER BY DEL_INDEX_PARENT DESC";
@@queryParent = $queryParent;
$resultParent = executeQuery($queryParent);
if(!empty($resultParent) && count($resultParent) > 0)
{
$newCaseUID = $resultParent[1]['APP_UID'];
G::header("Location: ../cases/cases_Open?APP_UID=$newCaseUID&DEL_INDEX=1");
die();
}
Any way to make it works ?
Thanks
Attachments
redirect.PNG (22.11 KiB) Viewed 4414 times