diff --git a/workflow/engine/src/Services/Api/ProcessMaker/Project/Activity.php b/workflow/engine/src/Services/Api/ProcessMaker/Project/Activity.php new file mode 100644 index 000000000..7579fc1c8 --- /dev/null +++ b/workflow/engine/src/Services/Api/ProcessMaker/Project/Activity.php @@ -0,0 +1,75 @@ +getProperties($activityUid, true, false); + } + + $response = array( + 'definition' => $definition, + 'properties' => $properties + ); + + return $response; + } catch (\Exception $e) { + throw new RestException(Api::SYSTEM_EXCEPTION_STATUS, $e->getMessage()); + } + } + + + + /** + * @url PUT /:projectUid/activity/:activityUid + */ + public function doPutProjectActivity($projectUid, $activityUid, $request_data = array()) + { + try { + $task = new \BusinessModel\Task(); + $properties = $task->updateProperties($activityUid, $projectUid, $request_data); + } catch (\Exception $e) { + throw new RestException(Api::SYSTEM_EXCEPTION_STATUS, $e->getMessage()); + } + } + + + + /** + * @url DELETE /:projectUid/activity/:activityUid + */ + public function doDeleteProjectActivity($projectUid, $activityUid) + { + try { + $task = new \BusinessModel\Task(); + $task->deleteTask($activityUid); + } catch (\Exception $e) { + throw new RestException(Api::SYSTEM_EXCEPTION_STATUS, $e->getMessage()); + } + } +} +