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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user