Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz商业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz商业套件
iBiz商业中心
提交
a923b33d
提交
a923b33d
编写于
10月 19, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
59452129
变更
13
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
410 行增加
和
0 行删除
+410
-0
Ir_sequenceServiceImpl.java
...ral/core/odoo_ir/service/impl/Ir_sequenceServiceImpl.java
+17
-0
IIr_sequencealter_sequenceLogic.java
...doo_ir/service/logic/IIr_sequencealter_sequenceLogic.java
+18
-0
IIr_sequencecreate_sequenceLogic.java
...oo_ir/service/logic/IIr_sequencecreate_sequenceLogic.java
+18
-0
IIr_sequencedrop_sequenceLogic.java
...odoo_ir/service/logic/IIr_sequencedrop_sequenceLogic.java
+18
-0
Ir_sequencealter_sequenceLogicImpl.java
...ervice/logic/impl/Ir_sequencealter_sequenceLogicImpl.java
+64
-0
Ir_sequencecreate_sequenceLogicImpl.java
...rvice/logic/impl/Ir_sequencecreate_sequenceLogicImpl.java
+64
-0
Ir_sequencedrop_sequenceLogicImpl.java
...service/logic/impl/Ir_sequencedrop_sequenceLogicImpl.java
+64
-0
Ir_sequencealter_sequenceRule.drl
...rc/main/resources/rules/Ir_sequencealter_sequenceRule.drl
+31
-0
Ir_sequencealter_sequenceRuleFlow.bpmn
...in/resources/rules/Ir_sequencealter_sequenceRuleFlow.bpmn
+18
-0
Ir_sequencecreate_sequenceRule.drl
...c/main/resources/rules/Ir_sequencecreate_sequenceRule.drl
+31
-0
Ir_sequencecreate_sequenceRuleFlow.bpmn
...n/resources/rules/Ir_sequencecreate_sequenceRuleFlow.bpmn
+18
-0
Ir_sequencedrop_sequenceRule.drl
...src/main/resources/rules/Ir_sequencedrop_sequenceRule.drl
+31
-0
Ir_sequencedrop_sequenceRuleFlow.bpmn
...ain/resources/rules/Ir_sequencedrop_sequenceRuleFlow.bpmn
+18
-0
未找到文件。
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/service/impl/Ir_sequenceServiceImpl.java
浏览文件 @
a923b33d
...
...
@@ -58,6 +58,18 @@ public class Ir_sequenceServiceImpl extends ServiceImpl<Ir_sequenceMapper, Ir_se
@Lazy
protected
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_base
.
service
.
IRes_usersService
resUsersService
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
logic
.
IIr_sequencecreate_sequenceLogic
create_sequenceLogic
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
logic
.
IIr_sequencealter_sequenceLogic
alter_sequenceLogic
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
logic
.
IIr_sequencedrop_sequenceLogic
drop_sequenceLogic
;
protected
int
batchSize
=
500
;
@Override
...
...
@@ -67,6 +79,7 @@ public class Ir_sequenceServiceImpl extends ServiceImpl<Ir_sequenceMapper, Ir_se
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getId
()),
et
);
create_sequenceLogic
.
execute
(
et
);
return
true
;
}
...
...
@@ -84,6 +97,7 @@ public class Ir_sequenceServiceImpl extends ServiceImpl<Ir_sequenceMapper, Ir_se
if
(!
update
(
et
,(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"id"
,
et
.
getId
())))
return
false
;
CachedBeanCopier
.
copy
(
get
(
et
.
getId
()),
et
);
alter_sequenceLogic
.
execute
(
et
);
return
true
;
}
...
...
@@ -97,7 +111,10 @@ public class Ir_sequenceServiceImpl extends ServiceImpl<Ir_sequenceMapper, Ir_se
@Override
@Transactional
public
boolean
remove
(
Long
key
)
{
Ir_sequence
et
=
new
Ir_sequence
();
et
.
set
(
"id"
,
key
);
boolean
result
=
removeById
(
key
);
drop_sequenceLogic
.
execute
(
et
);
return
result
;
}
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/service/logic/IIr_sequencealter_sequenceLogic.java
0 → 100644
浏览文件 @
a923b33d
package
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
logic
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
cn.ibizlab.businesscentral.core.odoo_ir.domain.Ir_sequence
;
/**
* 关系型数据实体[alter_sequence] 对象
*/
public
interface
IIr_sequencealter_sequenceLogic
{
void
execute
(
Ir_sequence
et
)
;
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/service/logic/IIr_sequencecreate_sequenceLogic.java
0 → 100644
浏览文件 @
a923b33d
package
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
logic
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
cn.ibizlab.businesscentral.core.odoo_ir.domain.Ir_sequence
;
/**
* 关系型数据实体[create_sequence] 对象
*/
public
interface
IIr_sequencecreate_sequenceLogic
{
void
execute
(
Ir_sequence
et
)
;
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/service/logic/IIr_sequencedrop_sequenceLogic.java
0 → 100644
浏览文件 @
a923b33d
package
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
logic
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
cn.ibizlab.businesscentral.core.odoo_ir.domain.Ir_sequence
;
/**
* 关系型数据实体[drop_sequence] 对象
*/
public
interface
IIr_sequencedrop_sequenceLogic
{
void
execute
(
Ir_sequence
et
)
;
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/service/logic/impl/Ir_sequencealter_sequenceLogicImpl.java
0 → 100644
浏览文件 @
a923b33d
package
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
logic
.
impl
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.kie.api.runtime.KieSession
;
import
org.kie.api.runtime.KieContainer
;
import
cn.ibizlab.businesscentral.core.odoo_ir.service.logic.IIr_sequencealter_sequenceLogic
;
import
cn.ibizlab.businesscentral.core.odoo_ir.domain.Ir_sequence
;
/**
* 关系型数据实体[alter_sequence] 对象
*/
@Slf4j
@Service
public
class
Ir_sequencealter_sequenceLogicImpl
implements
IIr_sequencealter_sequenceLogic
{
@Autowired
private
KieContainer
kieContainer
;
@Autowired
private
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
ir_sequenceservice
;
public
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
getIr_sequenceService
()
{
return
this
.
ir_sequenceservice
;
}
@Autowired
private
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
iBzSysDefaultService
;
public
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
getIBzSysDefaultService
()
{
return
this
.
iBzSysDefaultService
;
}
public
void
execute
(
Ir_sequence
et
){
KieSession
kieSession
=
null
;
try
{
kieSession
=
kieContainer
.
newKieSession
();
kieSession
.
insert
(
et
);
kieSession
.
setGlobal
(
"ir_sequencealter_sequencedefault"
,
et
);
kieSession
.
setGlobal
(
"ir_sequenceservice"
,
ir_sequenceservice
);
kieSession
.
setGlobal
(
"iBzSysIr_sequenceDefaultService"
,
iBzSysDefaultService
);
kieSession
.
setGlobal
(
"curuser"
,
cn
.
ibizlab
.
businesscentral
.
util
.
security
.
AuthenticationUser
.
getAuthenticationUser
());
kieSession
.
startProcess
(
"cn.ibizlab.businesscentral.core.odoo_ir.service.logic.ir_sequencealter_sequence"
);
}
catch
(
Exception
e
){
throw
new
RuntimeException
(
"执行[alter_sequence]处理逻辑发生异常"
+
e
);
}
finally
{
if
(
kieSession
!=
null
)
kieSession
.
destroy
();
}
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/service/logic/impl/Ir_sequencecreate_sequenceLogicImpl.java
0 → 100644
浏览文件 @
a923b33d
package
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
logic
.
impl
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.kie.api.runtime.KieSession
;
import
org.kie.api.runtime.KieContainer
;
import
cn.ibizlab.businesscentral.core.odoo_ir.service.logic.IIr_sequencecreate_sequenceLogic
;
import
cn.ibizlab.businesscentral.core.odoo_ir.domain.Ir_sequence
;
/**
* 关系型数据实体[create_sequence] 对象
*/
@Slf4j
@Service
public
class
Ir_sequencecreate_sequenceLogicImpl
implements
IIr_sequencecreate_sequenceLogic
{
@Autowired
private
KieContainer
kieContainer
;
@Autowired
private
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
ir_sequenceservice
;
public
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
getIr_sequenceService
()
{
return
this
.
ir_sequenceservice
;
}
@Autowired
private
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
iBzSysDefaultService
;
public
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
getIBzSysDefaultService
()
{
return
this
.
iBzSysDefaultService
;
}
public
void
execute
(
Ir_sequence
et
){
KieSession
kieSession
=
null
;
try
{
kieSession
=
kieContainer
.
newKieSession
();
kieSession
.
insert
(
et
);
kieSession
.
setGlobal
(
"ir_sequencecreate_sequencedefault"
,
et
);
kieSession
.
setGlobal
(
"ir_sequenceservice"
,
ir_sequenceservice
);
kieSession
.
setGlobal
(
"iBzSysIr_sequenceDefaultService"
,
iBzSysDefaultService
);
kieSession
.
setGlobal
(
"curuser"
,
cn
.
ibizlab
.
businesscentral
.
util
.
security
.
AuthenticationUser
.
getAuthenticationUser
());
kieSession
.
startProcess
(
"cn.ibizlab.businesscentral.core.odoo_ir.service.logic.ir_sequencecreate_sequence"
);
}
catch
(
Exception
e
){
throw
new
RuntimeException
(
"执行[create_sequence]处理逻辑发生异常"
+
e
);
}
finally
{
if
(
kieSession
!=
null
)
kieSession
.
destroy
();
}
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/service/logic/impl/Ir_sequencedrop_sequenceLogicImpl.java
0 → 100644
浏览文件 @
a923b33d
package
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
logic
.
impl
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.kie.api.runtime.KieSession
;
import
org.kie.api.runtime.KieContainer
;
import
cn.ibizlab.businesscentral.core.odoo_ir.service.logic.IIr_sequencedrop_sequenceLogic
;
import
cn.ibizlab.businesscentral.core.odoo_ir.domain.Ir_sequence
;
/**
* 关系型数据实体[drop_sequence] 对象
*/
@Slf4j
@Service
public
class
Ir_sequencedrop_sequenceLogicImpl
implements
IIr_sequencedrop_sequenceLogic
{
@Autowired
private
KieContainer
kieContainer
;
@Autowired
private
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
ir_sequenceservice
;
public
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
getIr_sequenceService
()
{
return
this
.
ir_sequenceservice
;
}
@Autowired
private
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
iBzSysDefaultService
;
public
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
getIBzSysDefaultService
()
{
return
this
.
iBzSysDefaultService
;
}
public
void
execute
(
Ir_sequence
et
){
KieSession
kieSession
=
null
;
try
{
kieSession
=
kieContainer
.
newKieSession
();
kieSession
.
insert
(
et
);
kieSession
.
setGlobal
(
"ir_sequencedrop_sequencedefault"
,
et
);
kieSession
.
setGlobal
(
"ir_sequenceservice"
,
ir_sequenceservice
);
kieSession
.
setGlobal
(
"iBzSysIr_sequenceDefaultService"
,
iBzSysDefaultService
);
kieSession
.
setGlobal
(
"curuser"
,
cn
.
ibizlab
.
businesscentral
.
util
.
security
.
AuthenticationUser
.
getAuthenticationUser
());
kieSession
.
startProcess
(
"cn.ibizlab.businesscentral.core.odoo_ir.service.logic.ir_sequencedrop_sequence"
);
}
catch
(
Exception
e
){
throw
new
RuntimeException
(
"执行[drop_sequence]处理逻辑发生异常"
+
e
);
}
finally
{
if
(
kieSession
!=
null
)
kieSession
.
destroy
();
}
}
}
businesscentral-core/src/main/resources/rules/Ir_sequencealter_sequenceRule.drl
0 → 100644
浏览文件 @
a923b33d
package
cn
.
ibizlab
.
businesscentral
.
odoo_ir
.
logic
.
ir_sequencelogic
.
alter_sequence
;
import
java
.
util
.
Map
;
import
java
.
util
.
HashMap
;
import
com
.
alibaba
.
fastjson
.
JSONObject
;
import
org
.
springframework
.
util
.
StringUtils
;
import
org
.
springframework
.
util
.
ObjectUtils
;
import
cn
.
ibizlab
.
businesscentral
.
util
.
errors
.
BadRequestAlertException
;
global
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
domain
.
Ir_sequence
ir_sequencealter_sequencedefault
;
global
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
ir_sequenceservice
;
global
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
iBzSysIr_sequenceDefaultService
;
global
cn
.
ibizlab
.
businesscentral
.
util
.
security
.
AuthenticationUser
curuser
;
no
-
loop
//
逻辑处理节点
[
开始
]
rule
"begin"
ruleflow
-
group
"ir_sequencealter_sequencebegin"
when
then
end
//
逻辑处理节点
[
alter_sequence
]
rule
"deaction1"
ruleflow
-
group
"ir_sequencealter_sequencedeaction1"
when
then
ir_sequenceservice
.
alter_sequence
(
ir_sequencealter_sequencedefault
);
update
(
ir_sequencealter_sequencedefault
);//
更新
fact
中变量值
end
businesscentral-core/src/main/resources/rules/Ir_sequencealter_sequenceRuleFlow.bpmn
0 → 100644
浏览文件 @
a923b33d
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:di=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:g=
"http://www.jboss.org/drools/flow/gpd"
xmlns:tns=
"http://www.jboss.org/drools"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
expressionLanguage=
"http://www.mvel.org/2.0"
id=
"Definition"
name=
""
targetNamespace=
"http://www.jboss.org/drools"
typeLanguage=
"http://www.java.com/javaTypes"
>
<process
id=
"cn.ibizlab.businesscentral.core.odoo_ir.service.logic.ir_sequencealter_sequence"
isClosed=
"false"
isExecutable=
"true"
name=
"ScoreRule"
processType=
"Private"
tns:packageName=
"cn.ibizlab.businesscentral.core.odoo_ir.service.logic.ir_sequencealter_sequence"
>
<extensionElements>
<tns:import
name=
"java.util.Map"
/>
<tns:import
name=
"org.springframework.util.StringUtils"
/>
<tns:import
name=
"cn.ibizlab.businesscentral.util.helper.RuleUtils"
/>
<tns:global
identifier=
"ir_sequencealter_sequencedefault"
type=
"cn.ibizlab.businesscentral.core.odoo_ir.domain.Ir_sequence"
/>
</extensionElements>
<startEvent
id=
"begin"
isInterrupting=
"true"
/>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"ir_sequencealter_sequencedeaction1"
id=
"deaction1"
implementation=
"http://www.jboss.org/drools/rule"
name=
"alter_sequence"
/>
<endEvent
id=
"deaction1_end"
name=
"end"
/>
<sequenceFlow
id=
"deaction1_end_line"
sourceRef=
"deaction1"
targetRef=
"deaction1_end"
/>
<sequenceFlow
id=
"begin_deaction1"
sourceRef=
"begin"
targetRef=
"deaction1"
>
</sequenceFlow>
</process>
</definitions>
businesscentral-core/src/main/resources/rules/Ir_sequencecreate_sequenceRule.drl
0 → 100644
浏览文件 @
a923b33d
package
cn
.
ibizlab
.
businesscentral
.
odoo_ir
.
logic
.
ir_sequencelogic
.
create_sequence
;
import
java
.
util
.
Map
;
import
java
.
util
.
HashMap
;
import
com
.
alibaba
.
fastjson
.
JSONObject
;
import
org
.
springframework
.
util
.
StringUtils
;
import
org
.
springframework
.
util
.
ObjectUtils
;
import
cn
.
ibizlab
.
businesscentral
.
util
.
errors
.
BadRequestAlertException
;
global
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
domain
.
Ir_sequence
ir_sequencecreate_sequencedefault
;
global
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
ir_sequenceservice
;
global
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
iBzSysIr_sequenceDefaultService
;
global
cn
.
ibizlab
.
businesscentral
.
util
.
security
.
AuthenticationUser
curuser
;
no
-
loop
//
逻辑处理节点
[
开始
]
rule
"begin"
ruleflow
-
group
"ir_sequencecreate_sequencebegin"
when
then
end
//
逻辑处理节点
[
create_sequence
]
rule
"deaction1"
ruleflow
-
group
"ir_sequencecreate_sequencedeaction1"
when
then
ir_sequenceservice
.
create_sequence
(
ir_sequencecreate_sequencedefault
);
update
(
ir_sequencecreate_sequencedefault
);//
更新
fact
中变量值
end
businesscentral-core/src/main/resources/rules/Ir_sequencecreate_sequenceRuleFlow.bpmn
0 → 100644
浏览文件 @
a923b33d
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:di=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:g=
"http://www.jboss.org/drools/flow/gpd"
xmlns:tns=
"http://www.jboss.org/drools"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
expressionLanguage=
"http://www.mvel.org/2.0"
id=
"Definition"
name=
""
targetNamespace=
"http://www.jboss.org/drools"
typeLanguage=
"http://www.java.com/javaTypes"
>
<process
id=
"cn.ibizlab.businesscentral.core.odoo_ir.service.logic.ir_sequencecreate_sequence"
isClosed=
"false"
isExecutable=
"true"
name=
"ScoreRule"
processType=
"Private"
tns:packageName=
"cn.ibizlab.businesscentral.core.odoo_ir.service.logic.ir_sequencecreate_sequence"
>
<extensionElements>
<tns:import
name=
"java.util.Map"
/>
<tns:import
name=
"org.springframework.util.StringUtils"
/>
<tns:import
name=
"cn.ibizlab.businesscentral.util.helper.RuleUtils"
/>
<tns:global
identifier=
"ir_sequencecreate_sequencedefault"
type=
"cn.ibizlab.businesscentral.core.odoo_ir.domain.Ir_sequence"
/>
</extensionElements>
<startEvent
id=
"begin"
isInterrupting=
"true"
/>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"ir_sequencecreate_sequencedeaction1"
id=
"deaction1"
implementation=
"http://www.jboss.org/drools/rule"
name=
"create_sequence"
/>
<endEvent
id=
"deaction1_end"
name=
"end"
/>
<sequenceFlow
id=
"deaction1_end_line"
sourceRef=
"deaction1"
targetRef=
"deaction1_end"
/>
<sequenceFlow
id=
"begin_deaction1"
sourceRef=
"begin"
targetRef=
"deaction1"
>
</sequenceFlow>
</process>
</definitions>
businesscentral-core/src/main/resources/rules/Ir_sequencedrop_sequenceRule.drl
0 → 100644
浏览文件 @
a923b33d
package
cn
.
ibizlab
.
businesscentral
.
odoo_ir
.
logic
.
ir_sequencelogic
.
drop_sequence
;
import
java
.
util
.
Map
;
import
java
.
util
.
HashMap
;
import
com
.
alibaba
.
fastjson
.
JSONObject
;
import
org
.
springframework
.
util
.
StringUtils
;
import
org
.
springframework
.
util
.
ObjectUtils
;
import
cn
.
ibizlab
.
businesscentral
.
util
.
errors
.
BadRequestAlertException
;
global
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
domain
.
Ir_sequence
ir_sequencedrop_sequencedefault
;
global
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
ir_sequenceservice
;
global
cn
.
ibizlab
.
businesscentral
.
core
.
odoo_ir
.
service
.
IIr_sequenceService
iBzSysIr_sequenceDefaultService
;
global
cn
.
ibizlab
.
businesscentral
.
util
.
security
.
AuthenticationUser
curuser
;
no
-
loop
//
逻辑处理节点
[
drop_sequence
]
rule
"deaction1"
ruleflow
-
group
"ir_sequencedrop_sequencedeaction1"
when
then
ir_sequenceservice
.
drop_sequence
(
ir_sequencedrop_sequencedefault
);
update
(
ir_sequencedrop_sequencedefault
);//
更新
fact
中变量值
end
//
逻辑处理节点
[
开始
]
rule
"begin"
ruleflow
-
group
"ir_sequencedrop_sequencebegin"
when
then
end
businesscentral-core/src/main/resources/rules/Ir_sequencedrop_sequenceRuleFlow.bpmn
0 → 100644
浏览文件 @
a923b33d
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:di=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:g=
"http://www.jboss.org/drools/flow/gpd"
xmlns:tns=
"http://www.jboss.org/drools"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
expressionLanguage=
"http://www.mvel.org/2.0"
id=
"Definition"
name=
""
targetNamespace=
"http://www.jboss.org/drools"
typeLanguage=
"http://www.java.com/javaTypes"
>
<process
id=
"cn.ibizlab.businesscentral.core.odoo_ir.service.logic.ir_sequencedrop_sequence"
isClosed=
"false"
isExecutable=
"true"
name=
"ScoreRule"
processType=
"Private"
tns:packageName=
"cn.ibizlab.businesscentral.core.odoo_ir.service.logic.ir_sequencedrop_sequence"
>
<extensionElements>
<tns:import
name=
"java.util.Map"
/>
<tns:import
name=
"org.springframework.util.StringUtils"
/>
<tns:import
name=
"cn.ibizlab.businesscentral.util.helper.RuleUtils"
/>
<tns:global
identifier=
"ir_sequencedrop_sequencedefault"
type=
"cn.ibizlab.businesscentral.core.odoo_ir.domain.Ir_sequence"
/>
</extensionElements>
<businessRuleTask
activiti:exclusive=
"true"
g:ruleFlowGroup=
"ir_sequencedrop_sequencedeaction1"
id=
"deaction1"
implementation=
"http://www.jboss.org/drools/rule"
name=
"drop_sequence"
/>
<endEvent
id=
"deaction1_end"
name=
"end"
/>
<sequenceFlow
id=
"deaction1_end_line"
sourceRef=
"deaction1"
targetRef=
"deaction1_end"
/>
<startEvent
id=
"begin"
isInterrupting=
"true"
/>
<sequenceFlow
id=
"begin_deaction1"
sourceRef=
"begin"
targetRef=
"deaction1"
>
</sequenceFlow>
</process>
</definitions>
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录