Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
89a08b5a
Commit
89a08b5a
authored
Feb 04, 2020
by
guominglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
插件端的业务逻辑添加事务
parent
0c85360b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+5
-0
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
89a08b5a
...
@@ -459,6 +459,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -459,6 +459,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
}
}
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
deleteFlow
(
String
flowName
,
String
workspaceName
)
{
public
void
deleteFlow
(
String
flowName
,
String
workspaceName
)
{
log
.
info
(
"删除工作空间【{}】---工作流【{}】调度"
,
workspaceName
,
flowName
);
log
.
info
(
"删除工作空间【{}】---工作流【{}】调度"
,
workspaceName
,
flowName
);
Workspace
workspace
=
workspaceMapper
.
getByName
(
workspaceName
);
Workspace
workspace
=
workspaceMapper
.
getByName
(
workspaceName
);
...
@@ -502,6 +503,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -502,6 +503,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
}
}
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
start
(
String
flowName
,
String
workspaceName
)
throws
ParseException
{
public
void
start
(
String
flowName
,
String
workspaceName
)
throws
ParseException
{
log
.
info
(
"开始工作空间【{}】---工作流【{}】调度"
,
workspaceName
,
flowName
);
log
.
info
(
"开始工作空间【{}】---工作流【{}】调度"
,
workspaceName
,
flowName
);
Workspace
workspace
=
workspaceMapper
.
getByName
(
workspaceName
);
Workspace
workspace
=
workspaceMapper
.
getByName
(
workspaceName
);
...
@@ -515,6 +517,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -515,6 +517,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
}
}
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
repealSchedule
(
String
flowName
,
String
workspaceName
)
throws
ParseException
{
public
void
repealSchedule
(
String
flowName
,
String
workspaceName
)
throws
ParseException
{
log
.
info
(
"撤销工作空间【{}】---工作流【{}】调度"
,
workspaceName
,
flowName
);
log
.
info
(
"撤销工作空间【{}】---工作流【{}】调度"
,
workspaceName
,
flowName
);
Workspace
workspace
=
workspaceMapper
.
getByName
(
workspaceName
);
Workspace
workspace
=
workspaceMapper
.
getByName
(
workspaceName
);
...
@@ -569,6 +572,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -569,6 +572,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
}
}
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
String
stopSchedule
(
String
flowName
,
String
workspaceName
)
{
public
String
stopSchedule
(
String
flowName
,
String
workspaceName
)
{
log
.
info
(
"停止工作空间【{}】---工作流【{}】调度"
,
workspaceName
,
flowName
);
log
.
info
(
"停止工作空间【{}】---工作流【{}】调度"
,
workspaceName
,
flowName
);
Workspace
workspace
=
workspaceMapper
.
getByName
(
workspaceName
);
Workspace
workspace
=
workspaceMapper
.
getByName
(
workspaceName
);
...
@@ -590,6 +594,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -590,6 +594,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
}
}
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
reStartSchedule
(
String
runIds
)
{
public
void
reStartSchedule
(
String
runIds
)
{
ValidationUtil
.
dataNotBank
(
runIds
,
"运行id不允许为空!"
);
ValidationUtil
.
dataNotBank
(
runIds
,
"运行id不允许为空!"
);
List
<
String
>
runIdList
=
Arrays
.
asList
(
runIds
.
split
(
","
));
List
<
String
>
runIdList
=
Arrays
.
asList
(
runIds
.
split
(
","
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment