Spaces:
Sleeping
Sleeping
processmaker-community / processmaker-files /workflow /engine /methods /cases /cases_SchedulerGetTasks.php
Download processmaker-files/workflow/engine/methods/cases/cases_SchedulerGetTasks.php from kenken999/processmaker-community: direct link, hf CLI and curl.
- Browser
- Download file 737 Bytes
-
https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/workflow/engine/methods/cases/cases_SchedulerGetTasks.php
- Command line
-
hf download hf://spaces/kenken999/processmaker-community/processmaker-files/workflow/engine/methods/cases/cases_SchedulerGetTasks.php
-
curl -L -o cases_SchedulerGetTasks.php https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/workflow/engine/methods/cases/cases_SchedulerGetTasks.php
737 Bytes
| <select style="width: 300px;" name="form[TAS_UID]" id="form[TAS_UID]" | |
| class="module_app_input___gray" required="1"> | |
| <?php | |
| $oUserId = $_POST['USR_UID']; | |
| $oProcessId = $_POST['PRO_UID']; | |
| $oCase = new Cases(); | |
| $startTasks = $oCase->getStartCases( $oUserId ); | |
| foreach ($startTasks as $task) { | |
| if ((isset( $task['pro_uid'] )) && ($task['pro_uid'] == $oProcessId)) { | |
| $taskValue = explode( '(', $task['value'] ); | |
| $tasksLastIndex = count( $taskValue ) - 1; | |
| $taskValue = explode( ')', $taskValue[$tasksLastIndex] ); | |
| echo "<option value=\"" . $task['uid'] . "\">" . $taskValue[0] . "</option>"; | |
| } | |
| } | |
| //print_r($startTasks); | |
| // echo "<option value=\"".$value."\">".$label."</option>"; | |
| </select> | |