28 changed files with 212 additions and 113 deletions
@ -1,35 +0,0 @@ |
|||||||
package org.springblade.flowable.engine.entity; |
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName; |
|
||||||
import lombok.Data; |
|
||||||
|
|
||||||
import java.io.Serializable; |
|
||||||
import java.util.Date; |
|
||||||
|
|
||||||
/** |
|
||||||
* 流程模型 |
|
||||||
* |
|
||||||
* @author Chill |
|
||||||
*/ |
|
||||||
@Data |
|
||||||
@TableName("ACT_DE_MODEL") |
|
||||||
public class FlowModel implements Serializable { |
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L; |
|
||||||
|
|
||||||
private String id; |
|
||||||
private String name; |
|
||||||
private String modelKey; |
|
||||||
private String description; |
|
||||||
private Date created; |
|
||||||
private Date lastUpdated; |
|
||||||
private String createdBy; |
|
||||||
private String lastUpdatedBy; |
|
||||||
private Integer version; |
|
||||||
private String modelEditorJson; |
|
||||||
private String modelComment; |
|
||||||
private Integer modelType; |
|
||||||
private String tenantId; |
|
||||||
private byte[] thumbnail; |
|
||||||
|
|
||||||
} |
|
@ -1,23 +0,0 @@ |
|||||||
package org.springblade.flowable.engine.mapper; |
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
||||||
import org.springblade.flowable.engine.entity.FlowModel; |
|
||||||
|
|
||||||
import java.util.List; |
|
||||||
|
|
||||||
/** |
|
||||||
* FlowMapper. |
|
||||||
* |
|
||||||
* @author Chill |
|
||||||
*/ |
|
||||||
public interface FlowMapper extends BaseMapper<FlowModel> { |
|
||||||
|
|
||||||
/** |
|
||||||
* 自定义分页 |
|
||||||
* @param page |
|
||||||
* @param flowModel |
|
||||||
* @return |
|
||||||
*/ |
|
||||||
List<FlowModel> selectFlowPage(IPage page, FlowModel flowModel); |
|
||||||
} |
|
@ -1,21 +0,0 @@ |
|||||||
package org.springblade.flowable.engine.service; |
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
||||||
import com.baomidou.mybatisplus.extension.service.IService; |
|
||||||
import org.springblade.flowable.engine.entity.FlowModel; |
|
||||||
|
|
||||||
/** |
|
||||||
* FlowService |
|
||||||
* |
|
||||||
* @author Chill |
|
||||||
*/ |
|
||||||
public interface FlowService extends IService<FlowModel> { |
|
||||||
|
|
||||||
/** |
|
||||||
* 自定义分页 |
|
||||||
* @param page |
|
||||||
* @param flowModel |
|
||||||
* @return |
|
||||||
*/ |
|
||||||
IPage<FlowModel> selectFlowPage(IPage<FlowModel> page, FlowModel flowModel); |
|
||||||
} |
|
@ -1,21 +0,0 @@ |
|||||||
package org.springblade.flowable.engine.service.impl; |
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
||||||
import org.springblade.flowable.engine.entity.FlowModel; |
|
||||||
import org.springblade.flowable.engine.mapper.FlowMapper; |
|
||||||
import org.springblade.flowable.engine.service.FlowService; |
|
||||||
import org.springframework.stereotype.Service; |
|
||||||
|
|
||||||
/** |
|
||||||
* FlowServiceImpl |
|
||||||
* |
|
||||||
* @author Chill |
|
||||||
*/ |
|
||||||
@Service |
|
||||||
public class FlowServiceImpl extends ServiceImpl<FlowMapper, FlowModel> implements FlowService { |
|
||||||
@Override |
|
||||||
public IPage<FlowModel> selectFlowPage(IPage<FlowModel> page, FlowModel flowModel) { |
|
||||||
return page.setRecords(baseMapper.selectFlowPage(page, flowModel)); |
|
||||||
} |
|
||||||
} |
|
@ -0,0 +1,51 @@ |
|||||||
|
/* |
||||||
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||||
|
* |
||||||
|
* Redistribution and use in source and binary forms, with or without |
||||||
|
* modification, are permitted provided that the following conditions are met: |
||||||
|
* |
||||||
|
* Redistributions of source code must retain the above copyright notice, |
||||||
|
* this list of conditions and the following disclaimer. |
||||||
|
* Redistributions in binary form must reproduce the above copyright |
||||||
|
* notice, this list of conditions and the following disclaimer in the |
||||||
|
* documentation and/or other materials provided with the distribution. |
||||||
|
* Neither the name of the dreamlu.net developer nor the names of its |
||||||
|
* contributors may be used to endorse or promote products derived from |
||||||
|
* this software without specific prior written permission. |
||||||
|
* Author: Chill 庄骞 (smallchill@163.com) |
||||||
|
*/ |
||||||
|
package org.springblade.flowable.engine.entity; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
import java.util.Date; |
||||||
|
|
||||||
|
/** |
||||||
|
* 流程模型 |
||||||
|
* |
||||||
|
* @author Chill |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@TableName("ACT_DE_MODEL") |
||||||
|
public class FlowModel implements Serializable { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
private String id; |
||||||
|
private String name; |
||||||
|
private String modelKey; |
||||||
|
private String description; |
||||||
|
private Date created; |
||||||
|
private Date lastUpdated; |
||||||
|
private String createdBy; |
||||||
|
private String lastUpdatedBy; |
||||||
|
private Integer version; |
||||||
|
private String modelEditorJson; |
||||||
|
private String modelComment; |
||||||
|
private Integer modelType; |
||||||
|
private String tenantId; |
||||||
|
private byte[] thumbnail; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,39 @@ |
|||||||
|
/* |
||||||
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||||
|
* |
||||||
|
* Redistribution and use in source and binary forms, with or without |
||||||
|
* modification, are permitted provided that the following conditions are met: |
||||||
|
* |
||||||
|
* Redistributions of source code must retain the above copyright notice, |
||||||
|
* this list of conditions and the following disclaimer. |
||||||
|
* Redistributions in binary form must reproduce the above copyright |
||||||
|
* notice, this list of conditions and the following disclaimer in the |
||||||
|
* documentation and/or other materials provided with the distribution. |
||||||
|
* Neither the name of the dreamlu.net developer nor the names of its |
||||||
|
* contributors may be used to endorse or promote products derived from |
||||||
|
* this software without specific prior written permission. |
||||||
|
* Author: Chill 庄骞 (smallchill@163.com) |
||||||
|
*/ |
||||||
|
package org.springblade.flowable.engine.mapper; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import org.springblade.flowable.engine.entity.FlowModel; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* FlowMapper. |
||||||
|
* |
||||||
|
* @author Chill |
||||||
|
*/ |
||||||
|
public interface FlowMapper extends BaseMapper<FlowModel> { |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* @param page |
||||||
|
* @param flowModel |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<FlowModel> selectFlowPage(IPage page, FlowModel flowModel); |
||||||
|
} |
@ -0,0 +1,47 @@ |
|||||||
|
/* |
||||||
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||||
|
* |
||||||
|
* Redistribution and use in source and binary forms, with or without |
||||||
|
* modification, are permitted provided that the following conditions are met: |
||||||
|
* |
||||||
|
* Redistributions of source code must retain the above copyright notice, |
||||||
|
* this list of conditions and the following disclaimer. |
||||||
|
* Redistributions in binary form must reproduce the above copyright |
||||||
|
* notice, this list of conditions and the following disclaimer in the |
||||||
|
* documentation and/or other materials provided with the distribution. |
||||||
|
* Neither the name of the dreamlu.net developer nor the names of its |
||||||
|
* contributors may be used to endorse or promote products derived from |
||||||
|
* this software without specific prior written permission. |
||||||
|
* Author: Chill 庄骞 (smallchill@163.com) |
||||||
|
*/ |
||||||
|
package org.springblade.flowable.engine.service; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||||
|
import org.springblade.flowable.engine.entity.FlowModel; |
||||||
|
|
||||||
|
/** |
||||||
|
* FlowService |
||||||
|
* |
||||||
|
* @author Chill |
||||||
|
*/ |
||||||
|
public interface FlowService extends IService<FlowModel> { |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page 分页工具 |
||||||
|
* @param flowModel 流程模型 |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
IPage<FlowModel> selectFlowPage(IPage<FlowModel> page, FlowModel flowModel); |
||||||
|
|
||||||
|
/** |
||||||
|
* 部署流程 |
||||||
|
* |
||||||
|
* @param modelId 模型id |
||||||
|
* @param category 分类 |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
boolean deploy(String modelId, String category); |
||||||
|
} |
@ -0,0 +1,42 @@ |
|||||||
|
/* |
||||||
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||||
|
* |
||||||
|
* Redistribution and use in source and binary forms, with or without |
||||||
|
* modification, are permitted provided that the following conditions are met: |
||||||
|
* |
||||||
|
* Redistributions of source code must retain the above copyright notice, |
||||||
|
* this list of conditions and the following disclaimer. |
||||||
|
* Redistributions in binary form must reproduce the above copyright |
||||||
|
* notice, this list of conditions and the following disclaimer in the |
||||||
|
* documentation and/or other materials provided with the distribution. |
||||||
|
* Neither the name of the dreamlu.net developer nor the names of its |
||||||
|
* contributors may be used to endorse or promote products derived from |
||||||
|
* this software without specific prior written permission. |
||||||
|
* Author: Chill 庄骞 (smallchill@163.com) |
||||||
|
*/ |
||||||
|
package org.springblade.flowable.engine.service.impl; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||||
|
import org.springblade.flowable.engine.entity.FlowModel; |
||||||
|
import org.springblade.flowable.engine.mapper.FlowMapper; |
||||||
|
import org.springblade.flowable.engine.service.FlowService; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
/** |
||||||
|
* FlowServiceImpl |
||||||
|
* |
||||||
|
* @author Chill |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class FlowServiceImpl extends ServiceImpl<FlowMapper, FlowModel> implements FlowService { |
||||||
|
@Override |
||||||
|
public IPage<FlowModel> selectFlowPage(IPage<FlowModel> page, FlowModel flowModel) { |
||||||
|
return page.setRecords(baseMapper.selectFlowPage(page, flowModel)); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public boolean deploy(String modelId, String category) { |
||||||
|
return false; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue