Example #1
0
    /**

     * Create WebEntry records

     *

     * @param string $processUid     Unique id of Process

     * @param string $userUidCreator Unique id of creator User

     * @param array  $arrayData      Data

     *

     * return void

     */

    public function createWebEntry($processUid, $userUidCreator, array $arrayData)

    {

        try {

            $webEntry = new \ProcessMaker\BusinessModel\WebEntry();



            foreach ($arrayData as $value) {

                $record = $value;



                $arrayWebEntryData = $webEntry->create($processUid, $userUidCreator, $record);

            }

        } catch (Exception $e) {

            throw $e;

        }

    }
Example #2
0
 public function removeWebEntry($weUid)
 {
     try {
         $webEntry = new \ProcessMaker\BusinessModel\WebEntry();
         self::log("Remove Web Entry: " . $weUid);
         $webEntry->delete($weUid);
         self::log("Remove Web Entry Success!");
     } catch (\Exception $e) {
         self::log("Exception: ", $e->getMessage(), "Trace: ", $e->getTraceAsString());
         throw $e;
     }
 }