public interface DefService extends IWarmService<Definition>
| Modifier and Type | Method and Description |
|---|---|
boolean |
active(Long id)
激活流程
|
boolean |
checkAndSave(Definition definition)
新增流程定义表数据,新增后需要通过saveXml接口保存流程节点和流程跳转数据
校验后新增
|
void |
closeFlowByCodeList(List<String> flowCodeList) |
boolean |
copyDef(Long id)
复制流程定义
|
org.dom4j.Document |
exportXml(Long id)
导出流程定义(流程定义、流程节点和流程跳转数据)xml的Document对象
|
String |
flowChart(Long instanceId)
根据流程实例ID,获取流程图的图片流(渲染颜色)
|
List<FlowChart> |
flowChartData(Long instanceId)
根据流程实例ID,获取流程图元数据
|
String |
flowChartNoColor(Long definitionId)
根据流程定义ID,获取流程图的图片流(不渲染颜色)
|
List<FlowChart> |
flowChartNoColorData(Long definitionId)
根据流程定义ID,获取流程图元数据
|
Definition |
importXml(InputStream is)
导入流程定义、流程节点和流程跳转数据
|
boolean |
publish(Long id)
发布流程定义
|
List<Definition> |
queryByCodeList(List<String> flowCodeList) |
boolean |
removeDef(List<Long> ids)
删除流程定义相关数据
|
void |
saveXml(Definition def)
保存流程节点和流程跳转数据
|
void |
saveXml(Long id,
String xmlString)
保存流程节点和流程跳转数据
|
boolean |
unActive(Long id)
挂起流程:流程定义挂起后,相关的流程实例都无法继续流转
|
boolean |
unPublish(Long id)
取消发布流程定义
|
String |
xmlString(Long id)
获取流程定义xml(流程定义、流程节点和流程跳转数据)的字符串
|
exists, getById, getByIds, getDao, getOne, list, list, orderBy, orderByAsc, orderByCreateTime, orderByDesc, orderById, orderByUpdateTime, page, remove, removeById, removeByIds, save, saveBatch, saveBatch, selectCount, updateBatch, updateByIdDefinition importXml(InputStream is) throws Exception
is - 流程定义xml的输入流Exceptionvoid saveXml(Definition def) throws Exception
def - 流程定义对象Exceptionvoid saveXml(Long id, String xmlString) throws Exception
id - 流程定义idxmlString - 流程定义xml字符串Exceptionorg.dom4j.Document exportXml(Long id)
id - 流程定义idString xmlString(Long id)
id - 流程定义idList<Definition> queryByCodeList(List<String> flowCodeList)
void closeFlowByCodeList(List<String> flowCodeList)
boolean checkAndSave(Definition definition)
definition - 流程定义对象String flowChart(Long instanceId) throws IOException
instanceId - 流程实例idIOExceptionList<FlowChart> flowChartData(Long instanceId) throws IOException
instanceId - 流程实例idIOExceptionString flowChartNoColor(Long definitionId) throws IOException
definitionId - 流程定义idIOExceptionList<FlowChart> flowChartNoColorData(Long definitionId) throws IOException
definitionId - 流程定义idIOExceptionCopyright © 2024. All rights reserved.