PMCORE-2193
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
parent
5f12753187
commit
c434e13467
@@ -22,6 +22,7 @@ use ProcessMaker\BusinessModel\Cases as BmCases;
|
||||
use ProcessMaker\BusinessModel\Light\PushMessageAndroid;
|
||||
use ProcessMaker\BusinessModel\Light\PushMessageIOS;
|
||||
use ProcessMaker\BusinessModel\MessageApplication;
|
||||
use ProcessMaker\BusinessModel\TimerEvent;
|
||||
use ProcessMaker\Core\JobsManager;
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
use Propel;
|
||||
@@ -598,4 +599,19 @@ class Task
|
||||
};
|
||||
$this->runTask($job);
|
||||
}
|
||||
|
||||
/**
|
||||
* Start/Continue cases by Timer-Event
|
||||
*
|
||||
* @param string $datetime
|
||||
* @param bool $frontEnd
|
||||
*/
|
||||
public function timerEventCron($datetime, $frontEnd)
|
||||
{
|
||||
$job = function() use ($datetime, $frontEnd) {
|
||||
$timerEvent = new TimerEvent();
|
||||
$timerEvent->startContinueCaseByTimerEvent($datetime, $frontEnd);
|
||||
};
|
||||
$this->runTask($job);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user