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

ibizdev提交

上级 6c98379e
...@@ -37,6 +37,11 @@ ...@@ -37,6 +37,11 @@
git clone -b master $para2 ibzwf/ git clone -b master $para2 ibzwf/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibzwf/ cd ibzwf/
mvn clean package -Papi
cd ibzwf-provider/ibzwf-provider-api
mvn -Papi docker:build
mvn -Papi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzwf-provider-api.yaml ibzlab-rt --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -48,7 +48,6 @@ public class WFGroupServiceImpl extends ServiceImpl<WFGroupMapper, WFGroup> impl ...@@ -48,7 +48,6 @@ public class WFGroupServiceImpl extends ServiceImpl<WFGroupMapper, WFGroup> impl
@Lazy @Lazy
private cn.ibizlab.core.workflow.service.IWFMemberService wfmemberService; private cn.ibizlab.core.workflow.service.IWFMemberService wfmemberService;
private int batchSize = 500; private int batchSize = 500;
@Override @Override
...@@ -120,8 +119,8 @@ public class WFGroupServiceImpl extends ServiceImpl<WFGroupMapper, WFGroup> impl ...@@ -120,8 +119,8 @@ public class WFGroupServiceImpl extends ServiceImpl<WFGroupMapper, WFGroup> impl
@Transactional @Transactional
public boolean remove(String key) { public boolean remove(String key) {
wfmemberService.removeByGroupid(key) ; wfmemberService.removeByGroupid(key) ;
if(!removeById(key)) return false; boolean result=removeById(key);
return true ; return result ;
} }
@Override @Override
......
...@@ -44,7 +44,6 @@ import org.springframework.util.StringUtils; ...@@ -44,7 +44,6 @@ import org.springframework.util.StringUtils;
@Service("WFMemberServiceImpl") @Service("WFMemberServiceImpl")
public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> implements IWFMemberService { public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> implements IWFMemberService {
@Autowired @Autowired
@Lazy @Lazy
private cn.ibizlab.core.workflow.service.IWFGroupService wfgroupService; private cn.ibizlab.core.workflow.service.IWFGroupService wfgroupService;
...@@ -61,6 +60,7 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i ...@@ -61,6 +60,7 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
@Override @Override
public WFMember getDraft(WFMember et) { public WFMember getDraft(WFMember et) {
fillParentData(et);
return et; return et;
} }
...@@ -76,14 +76,15 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i ...@@ -76,14 +76,15 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
@Override @Override
public void createBatch(List<WFMember> list) { public void createBatch(List<WFMember> list) {
list.forEach(item->fillParentData(item));
saveBatch(list,batchSize); saveBatch(list,batchSize);
} }
@Override @Override
@Transactional @Transactional
public boolean remove(String key) { public boolean remove(String key) {
if(!removeById(key)) return false; boolean result=removeById(key);
return true ; return result ;
} }
@Override @Override
...@@ -113,6 +114,7 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i ...@@ -113,6 +114,7 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
@Override @Override
public void saveBatch(List<WFMember> list) { public void saveBatch(List<WFMember> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize); saveOrUpdateBatch(list,batchSize);
} }
...@@ -128,6 +130,7 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i ...@@ -128,6 +130,7 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
@Override @Override
public void updateBatch(List<WFMember> list) { public void updateBatch(List<WFMember> list) {
list.forEach(item->fillParentData(item));
updateBatchById(list,batchSize); updateBatchById(list,batchSize);
} }
......
...@@ -45,7 +45,6 @@ import org.springframework.util.StringUtils; ...@@ -45,7 +45,6 @@ import org.springframework.util.StringUtils;
public class WFProcessDefinitionServiceImpl extends ServiceImpl<WFProcessDefinitionMapper, WFProcessDefinition> implements IWFProcessDefinitionService { public class WFProcessDefinitionServiceImpl extends ServiceImpl<WFProcessDefinitionMapper, WFProcessDefinition> implements IWFProcessDefinitionService {
private int batchSize = 500; private int batchSize = 500;
@Override @Override
...@@ -127,8 +126,8 @@ public class WFProcessDefinitionServiceImpl extends ServiceImpl<WFProcessDefinit ...@@ -127,8 +126,8 @@ public class WFProcessDefinitionServiceImpl extends ServiceImpl<WFProcessDefinit
@Override @Override
@Transactional @Transactional
public boolean remove(String key) { public boolean remove(String key) {
if(!removeById(key)) return false; boolean result=removeById(key);
return true ; return result ;
} }
@Override @Override
......
...@@ -30,7 +30,6 @@ import cn.ibizlab.core.workflow.service.IWFProcessInstanceService; ...@@ -30,7 +30,6 @@ import cn.ibizlab.core.workflow.service.IWFProcessInstanceService;
import cn.ibizlab.util.helper.CachedBeanCopier; import cn.ibizlab.util.helper.CachedBeanCopier;
/** /**
* 实体[流程实例] 无存储服务对象接口实现 * 实体[流程实例] 无存储服务对象接口实现
*/ */
...@@ -39,9 +38,9 @@ import cn.ibizlab.util.helper.CachedBeanCopier; ...@@ -39,9 +38,9 @@ import cn.ibizlab.util.helper.CachedBeanCopier;
public class WFProcessInstanceServiceImpl implements IWFProcessInstanceService { public class WFProcessInstanceServiceImpl implements IWFProcessInstanceService {
@Override @Override
public boolean update(WFProcessInstance et) { public boolean update(WFProcessInstance et) {
//代码实现
return true; return true;
} }
...@@ -52,6 +51,7 @@ public class WFProcessInstanceServiceImpl implements IWFProcessInstanceService { ...@@ -52,6 +51,7 @@ public class WFProcessInstanceServiceImpl implements IWFProcessInstanceService {
@Override @Override
@Transactional @Transactional
public boolean save(WFProcessInstance et) { public boolean save(WFProcessInstance et) {
//代码实现
return true; return true;
} }
...@@ -62,11 +62,11 @@ public class WFProcessInstanceServiceImpl implements IWFProcessInstanceService { ...@@ -62,11 +62,11 @@ public class WFProcessInstanceServiceImpl implements IWFProcessInstanceService {
@Override @Override
public WFProcessInstance getDraft(WFProcessInstance et) { public WFProcessInstance getDraft(WFProcessInstance et) {
return null; return et;
} }
@Override @Override
public boolean remove(String id) { public boolean remove(String key) {
return true; return true;
} }
...@@ -75,8 +75,10 @@ public class WFProcessInstanceServiceImpl implements IWFProcessInstanceService { ...@@ -75,8 +75,10 @@ public class WFProcessInstanceServiceImpl implements IWFProcessInstanceService {
} }
@Override @Override
public WFProcessInstance get(String id) { public WFProcessInstance get(String key) {
return null; WFProcessInstance et = new WFProcessInstance();
et.setId(id);
return et;
} }
@Override @Override
...@@ -85,6 +87,7 @@ public class WFProcessInstanceServiceImpl implements IWFProcessInstanceService { ...@@ -85,6 +87,7 @@ public class WFProcessInstanceServiceImpl implements IWFProcessInstanceService {
} }
@Override @Override
public boolean create(WFProcessInstance et) { public boolean create(WFProcessInstance et) {
//代码实现
return true; return true;
} }
...@@ -101,7 +104,7 @@ public class WFProcessInstanceServiceImpl implements IWFProcessInstanceService { ...@@ -101,7 +104,7 @@ public class WFProcessInstanceServiceImpl implements IWFProcessInstanceService {
*/ */
@Override @Override
public Page<WFProcessInstance> searchDefault(WFProcessInstanceSearchContext context) { public Page<WFProcessInstance> searchDefault(WFProcessInstanceSearchContext context) {
return null; return new PageImpl<WFProcessInstance>(new ArrayList(),context.getPageable(),0);
} }
......
...@@ -30,7 +30,6 @@ import cn.ibizlab.core.workflow.service.IWFProcessNodeService; ...@@ -30,7 +30,6 @@ import cn.ibizlab.core.workflow.service.IWFProcessNodeService;
import cn.ibizlab.util.helper.CachedBeanCopier; import cn.ibizlab.util.helper.CachedBeanCopier;
/** /**
* 实体[流程定义节点] 无存储服务对象接口实现 * 实体[流程定义节点] 无存储服务对象接口实现
*/ */
...@@ -39,9 +38,8 @@ import cn.ibizlab.util.helper.CachedBeanCopier; ...@@ -39,9 +38,8 @@ import cn.ibizlab.util.helper.CachedBeanCopier;
public class WFProcessNodeServiceImpl implements IWFProcessNodeService { public class WFProcessNodeServiceImpl implements IWFProcessNodeService {
@Override @Override
public boolean remove(String usertaskid) { public boolean remove(String key) {
return true; return true;
} }
...@@ -56,6 +54,7 @@ public class WFProcessNodeServiceImpl implements IWFProcessNodeService { ...@@ -56,6 +54,7 @@ public class WFProcessNodeServiceImpl implements IWFProcessNodeService {
@Override @Override
@Transactional @Transactional
public boolean save(WFProcessNode et) { public boolean save(WFProcessNode et) {
//代码实现
return true; return true;
} }
...@@ -65,12 +64,15 @@ public class WFProcessNodeServiceImpl implements IWFProcessNodeService { ...@@ -65,12 +64,15 @@ public class WFProcessNodeServiceImpl implements IWFProcessNodeService {
} }
@Override @Override
public WFProcessNode get(String usertaskid) { public WFProcessNode get(String key) {
return null; WFProcessNode et = new WFProcessNode();
et.setUsertaskid(usertaskid);
return et;
} }
@Override @Override
public boolean create(WFProcessNode et) { public boolean create(WFProcessNode et) {
//代码实现
return true; return true;
} }
...@@ -80,6 +82,7 @@ public class WFProcessNodeServiceImpl implements IWFProcessNodeService { ...@@ -80,6 +82,7 @@ public class WFProcessNodeServiceImpl implements IWFProcessNodeService {
@Override @Override
public boolean update(WFProcessNode et) { public boolean update(WFProcessNode et) {
//代码实现
return true; return true;
} }
...@@ -89,7 +92,7 @@ public class WFProcessNodeServiceImpl implements IWFProcessNodeService { ...@@ -89,7 +92,7 @@ public class WFProcessNodeServiceImpl implements IWFProcessNodeService {
@Override @Override
public WFProcessNode getDraft(WFProcessNode et) { public WFProcessNode getDraft(WFProcessNode et) {
return null; return et;
} }
...@@ -101,7 +104,7 @@ public class WFProcessNodeServiceImpl implements IWFProcessNodeService { ...@@ -101,7 +104,7 @@ public class WFProcessNodeServiceImpl implements IWFProcessNodeService {
*/ */
@Override @Override
public Page<WFProcessNode> searchDefault(WFProcessNodeSearchContext context) { public Page<WFProcessNode> searchDefault(WFProcessNodeSearchContext context) {
return null; return new PageImpl<WFProcessNode>(new ArrayList(),context.getPageable(),0);
} }
......
...@@ -45,14 +45,13 @@ import org.springframework.util.StringUtils; ...@@ -45,14 +45,13 @@ import org.springframework.util.StringUtils;
public class WFSystemServiceImpl extends ServiceImpl<WFSystemMapper, WFSystem> implements IWFSystemService { public class WFSystemServiceImpl extends ServiceImpl<WFSystemMapper, WFSystem> implements IWFSystemService {
private int batchSize = 500; private int batchSize = 500;
@Override @Override
@Transactional @Transactional
public boolean remove(String key) { public boolean remove(String key) {
if(!removeById(key)) return false; boolean result=removeById(key);
return true ; return result ;
} }
@Override @Override
......
...@@ -30,7 +30,6 @@ import cn.ibizlab.core.workflow.service.IWFTaskService; ...@@ -30,7 +30,6 @@ import cn.ibizlab.core.workflow.service.IWFTaskService;
import cn.ibizlab.util.helper.CachedBeanCopier; import cn.ibizlab.util.helper.CachedBeanCopier;
/** /**
* 实体[工作流任务] 无存储服务对象接口实现 * 实体[工作流任务] 无存储服务对象接口实现
*/ */
...@@ -39,9 +38,9 @@ import cn.ibizlab.util.helper.CachedBeanCopier; ...@@ -39,9 +38,9 @@ import cn.ibizlab.util.helper.CachedBeanCopier;
public class WFTaskServiceImpl implements IWFTaskService { public class WFTaskServiceImpl implements IWFTaskService {
@Override @Override
public boolean create(WFTask et) { public boolean create(WFTask et) {
//代码实现
return true; return true;
} }
...@@ -51,11 +50,11 @@ public class WFTaskServiceImpl implements IWFTaskService { ...@@ -51,11 +50,11 @@ public class WFTaskServiceImpl implements IWFTaskService {
@Override @Override
public WFTask getDraft(WFTask et) { public WFTask getDraft(WFTask et) {
return null; return et;
} }
@Override @Override
public boolean remove(String id) { public boolean remove(String key) {
return true; return true;
} }
...@@ -69,6 +68,7 @@ public class WFTaskServiceImpl implements IWFTaskService { ...@@ -69,6 +68,7 @@ public class WFTaskServiceImpl implements IWFTaskService {
} }
@Override @Override
public boolean update(WFTask et) { public boolean update(WFTask et) {
//代码实现
return true; return true;
} }
...@@ -77,13 +77,16 @@ public class WFTaskServiceImpl implements IWFTaskService { ...@@ -77,13 +77,16 @@ public class WFTaskServiceImpl implements IWFTaskService {
} }
@Override @Override
public WFTask get(String id) { public WFTask get(String key) {
return null; WFTask et = new WFTask();
et.setId(id);
return et;
} }
@Override @Override
@Transactional @Transactional
public boolean save(WFTask et) { public boolean save(WFTask et) {
//代码实现
return true; return true;
} }
...@@ -101,7 +104,7 @@ public class WFTaskServiceImpl implements IWFTaskService { ...@@ -101,7 +104,7 @@ public class WFTaskServiceImpl implements IWFTaskService {
*/ */
@Override @Override
public Page<WFTask> searchDefault(WFTaskSearchContext context) { public Page<WFTask> searchDefault(WFTaskSearchContext context) {
return null; return new PageImpl<WFTask>(new ArrayList(),context.getPageable(),0);
} }
......
...@@ -30,7 +30,6 @@ import cn.ibizlab.core.workflow.service.IWFTaskWayService; ...@@ -30,7 +30,6 @@ import cn.ibizlab.core.workflow.service.IWFTaskWayService;
import cn.ibizlab.util.helper.CachedBeanCopier; import cn.ibizlab.util.helper.CachedBeanCopier;
/** /**
* 实体[操作路径] 无存储服务对象接口实现 * 实体[操作路径] 无存储服务对象接口实现
*/ */
...@@ -39,13 +38,13 @@ import cn.ibizlab.util.helper.CachedBeanCopier; ...@@ -39,13 +38,13 @@ import cn.ibizlab.util.helper.CachedBeanCopier;
public class WFTaskWayServiceImpl implements IWFTaskWayService { public class WFTaskWayServiceImpl implements IWFTaskWayService {
@Override @Override
public boolean checkKey(WFTaskWay et) { public boolean checkKey(WFTaskWay et) {
return false; return false;
} }
@Override @Override
public boolean create(WFTaskWay et) { public boolean create(WFTaskWay et) {
//代码实现
return true; return true;
} }
...@@ -55,16 +54,18 @@ public class WFTaskWayServiceImpl implements IWFTaskWayService { ...@@ -55,16 +54,18 @@ public class WFTaskWayServiceImpl implements IWFTaskWayService {
@Override @Override
public WFTaskWay getDraft(WFTaskWay et) { public WFTaskWay getDraft(WFTaskWay et) {
return null; return et;
} }
@Override @Override
public WFTaskWay get(String sequenceflowid) { public WFTaskWay get(String key) {
return null; WFTaskWay et = new WFTaskWay();
et.setSequenceflowid(sequenceflowid);
return et;
} }
@Override @Override
public boolean remove(String sequenceflowid) { public boolean remove(String key) {
return true; return true;
} }
...@@ -74,6 +75,7 @@ public class WFTaskWayServiceImpl implements IWFTaskWayService { ...@@ -74,6 +75,7 @@ public class WFTaskWayServiceImpl implements IWFTaskWayService {
@Override @Override
public boolean update(WFTaskWay et) { public boolean update(WFTaskWay et) {
//代码实现
return true; return true;
} }
...@@ -84,6 +86,7 @@ public class WFTaskWayServiceImpl implements IWFTaskWayService { ...@@ -84,6 +86,7 @@ public class WFTaskWayServiceImpl implements IWFTaskWayService {
@Override @Override
@Transactional @Transactional
public boolean save(WFTaskWay et) { public boolean save(WFTaskWay et) {
//代码实现
return true; return true;
} }
...@@ -101,7 +104,7 @@ public class WFTaskWayServiceImpl implements IWFTaskWayService { ...@@ -101,7 +104,7 @@ public class WFTaskWayServiceImpl implements IWFTaskWayService {
*/ */
@Override @Override
public Page<WFTaskWay> searchDefault(WFTaskWaySearchContext context) { public Page<WFTaskWay> searchDefault(WFTaskWaySearchContext context) {
return null; return new PageImpl<WFTaskWay>(new ArrayList(),context.getPageable(),0);
} }
......
...@@ -48,14 +48,13 @@ public class WFUserServiceImpl extends ServiceImpl<WFUserMapper, WFUser> impleme ...@@ -48,14 +48,13 @@ public class WFUserServiceImpl extends ServiceImpl<WFUserMapper, WFUser> impleme
@Lazy @Lazy
private cn.ibizlab.core.workflow.service.IWFMemberService wfmemberService; private cn.ibizlab.core.workflow.service.IWFMemberService wfmemberService;
private int batchSize = 500; private int batchSize = 500;
@Override @Override
@Transactional @Transactional
public boolean remove(String key) { public boolean remove(String key) {
if(!removeById(key)) return false; boolean result=removeById(key);
return true ; return result ;
} }
@Override @Override
......
...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \ sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzwf-provider-api.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzwf-provider-api.jar
EXPOSE 8081 EXPOSE 40003
ADD ibzwf-provider-api.jar /ibzwf-provider-api.jar ADD ibzwf-provider-api.jar /ibzwf-provider-api.jar
...@@ -3,9 +3,11 @@ services: ...@@ -3,9 +3,11 @@ services:
ibzwf-provider-api: ibzwf-provider-api:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzwf-provider-api:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzwf-provider-api:latest
ports: ports:
- "8081:8081" - "40003:40003"
networks: networks:
- agent_network - agent_network
environment:
SPRING_CLOUD_NACOS_DISCOVERY_IP: 172.16.180.237
deploy: deploy:
mode: replicated mode: replicated
replicas: 1 replicas: 1
......
server: server:
port: 8081 port: 40003
\ No newline at end of file \ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册