FOUR-12574 Add Column Case Number by caleeli · Pull Request #5762 · ProcessMaker/processmaker
Expand Up
@@ -40,6 +40,7 @@
* @property string $participant_id
* @property string $name
* @property string $case_title
* @property int $case_number
* @property string $status
* @property array $data
* @property string $collaboration_uuid
Expand All
@@ -61,6 +62,7 @@
* @OA\Property(property="status", type="string", enum={"ACTIVE", "COMPLETED", "ERROR", "CANCELED"}),
* @OA\Property(property="name", type="string"),
* @OA\Property(property="case_title", type="string"),
* @OA\Property(property="case_number", type="integer"),
* @OA\Property(property="process_id", type="integer"),
* @OA\Property(property="process", type="object"),
* ),
Expand Down
Expand Up
@@ -934,4 +936,15 @@ public function evaluateCaseTitle(array $data): string
$mustache = new MustacheExpressionEvaluator();
return $mustache->render($mustacheTitle, $data);
}
public function isSystem() { $systemCategories = ProcessCategory::where('is_system', true)->pluck('id'); return DB::table('category_assignments') ->where('assignable_type', Process::class) ->where('assignable_id', $this->process_id) ->where('category_type', ProcessCategory::class) ->whereIn('category_id', $systemCategories) ->exists(); } }
public function isSystem() { $systemCategories = ProcessCategory::where('is_system', true)->pluck('id'); return DB::table('category_assignments') ->where('assignable_type', Process::class) ->where('assignable_id', $this->process_id) ->where('category_type', ProcessCategory::class) ->whereIn('category_id', $systemCategories) ->exists(); } }