Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yii2-workflow
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
packages
yii2-workflow
Merge requests
!117
Develop
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Develop
develop
into
master
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Phòng Nguyễn Hồng Phát
requested to merge
develop
into
master
10 months ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
👍
0
👎
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
c2ec952c
2 commits,
10 months ago
1 file
+
16
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
controllers/DefaultController.php
+
16
−
0
Options
@@ -11,6 +11,7 @@ use lsat\workflow\models\EnumModel;
use
lsat\workflow\models\StatusEnum
;
use
lsat\workflow\models\Workflow
;
use
lsat\workflow\models\WorkflowRelation
;
use
lsat\workflow\models\WorkflowRuntime
;
use
lsat\workflow\models\WorkflowSearch
;
use
Yii
;
use
yii\base\DynamicModel
;
@@ -679,6 +680,21 @@ class DefaultController extends \lsat\microbase\controllers\ActiveController
'id'
=>
SORT_DESC
])
->
one
();
$requestModel
->
instanceCode
=
$relation
->
code
;
$runtimeVersion
=
WorkflowRuntime
::
find
()
->
select
([
'version'
])
->
where
([
'wf_runtime_id'
=>
$requestModel
->
runtimeID
])
->
scalar
();
if
(
$runtimeVersion
!=
$relation
->
current_runtime_version
){
return
[
'status'
=>
0
,
'message'
=>
[
'runtimeID'
=>
[
'runtime version not match'
]
],
'data'
=>
[]
];
}
list
(
$status
,
$message
,
$data
)
=
Workflow
::
sendActionHandle
(
$requestModel
,
$model
,
$userModelClass
,
$relation
->
current_runtime_version
);
return
[
Loading