Spaces:
Sleeping
Sleeping
processmaker-community / processmaker-files /workflow /engine /methods /cases /CaseSchedulerCreateUpdate.php
Download processmaker-files/workflow/engine/methods/cases/CaseSchedulerCreateUpdate.php from kenken999/processmaker-community: direct link, hf CLI and curl.
- Browser
- Download file 752 Bytes
-
https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/workflow/engine/methods/cases/CaseSchedulerCreateUpdate.php
- Command line
-
hf download hf://spaces/kenken999/processmaker-community/processmaker-files/workflow/engine/methods/cases/CaseSchedulerCreateUpdate.php
-
curl -L -o CaseSchedulerCreateUpdate.php https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/workflow/engine/methods/cases/CaseSchedulerCreateUpdate.php
752 Bytes
| try { | |
| if (!$_POST || count($_POST) == 0) { | |
| throw new Exception("The information sent is empty."); | |
| } | |
| $prossesUid = trim($_POST["form"]["PRO_UID"]); | |
| $caseSchedulerUid = trim($_POST["form"]["SCH_UID"]); | |
| $caseScheduler = new \ProcessMaker\BusinessModel\CaseScheduler(); | |
| $caseScheduler->createUpdate($caseSchedulerUid, $prossesUid, $_SESSION["USER_LOGGED"], $_POST["form"], (isset($_POST["pluginFields"]))? $_POST["pluginFields"] : array()); | |
| G::header("Location: cases_Scheduler_List?PRO_UID=" . $prossesUid); | |
| } catch (Exception $e) { | |
| $token = strtotime("now"); | |
| PMException::registerErrorLog($e, $token); | |
| G::outRes( G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) ); | |
| exit(0); | |
| } | |