提交 31c8401d 编写于 作者: ibizdev's avatar ibizdev

generator before deploy...

generator before deploy registry.cn-shanghai.aliyuncs.com/ibizsys/samplesolution-demosys-api-demoapi:2022.11.09.001
上级 8f410d22
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
**.iml **.iml
*.jar *.jar
*.log *.log
.DS_Store .DS_Store
\ No newline at end of file
...@@ -51,4 +51,4 @@ public class BootApplication extends WebMvcConfigurerAdapter { ...@@ -51,4 +51,4 @@ public class BootApplication extends WebMvcConfigurerAdapter {
super.addArgumentResolvers(argumentResolvers); super.addArgumentResolvers(argumentResolvers);
argumentResolvers.add(resolver); argumentResolvers.add(resolver);
} }
} }
\ No newline at end of file
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
</parent> </parent>
<artifactId>demo-core</artifactId> <artifactId>demo-core</artifactId>
<name>后台服务 Core</name> <name>Demo Core</name>
<description>后台服务 Core</description> <description>后台服务 Core,模板生成代码,再次发布会覆盖,建议不要直接修改,修改请在demo-boot项目中继承或覆盖重写</description>
<dependencies> <dependencies>
...@@ -20,6 +20,14 @@ ...@@ -20,6 +20,14 @@
<artifactId>ibizlab-boot-starter-data</artifactId> <artifactId>ibizlab-boot-starter-data</artifactId>
<version>2.4.0-SNAPSHOT</version> <version>2.4.0-SNAPSHOT</version>
</dependency> </dependency>
<!-- MySQL驱动包 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
</dependencies> </dependencies>
<properties> <properties>
...@@ -93,4 +101,4 @@ ...@@ -93,4 +101,4 @@
</profile> </profile>
</profiles> </profiles>
</project> </project>
\ No newline at end of file
...@@ -113,7 +113,7 @@ public class IBIZOrder extends EntityMP implements Serializable ...@@ -113,7 +113,7 @@ public class IBIZOrder extends EntityMP implements Serializable
* 订单类型 * 订单类型
*/ */
@TableField(value = "ordertype") @TableField(value = "ordertype")
@DEField(name = "ordertype" , dict = "ORDERTYPE") @DEField(name = "ordertype" , dict = "DYNAORDERTYPE")
@JsonProperty("ordertype") @JsonProperty("ordertype")
@JSONField(name = "ordertype") @JSONField(name = "ordertype")
@ApiModelProperty(value = "ordertype", notes = "订单类型") @ApiModelProperty(value = "ordertype", notes = "订单类型")
......
...@@ -80,7 +80,7 @@ public class IBIZSample0004 extends EntityMP implements Serializable ...@@ -80,7 +80,7 @@ public class IBIZSample0004 extends EntityMP implements Serializable
* 订单类型 * 订单类型
*/ */
@TableField(value = "wfmvtype") @TableField(value = "wfmvtype")
@DEField(name = "wfmvtype" , dict = "ORDERTYPE") @DEField(name = "wfmvtype" , dict = "DYNAORDERTYPE")
@JsonProperty("wfmvtype") @JsonProperty("wfmvtype")
@JSONField(name = "wfmvtype") @JSONField(name = "wfmvtype")
@ApiModelProperty(value = "wfmvtype", notes = "订单类型") @ApiModelProperty(value = "wfmvtype", notes = "订单类型")
......
...@@ -143,7 +143,7 @@ public class IBIZSample0005 extends EntityMP implements Serializable ...@@ -143,7 +143,7 @@ public class IBIZSample0005 extends EntityMP implements Serializable
* 订单类型 * 订单类型
*/ */
@TableField(value = "wfmmtype") @TableField(value = "wfmmtype")
@DEField(name = "wfmmtype" , dict = "ORDERTYPE") @DEField(name = "wfmmtype" , dict = "DYNAORDERTYPE")
@JsonProperty("wfmmtype") @JsonProperty("wfmmtype")
@JSONField(name = "wfmmtype") @JSONField(name = "wfmmtype")
@ApiModelProperty(value = "wfmmtype", notes = "订单类型") @ApiModelProperty(value = "wfmmtype", notes = "订单类型")
......
...@@ -49,7 +49,7 @@ public class IBIZSample0010 extends EntityMP implements Serializable ...@@ -49,7 +49,7 @@ public class IBIZSample0010 extends EntityMP implements Serializable
* 订单类型 * 订单类型
*/ */
@TableField(value = "ordertype") @TableField(value = "ordertype")
@DEField(name = "ordertype" , dict = "ORDERTYPE") @DEField(name = "ordertype" , dict = "DYNAORDERTYPE")
@JsonProperty("ordertype") @JsonProperty("ordertype")
@JSONField(name = "ordertype") @JSONField(name = "ordertype")
@ApiModelProperty(value = "ordertype", notes = "订单类型") @ApiModelProperty(value = "ordertype", notes = "订单类型")
......
...@@ -143,7 +143,7 @@ public class IBIZSample0012 extends EntityMP implements Serializable ...@@ -143,7 +143,7 @@ public class IBIZSample0012 extends EntityMP implements Serializable
* 订单类型 * 订单类型
*/ */
@TableField(value = "ordertype") @TableField(value = "ordertype")
@DEField(name = "ordertype" , dict = "ORDERTYPE") @DEField(name = "ordertype" , dict = "DYNAORDERTYPE")
@JsonProperty("ordertype") @JsonProperty("ordertype")
@JSONField(name = "ordertype") @JSONField(name = "ordertype")
@ApiModelProperty(value = "ordertype", notes = "订单类型") @ApiModelProperty(value = "ordertype", notes = "订单类型")
......
...@@ -438,6 +438,8 @@ public class DELogicAspect { ...@@ -438,6 +438,8 @@ public class DELogicAspect {
validLogic.add("ibizbookinitexec.bpmn"); validLogic.add("ibizbookinitexec.bpmn");
validLogic.add("ibizbooknextactionexec.bpmn"); validLogic.add("ibizbooknextactionexec.bpmn");
validLogic.add("ibizbookpreactionexec.bpmn"); validLogic.add("ibizbookpreactionexec.bpmn");
validLogic.add("ibizorderdetailcreateafter.bpmn");
validLogic.add("ibizorderdetailupdateafter.bpmn");
validLogic.add("ibizorderdetailcountmoneyexec.bpmn"); validLogic.add("ibizorderdetailcountmoneyexec.bpmn");
validLogic.add("ibizorderdetailgetunitandpriceexec.bpmn"); validLogic.add("ibizorderdetailgetunitandpriceexec.bpmn");
} }
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<sql id="csmxdy" databaseId="mysql"> <sql id="csmxdy" databaseId="mysql">
<![CDATA[ <![CDATA[
SELECT t1.`QUANTITY`*t1.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t11.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t21.`IBIZUNIPRODUCTNAME`, t11.`ORDERUID`, t1.`QUANTITY`, t21.`UNIT`, t1.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1 LEFT JOIN `T_IBIZORDER` t11 ON t1.`IBIZORDERID` = t11.`IBIZORDERID` LEFT JOIN `T_IBIZUNIPRODUCT` t21 ON t1.`IBIZUNIPRODUCTID` = t21.`IBIZUNIPRODUCTID` where ( t1.`IBIZORDERID` = #{ctx.webcontext.srfkeys} ) SELECT t1.`QUANTITY`*t1.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t11.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t21.`IBIZUNIPRODUCTNAME`, t11.`ORDERUID`, t1.`QUANTITY`, t21.`UNIT`, t1.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1 LEFT JOIN `T_IBIZORDER` t11 ON t1.`IBIZORDERID` = t11.`IBIZORDERID` LEFT JOIN `T_IBIZUNIPRODUCT` t21 ON t1.`IBIZUNIPRODUCTID` = t21.`IBIZUNIPRODUCTID` where ( t1.`IBIZORDERID` = #{ctx.webcontext.srfkeys} )
]]> ]]>
</sql> </sql>
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
<sql id="logic0007" databaseId="mysql"> <sql id="logic0007" databaseId="mysql">
<![CDATA[ <![CDATA[
SELECT t1.`QUANTITY`*t1.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t11.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t21.`IBIZUNIPRODUCTNAME`, t11.`ORDERUID`, t1.`QUANTITY`, t21.`UNIT`, t1.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1 LEFT JOIN `T_IBIZORDER` t11 ON t1.`IBIZORDERID` = t11.`IBIZORDERID` LEFT JOIN `T_IBIZUNIPRODUCT` t21 ON t1.`IBIZUNIPRODUCTID` = t21.`IBIZUNIPRODUCTID` where ( t1.`IBIZUNIPRODUCTID` = #{ctx.datacontext.ibizuniproductid} AND t1.`IBIZORDERID` = #{ctx.datacontext.ibizorderid} ) SELECT t1.`QUANTITY`*t1.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t11.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t21.`IBIZUNIPRODUCTNAME`, t11.`ORDERUID`, t1.`QUANTITY`, t21.`UNIT`, t1.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1 LEFT JOIN `T_IBIZORDER` t11 ON t1.`IBIZORDERID` = t11.`IBIZORDERID` LEFT JOIN `T_IBIZUNIPRODUCT` t21 ON t1.`IBIZUNIPRODUCTID` = t21.`IBIZUNIPRODUCTID` where ( t1.`IBIZUNIPRODUCTID` = #{ctx.datacontext.ibizuniproductid} AND t1.`IBIZORDERID` = #{ctx.datacontext.ibizorderid} )
]]> ]]>
</sql> </sql>
......
...@@ -694,6 +694,9 @@ ...@@ -694,6 +694,9 @@
{ {
"id": "menuitem130", "id": "menuitem130",
"name": "布局面板组件测试" }, "name": "布局面板组件测试" },
{
"id": "menuitem205",
"name": "项布局面板测试" },
{ {
"id": "menuitem131", "id": "menuitem131",
"name": "编辑视图(左右关系)" }, "name": "编辑视图(左右关系)" },
...@@ -838,7 +841,10 @@ ...@@ -838,7 +841,10 @@
} }
] ]
} },
{
"id": "menuitem201",
"name": "测试界面逻辑" }
] ]
} }
......
...@@ -7,8 +7,8 @@ import org.springframework.util.StringUtils; ...@@ -7,8 +7,8 @@ import org.springframework.util.StringUtils;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import cn.ibizlab.util.errors.BadRequestAlertException; import cn.ibizlab.util.errors.BadRequestAlertException;
global cn.ibizlab.core.sample.domain.IBIZOrderDetail default; global cn.ibizlab.core.sample.domain.IBIZOrderDetail param_default;
global cn.ibizlab.core.sample.service.IIBIZOrderDetailService iBzSysIBIZOrderDetailDefaultService; global cn.ibizlab.core.sample.service.IBIZOrderDetailService iBzSysIBIZOrderDetailDefaultService;
global cn.ibizlab.util.security.AuthenticationUser curuser; global cn.ibizlab.util.security.AuthenticationUser curuser;
no-loop no-loop
...@@ -18,7 +18,7 @@ rule "begin" ...@@ -18,7 +18,7 @@ rule "begin"
ruleflow-group "begingroup" ruleflow-group "begingroup"
when when
then then
update(default);//更新fact中变量值 update(param_default);//更新fact中变量值
end end
//逻辑处理节点[统计金额] //逻辑处理节点[统计金额]
...@@ -37,5 +37,5 @@ ruleflow-group "rawsqlcall1group" ...@@ -37,5 +37,5 @@ ruleflow-group "rawsqlcall1group"
param_default.set(String.valueOf(entry.getKey()),entry.getValue()); param_default.set(String.valueOf(entry.getKey()),entry.getValue());
} }
} }
update(default);//更新fact中变量值 update(param_default);//更新fact中变量值
end end
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<tns:import name="cn.ibizlab.util.helper.RuleUtils"/> <tns:import name="cn.ibizlab.util.helper.RuleUtils"/>
<tns:metaData express="" name="default" type="entity"/> <tns:metaData express="" name="default" type="entity"/>
<tns:global identifier="default" type="cn.ibizlab.core.sample.domain.IBIZOrderDetail" /> <tns:global identifier="default" type="cn.ibizlab.core.sample.domain.IBIZOrderDetail" />
<tns:metaData express="T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.sample.service.IIBIZOrderDetailService))" name="iBzSysIBIZOrderDetailDefaultService" type="service"/> <tns:metaData express="T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.sample.service.IBIZOrderDetailService))" name="iBzSysIBIZOrderDetailDefaultService" type="service"/>
<tns:metaData express="T(cn.ibizlab.util.security.AuthenticationUser).getAuthenticationUser()" name="curuser" type="session"/> <tns:metaData express="T(cn.ibizlab.util.security.AuthenticationUser).getAuthenticationUser()" name="curuser" type="session"/>
</extensionElements> </extensionElements>
...@@ -30,4 +30,4 @@ ...@@ -30,4 +30,4 @@
</sequenceFlow> </sequenceFlow>
</process> </process>
</definitions> </definitions>
\ No newline at end of file
...@@ -7,10 +7,10 @@ import org.springframework.util.StringUtils; ...@@ -7,10 +7,10 @@ import org.springframework.util.StringUtils;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import cn.ibizlab.util.errors.BadRequestAlertException; import cn.ibizlab.util.errors.BadRequestAlertException;
global cn.ibizlab.core.sample.domain.IBIZUNIProduct product; global cn.ibizlab.core.sample.domain.IBIZUNIProduct param_product;
global cn.ibizlab.core.sample.domain.IBIZOrderDetail default; global cn.ibizlab.core.sample.domain.IBIZOrderDetail param_default;
global cn.ibizlab.core.sample.service.IBIZUNIProductService ibizuniproductservice; global cn.ibizlab.core.sample.service.IBIZUNIProductService ibizuniproductservice;
global cn.ibizlab.core.sample.service.IIBIZOrderDetailService iBzSysIBIZOrderDetailDefaultService; global cn.ibizlab.core.sample.service.IBIZOrderDetailService iBzSysIBIZOrderDetailDefaultService;
global cn.ibizlab.util.security.AuthenticationUser curuser; global cn.ibizlab.util.security.AuthenticationUser curuser;
no-loop no-loop
...@@ -20,8 +20,8 @@ rule "begin" ...@@ -20,8 +20,8 @@ rule "begin"
ruleflow-group "begingroup" ruleflow-group "begingroup"
when when
then then
update(product);//更新fact中变量值 update(param_product);//更新fact中变量值
update(default);//更新fact中变量值 update(param_default);//更新fact中变量值
end end
//逻辑处理节点[填充单位和单价] //逻辑处理节点[填充单位和单价]
...@@ -45,8 +45,8 @@ ruleflow-group "prepareparam2group" ...@@ -45,8 +45,8 @@ ruleflow-group "prepareparam2group"
update(product);//更新fact中变量值 update(param_product);//更新fact中变量值
update(default);//更新fact中变量值 update(param_default);//更新fact中变量值
end end
//逻辑处理节点[获取商品信息] //逻辑处理节点[获取商品信息]
...@@ -54,9 +54,9 @@ rule "deaction1" ...@@ -54,9 +54,9 @@ rule "deaction1"
ruleflow-group "deaction1group" ruleflow-group "deaction1group"
when when
then then
cn.ibizlab.util.helper.CachedBeanCopier.copy(ibizuniproductservice.get(param_product.getIBIZUNIProductId()),param_product); cn.ibizlab.util.helper.CachedBeanCopier.copy(ibizuniproductservice.get(param_product.getIbizuniProductId()),param_product);
update(product);//更新fact中变量值 update(param_product);//更新fact中变量值
update(default);//更新fact中变量值 update(param_default);//更新fact中变量值
end end
//逻辑处理节点[获取商品ID] //逻辑处理节点[获取商品ID]
...@@ -72,6 +72,6 @@ ruleflow-group "prepareparam1group" ...@@ -72,6 +72,6 @@ ruleflow-group "prepareparam1group"
update(product);//更新fact中变量值 update(param_product);//更新fact中变量值
update(default);//更新fact中变量值 update(param_default);//更新fact中变量值
end end
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<tns:global identifier="product" type="cn.ibizlab.core.sample.domain.IBIZUNIProduct" /> <tns:global identifier="product" type="cn.ibizlab.core.sample.domain.IBIZUNIProduct" />
<tns:global identifier="default" type="cn.ibizlab.core.sample.domain.IBIZOrderDetail" /> <tns:global identifier="default" type="cn.ibizlab.core.sample.domain.IBIZOrderDetail" />
<tns:metaData express="T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.sample.service.IBIZUNIProductService))" name="ibizuniproductservice" type="service"/> <tns:metaData express="T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.sample.service.IBIZUNIProductService))" name="ibizuniproductservice" type="service"/>
<tns:metaData express="T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.sample.service.IIBIZOrderDetailService))" name="iBzSysIBIZOrderDetailDefaultService" type="service"/> <tns:metaData express="T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.sample.service.IBIZOrderDetailService))" name="iBzSysIBIZOrderDetailDefaultService" type="service"/>
<tns:metaData express="T(cn.ibizlab.util.security.AuthenticationUser).getAuthenticationUser()" name="curuser" type="session"/> <tns:metaData express="T(cn.ibizlab.util.security.AuthenticationUser).getAuthenticationUser()" name="curuser" type="session"/>
</extensionElements> </extensionElements>
...@@ -47,4 +47,4 @@ ...@@ -47,4 +47,4 @@
</sequenceFlow> </sequenceFlow>
</process> </process>
</definitions> </definitions>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?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"> <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.core.extensions.service.logic.execute" isClosed="false" isExecutable="true" name="sample_ibizorderdetail_countmoney.execLogic" processType="Private" tns:packageName="cn.ibizlab.core.extensions.service.logic.execute"> <process id="cn.ibizlab.core.extensions.service.logic.execute" isClosed="false" isExecutable="true" name="sample_sample_countmoney.execLogic" processType="Private" tns:packageName="cn.ibizlab.core.extensions.service.logic.execute">
<extensionElements> <extensionElements>
<tns:import name="java.util.Map"/> <tns:import name="java.util.Map"/>
<tns:import name="org.springframework.util.StringUtils"/> <tns:import name="org.springframework.util.StringUtils"/>
<tns:import name="cn.ibizlab.util.helper.RuleUtils"/> <tns:import name="cn.ibizlab.util.helper.RuleUtils"/>
</extensionElements> </extensionElements>
<startEvent id="begin" isInterrupting="true"/> <startEvent id="begin" isInterrupting="true"/>
<endEvent id="prepareparam1_end" name="end"/> <endEvent id="prepareparam1_end" name="end"/>
<callActivity activiti:exclusive="true" calledElement="cn.ibizlab.core.sample.service.logic.ibizorderdetailcountmoney" id="CountMoney" name="IBIZOrderDetailCountMoneyRuleFlow.bpmn"/>
<callActivity activiti:exclusive="true" calledElement="cn.ibizlab.core.sampleservice.logic.ibizorderdetailcountmoney" id="CountMoney" name="IBIZOrderDetail/CountMoneyRuleFlow.bpmn"/>
<sequenceFlow id="begin_CountMoney" sourceRef="begin" targetRef="CountMoney"/> <sequenceFlow id="begin_CountMoney" sourceRef="begin" targetRef="CountMoney"/>
<sequenceFlow id="CountMoney_CountMoney" sourceRef="CountMoney" targetRef="prepareparam1_end"/>
<sequenceFlow id="CountMoney_prepareparam1_end" sourceRef="CountMoney" targetRef="prepareparam1_end"/>
</process> </process>
</definitions> </definitions>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?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"> <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.core.sample.ibizorderdetail.create.afterLogic" isClosed="false" isExecutable="true" name="sample_ibizorderdetail_create_afterLogic" processType="Private" tns:packageName="cn.ibizlab.core.sample.ibizorderdetail.create.afterLogic"> <process id="cn.ibizlab.core.sample.ibizorderdetail.create.afterLogic" isClosed="false" isExecutable="true"
name="sample_ibizorderdetail_create_afterLogic" processType="Private"
tns:packageName="cn.ibizlab.core.sample.ibizorderdetail.create.afterLogic">
<extensionElements> <extensionElements>
<tns:import name="java.util.Map"/> <tns:import name="java.util.Map"/>
<tns:import name="org.springframework.util.StringUtils"/> <tns:import name="org.springframework.util.StringUtils"/>
<tns:import name="cn.ibizlab.util.helper.RuleUtils"/> <tns:import name="cn.ibizlab.util.helper.RuleUtils"/>
<tns:import name="cn.ibizlab.core.sample.domain.IBIZOrderDetail"/> <tns:import name="cn.ibizlab.core.sample.domain.IBIZOrderDetail"/>
</extensionElements> </extensionElements>
<startEvent id="begin" isInterrupting="true"/>
<endEvent id="prepareparam1_end" name="end"/> <startEvent id="begin" isInterrupting="true"/>
<callActivity activiti:exclusive="true" calledElement="cn.ibizlab.core.sample.service.logic.ibizorderdetailcountmoney" id="15C5F854-82E3-43AB-93B2-31283F71CBC9" name="IBIZOrderDetailCountMoneyRuleFlow.bpmn"/> <endEvent id="prepareparam1_end" name="end"/>
<sequenceFlow id="begin_15C5F854-82E3-43AB-93B2-31283F71CBC9" sourceRef="begin" targetRef="15C5F854-82E3-43AB-93B2-31283F71CBC9"/> <callActivity activiti:exclusive="true" calledElement="cn.ibizlab.core.sample.service.logic.ibizorderdetailcountmoney" id="Create_0" name="IBIZOrderDetail/CountMoneyRuleFlow.bpmn"/>
<sequenceFlow id="15C5F854-82E3-43AB-93B2-31283F71CBC9_prepareparam1_end" sourceRef="15C5F854-82E3-43AB-93B2-31283F71CBC9" targetRef="prepareparam1_end"/>
<sequenceFlow id="begin_Create_0" sourceRef="begin" targetRef="Create_0"/>
<sequenceFlow id="Create_0_prepareparam1_end" sourceRef="Create_0" targetRef="prepareparam1_end"/>
</process> </process>
</definitions> </definitions>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?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"> <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.core.extensions.service.logic.execute" isClosed="false" isExecutable="true" name="sample_ibizorderdetail_getunitandprice.execLogic" processType="Private" tns:packageName="cn.ibizlab.core.extensions.service.logic.execute"> <process id="cn.ibizlab.core.extensions.service.logic.execute" isClosed="false" isExecutable="true" name="sample_sample_getunitandprice.execLogic" processType="Private" tns:packageName="cn.ibizlab.core.extensions.service.logic.execute">
<extensionElements> <extensionElements>
<tns:import name="java.util.Map"/> <tns:import name="java.util.Map"/>
<tns:import name="org.springframework.util.StringUtils"/> <tns:import name="org.springframework.util.StringUtils"/>
<tns:import name="cn.ibizlab.util.helper.RuleUtils"/> <tns:import name="cn.ibizlab.util.helper.RuleUtils"/>
</extensionElements> </extensionElements>
<startEvent id="begin" isInterrupting="true"/> <startEvent id="begin" isInterrupting="true"/>
<endEvent id="prepareparam1_end" name="end"/> <endEvent id="prepareparam1_end" name="end"/>
<callActivity activiti:exclusive="true" calledElement="cn.ibizlab.core.sample.service.logic.ibizorderdetailgetunitandprice" id="GetUnitAndPrice" name="IBIZOrderDetailGetUnitAndPriceRuleFlow.bpmn"/>
<callActivity activiti:exclusive="true" calledElement="cn.ibizlab.core.sampleservice.logic.ibizorderdetailgetunitandprice" id="GetUnitAndPrice" name="IBIZOrderDetail/GetUnitAndPriceRuleFlow.bpmn"/>
<sequenceFlow id="begin_GetUnitAndPrice" sourceRef="begin" targetRef="GetUnitAndPrice"/> <sequenceFlow id="begin_GetUnitAndPrice" sourceRef="begin" targetRef="GetUnitAndPrice"/>
<sequenceFlow id="GetUnitAndPrice_GetUnitAndPrice" sourceRef="GetUnitAndPrice" targetRef="prepareparam1_end"/>
<sequenceFlow id="GetUnitAndPrice_prepareparam1_end" sourceRef="GetUnitAndPrice" targetRef="prepareparam1_end"/>
</process> </process>
</definitions> </definitions>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?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"> <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.core.sample.ibizorderdetail.update.afterLogic" isClosed="false" isExecutable="true" name="sample_ibizorderdetail_update_afterLogic" processType="Private" tns:packageName="cn.ibizlab.core.sample.ibizorderdetail.update.afterLogic"> <process id="cn.ibizlab.core.sample.ibizorderdetail.update.afterLogic" isClosed="false" isExecutable="true"
name="sample_ibizorderdetail_update_afterLogic" processType="Private"
tns:packageName="cn.ibizlab.core.sample.ibizorderdetail.update.afterLogic">
<extensionElements> <extensionElements>
<tns:import name="java.util.Map"/> <tns:import name="java.util.Map"/>
<tns:import name="org.springframework.util.StringUtils"/> <tns:import name="org.springframework.util.StringUtils"/>
<tns:import name="cn.ibizlab.util.helper.RuleUtils"/> <tns:import name="cn.ibizlab.util.helper.RuleUtils"/>
<tns:import name="cn.ibizlab.core.sample.domain.IBIZOrderDetail"/> <tns:import name="cn.ibizlab.core.sample.domain.IBIZOrderDetail"/>
<tns:metaData express="T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.sample.service.IIBIZOrderDetailService))" name="ibizorderdetailService" type="service"/> <tns:metaData express="T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.sample.service.IBIZOrderDetailService))" name="ibizorderdetailService" type="service"/>
<tns:metaData express="" name="et" type="entity"/> <tns:metaData express="" name="et" type="entity"/>
</extensionElements> </extensionElements>
<startEvent id="begin" isInterrupting="true"/>
<endEvent id="prepareparam1_end" name="end"/> <startEvent id="begin" isInterrupting="true"/>
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="BB69D164-91F8-4F5A-A8F1-311F5434761A" id="BB69D164-91F8-4F5A-A8F1-311F5434761A" implementation="http://www.jboss.org/drools/rule" name="ibizorderdetailcheckkey"/> <endEvent id="prepareparam1_end" name="end"/>
<sequenceFlow id="begin_BB69D164-91F8-4F5A-A8F1-311F5434761A" sourceRef="begin" targetRef="BB69D164-91F8-4F5A-A8F1-311F5434761A"/> <businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="Update_0" id="Update_0" implementation="http://www.jboss.org/drools/rule" name="ibizorderdetailcheckkey"/>
<sequenceFlow id="BB69D164-91F8-4F5A-A8F1-311F5434761A_prepareparam1_end" sourceRef="BB69D164-91F8-4F5A-A8F1-311F5434761A" targetRef="prepareparam1_end"/>
<sequenceFlow id="begin_Update_0" sourceRef="begin" targetRef="Update_0"/>
<sequenceFlow id="Update_0_prepareparam1_end" sourceRef="Update_0" targetRef="prepareparam1_end"/>
</process> </process>
</definitions> </definitions>
global cn.ibizlab.core.sample.service.IIBIZOrderDetailService ibizorderdetailService;
import cn.ibizlab.util.helper.CachedBeanCopier; import cn.ibizlab.util.helper.CachedBeanCopier;
global cn.ibizlab.core.sample.domain.IBIZOrderDetail et; global cn.ibizlab.core.sample.domain.IBIZOrderDetail et;
global cn.ibizlab.core.sample.service.IBIZOrderDetailService ibizorderdetailService;
no-loop
rule "ibizorderdetailcheckkey"
ruleflow-group "Update_0"
when
then
cn.ibizlab.core.sample.domain.IBIZOrderDetail actionLogicDE =new cn.ibizlab.core.sample.domain.IBIZOrderDetail();
CachedBeanCopier.copy(et, actionLogicDE);
ibizorderdetailService.checkKey(actionLogicDE);
end
no-loop
rule "ibizorderdetailcheckkey"
ruleflow-group "BB69D164-91F8-4F5A-A8F1-311F5434761A"
when
then
cn.ibizlab.core.sample.domain.IBIZOrderDetail actionLogicDE =new cn.ibizlab.core.sample.domain.IBIZOrderDetail();
CachedBeanCopier.copy(et, actionLogicDE);
ibizorderdetailService.checkKey(actionLogicDE);
end
[ [
{
"name": "年度",
"code": "Years",
"group": "",
"memo": "",
}
]
\ No newline at end of file
{
"name":"年度",
"code":"Years",
"group":"",
"memo":"",
"enable":"",
}
]
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<artifactId>demo</artifactId> <artifactId>demo</artifactId>
<groupId>cn.ibizlab</groupId> <groupId>cn.ibizlab</groupId>
<version>1.0.0.0</version> <version>1.0.0.0</version>
<name>后台服务</name> <name>Demo</name>
<description></description> <description>后台服务</description>
<packaging>pom</packaging> <packaging>pom</packaging>
<parent> <parent>
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
<generateBackupPoms>false</generateBackupPoms> <generateBackupPoms>false</generateBackupPoms>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>cn.ibizlab</groupId> <groupId>cn.ibizlab</groupId>
<artifactId>ibizlab-generator-plugin</artifactId> <artifactId>ibizlab-generator-plugin</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
...@@ -137,4 +137,4 @@ ...@@ -137,4 +137,4 @@
</plugins> </plugins>
</build> </build>
</project> </project>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册