This commit is contained in:
Patrick Niebeling
2025-03-12 11:11:19 +01:00
parent 4e4ae2b372
commit 7f683fcec1
16 changed files with 211 additions and 154 deletions

11
cron.php Normal file
View File

@ -0,0 +1,11 @@
<?php
// Beispiel Cronjob zum Überprüfen der Workflows
require_once('path/to/autoload.php');
use OCA\Deckflow\Service\WorkflowService;
$workflowService = new WorkflowService($db, $userSession, $deckService);
$workflows = $workflowService->getWorkflows();
foreach ($workflows as $workflow) {
$workflowService->moveOverdueCards($workflow['deck_id'], $workflow['source_stack_id'], $workflow['target_stack_id']);
}