Skip to content
Snippets Groups Projects
Commit de186e21 authored by phatpnh's avatar phatpnh
Browse files

update

parent 2ef3b7c8
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@ namespace lsat\workflow\models;
* @property string $template_content Nội dung email
* @property string $template_name Tên template
* @property string $description Mô tả
* @property string $template_code
*/
class EmailTemplate extends \lsat\microbase\models\BaseRestModel
{
......
......@@ -2,9 +2,12 @@
namespace lsat\workflow\models;
use app\jobs\NotifyJob;
use lsat\microbase\components\JobHelpers;
use yii\helpers\ArrayHelper;
abstract class MainModelAbstract extends \lsat\microbase\models\BaseRestModel
{
abstract protected function getClassName() : string;
public function getWorkflow()
{
$currentWorkflow = WorkflowRelation::find()->select([
......@@ -21,12 +24,18 @@ abstract class MainModelAbstract extends \lsat\microbase\models\BaseRestModel
return null;
}
abstract protected function getClassName(): string;
abstract public function triggerActivities($actionCode): bool;
abstract public function executeDependActions($actionCode, $runtimeID = null): bool;
abstract public function updateCode(): bool;
abstract public function getDetailLink(): string;
abstract public function getRefCode(): string;
protected function getStage()
{
$list = Stage::getList();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment