Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
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
王衍超
cloud-fb
Commits
9ab9d937
Commit
9ab9d937
authored
Apr 07, 2021
by
焦凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交审批注册代码
parent
43f8561d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
ContractConfiguration.java
...com/xyst/dinas/contract/config/ContractConfiguration.java
+1
-0
ContractServiceImpl.java
.../dinas/contract/internal/service/ContractServiceImpl.java
+4
-4
No files found.
backend/xyst.dinas.contract/src/main/java/com/xyst/dinas/contract/config/ContractConfiguration.java
View file @
9ab9d937
...
@@ -68,6 +68,7 @@ public class ContractConfiguration {
...
@@ -68,6 +68,7 @@ public class ContractConfiguration {
TriggerCondition
triggerCondition
=
new
TriggerCondition
();
TriggerCondition
triggerCondition
=
new
TriggerCondition
();
List
<
TriggerAction
>
triggerActions
=
new
ArrayList
<>();
List
<
TriggerAction
>
triggerActions
=
new
ArrayList
<>();
triggerActions
.
add
(
new
TriggerAction
(
"SUBMIT"
,
"提交"
));
triggerActions
.
add
(
new
TriggerAction
(
"SUBMIT"
,
"提交"
));
triggerActions
.
add
(
new
TriggerAction
(
"CHANGE"
,
"变更"
));
triggerCondition
.
setTriggerActions
(
triggerActions
);
triggerCondition
.
setTriggerActions
(
triggerActions
);
configuration
.
setTriggerCondition
(
triggerCondition
);
configuration
.
setTriggerCondition
(
triggerCondition
);
//3.配置流程监听器
//3.配置流程监听器
...
...
backend/xyst.dinas.contract/src/main/java/com/xyst/dinas/contract/internal/service/ContractServiceImpl.java
View file @
9ab9d937
...
@@ -117,7 +117,7 @@ public class ContractServiceImpl implements ContractService {
...
@@ -117,7 +117,7 @@ public class ContractServiceImpl implements ContractService {
@Override
@Override
public
void
submitFlowForInsert
(
UUID
id
)
{
public
void
submitFlowForInsert
(
UUID
id
)
{
KObject
kobject
=
contractDao
.
load
(
id
);
KObject
kobject
=
contractDao
.
load
(
id
);
if
(
needSubmitFlow
(
ContractConstant
.
BIZ_TYPE
,
kobject
))
{
if
(
needSubmitFlow
(
ContractConstant
.
BIZ_TYPE
,
kobject
,
"SUBMIT"
))
{
inzWorkflowService
.
startWorkflow
(
"SUBMIT"
,
ContractConstant
.
BIZ_TYPE
,
kobject
.
getString
(
ContractConstant
.
CONTRACT_NAME
),
kobject
);
inzWorkflowService
.
startWorkflow
(
"SUBMIT"
,
ContractConstant
.
BIZ_TYPE
,
kobject
.
getString
(
ContractConstant
.
CONTRACT_NAME
),
kobject
);
}
else
{
}
else
{
afterApprovedForInsert
(
kobject
);
afterApprovedForInsert
(
kobject
);
...
@@ -128,7 +128,7 @@ public class ContractServiceImpl implements ContractService {
...
@@ -128,7 +128,7 @@ public class ContractServiceImpl implements ContractService {
@Transactional
@Transactional
public
void
submitFlowForUpdate
(
UUID
id
)
{
public
void
submitFlowForUpdate
(
UUID
id
)
{
KObject
kobject
=
contractDao
.
load
(
id
);
KObject
kobject
=
contractDao
.
load
(
id
);
if
(
needSubmitFlow
(
ContractConstant
.
BIZ_TYPE
_UPDATE
,
kobject
))
{
if
(
needSubmitFlow
(
ContractConstant
.
BIZ_TYPE
,
kobject
,
"CHANGE"
))
{
inzWorkflowService
.
startWorkflow
(
"SUBMIT"
,
ContractConstant
.
BIZ_TYPE_UPDATE
,
kobject
.
getString
(
ContractConstant
.
CONTRACT_NAME
),
kobject
);
inzWorkflowService
.
startWorkflow
(
"SUBMIT"
,
ContractConstant
.
BIZ_TYPE_UPDATE
,
kobject
.
getString
(
ContractConstant
.
CONTRACT_NAME
),
kobject
);
}
else
{
}
else
{
afterApprovedForUpdate
(
kobject
);
afterApprovedForUpdate
(
kobject
);
...
@@ -142,8 +142,8 @@ public class ContractServiceImpl implements ContractService {
...
@@ -142,8 +142,8 @@ public class ContractServiceImpl implements ContractService {
* @param data
* @param data
* @return
* @return
*/
*/
private
boolean
needSubmitFlow
(
String
bizTypeName
,
KObject
data
)
{
private
boolean
needSubmitFlow
(
String
bizTypeName
,
KObject
data
,
String
operationName
)
{
return
inzWorkflowService
.
canStartWotkflow
(
"SUBMIT"
,
bizTypeName
,
data
);
return
inzWorkflowService
.
canStartWotkflow
(
operationName
,
bizTypeName
,
data
);
}
}
@Override
@Override
...
...
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