Merged in darojas/processmaker (pull request #73)

Se cambia nombre de parámetros para assignee
This commit is contained in:
erik ao
2014-01-14 09:36:24 -04:00
2 changed files with 9 additions and 8 deletions

View File

@@ -89,16 +89,16 @@ class Assignee extends Api
* *
* @param string $prjUid * @param string $prjUid
* @param string $actUid * @param string $actUid
* @param string $ass_uid * @param string $aas_uid
* @param string $ass_type {@choice user,group} * @param string $aas_type {@choice user,group}
* *
* @status 201 * @status 201
*/ */
public function doPostActivityAssignee($prjUid, $actUid, $ass_uid, $ass_type) public function doPostActivityAssignee($prjUid, $actUid, $aas_uid, $aas_type)
{ {
try { try {
$task = new \BusinessModel\Task(); $task = new \BusinessModel\Task();
$arrayData = $task->addTaskAssignee($prjUid, $actUid, $ass_uid, $ass_type); $arrayData = $task->addTaskAssignee($prjUid, $actUid, $aas_uid, $aas_type);
} catch (\Exception $e) { } catch (\Exception $e) {
//Response //Response
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
@@ -107,18 +107,18 @@ class Assignee extends Api
} }
/** /**
* @url DELETE /:prjUid/activity/:actUid/assignee/:assUid * @url DELETE /:prjUid/activity/:actUid/assignee/:aasUid
* *
* @param string $prjUid * @param string $prjUid
* @param string $actUid * @param string $actUid
* @param string $assUid * @param string $aasUid
* *
*/ */
public function doDeleteActivityAssignee($prjUid, $actUid, $assUid) public function doDeleteActivityAssignee($prjUid, $actUid, $aasUid)
{ {
try { try {
$task = new \BusinessModel\Task(); $task = new \BusinessModel\Task();
$arrayData = $task->removeTaskAssignee($prjUid, $actUid, $assUid); $arrayData = $task->removeTaskAssignee($prjUid, $actUid, $aasUid);
} catch (\Exception $e) { } catch (\Exception $e) {
//response //response
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());

View File

@@ -25,6 +25,7 @@ debug = 1
output-documents = "Services\Api\ProcessMaker\Project\OutputDocuments" output-documents = "Services\Api\ProcessMaker\Project\OutputDocuments"
supervisors = "Services\Api\ProcessMaker\Project\ProcessSupervisors" supervisors = "Services\Api\ProcessMaker\Project\ProcessSupervisors"
process-permissions = "Services\Api\ProcessMaker\Project\ProcessPermissions" process-permissions = "Services\Api\ProcessMaker\Project\ProcessPermissions"
case-scheduler = "Services\Api\ProcessMaker\Project\CaseScheduler"
[alias: projects] [alias: projects]
project = "Services\Api\ProcessMaker\Project" project = "Services\Api\ProcessMaker\Project"