ProcessMaker-BE "Web Entry, adapt for save data in database (endpoints)"

- Se han implementado los siguientes Endpoints:
    GET    /api/1.0/{workspace}/project/{prj_uid}/web-entries
    GET    /api/1.0/{workspace}/project/{prj_uid}/web-entry/{we_uid}
    POST   /api/1.0/{workspace}/project/{prj_uid}/web-entry
    PUT    /api/1.0/{workspace}/project/{prj_uid}/web-entry/{we_uid}
    DELETE /api/1.0/{workspace}/project/{prj_uid}/web-entry/{we_uid}
This commit is contained in:
Victor Saisa Lopez
2014-04-22 13:11:32 -04:00
parent 14a17ac244
commit 6feb095227
14 changed files with 2678 additions and 345 deletions

View File

@@ -1456,39 +1456,6 @@ class Process
}
}
/**
* Get all Web Entries of a Process
*
* @param string $processUid Unique id of Process
*
* return array Return an array with all Web Entries of a Process
*/
public function getWebEntries($processUid)
{
try {
$arrayWebEntry = array();
//Verify data
//Get data
$webEntry = new \ProcessMaker\BusinessModel\WebEntry();
$webEntry->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase);
$webEntry->setArrayFieldNameForException($this->arrayFieldNameForException);
$arrayWebEntryData = $webEntry->getData($processUid);
foreach ($arrayWebEntryData as $index => $value) {
$row = $value;
$arrayWebEntry[] = $webEntry->getWebEntryDataFromRecord($row);
}
//Return
return $arrayWebEntry;
} catch (\Exception $e) {
throw $e;
}
}
/**
* Get field names which are primary key in a PM Table
*