Class FlowableBpmnProcessManager
- java.lang.Object
-
- org.apache.syncope.core.flowable.impl.FlowableBpmnProcessManager
-
- All Implemented Interfaces:
BpmnProcessManager
@Transactional(propagation=REQUIRES_NEW, rollbackFor=java.lang.Throwable.class) public class FlowableBpmnProcessManager extends Object implements BpmnProcessManager
-
-
Field Summary
Fields Modifier and Type Field Description protected DomainProcessEngineengineprotected static LoggerLOGprotected static JsonMapperMAPPERprotected static StringMODEL_DATA_JSON_MODEL
-
Constructor Summary
Constructors Constructor Description FlowableBpmnProcessManager(DomainProcessEngine engine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteProcess(String key)Remove the process for the given key.voidexportDiagram(String key, OutputStream os)Export the process graphical representation for the given key (if available).voidexportProcess(String key, BpmnProcessFormat format, OutputStream os)Export the process for the given key, in the requested format.protected voidexportProcessModel(String key, OutputStream os)protected voidexportProcessResource(String deploymentId, String resourceName, OutputStream os)protected org.flowable.engine.repository.ModelgetModel(org.flowable.engine.repository.ProcessDefinition procDef)List<BpmnProcess>getProcesses()voidimportProcess(String key, BpmnProcessFormat format, String definition)Import the process for the given key.
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
MAPPER
protected static final JsonMapper MAPPER
-
MODEL_DATA_JSON_MODEL
protected static final String MODEL_DATA_JSON_MODEL
- See Also:
- Constant Field Values
-
engine
protected final DomainProcessEngine engine
-
-
Constructor Detail
-
FlowableBpmnProcessManager
public FlowableBpmnProcessManager(DomainProcessEngine engine)
-
-
Method Detail
-
getModel
protected org.flowable.engine.repository.Model getModel(org.flowable.engine.repository.ProcessDefinition procDef)
-
getProcesses
public List<BpmnProcess> getProcesses()
- Specified by:
getProcessesin interfaceBpmnProcessManager- Returns:
- all available workflow processes.
-
exportProcessModel
protected void exportProcessModel(String key, OutputStream os)
-
exportProcessResource
protected void exportProcessResource(String deploymentId, String resourceName, OutputStream os)
-
exportProcess
public void exportProcess(String key, BpmnProcessFormat format, OutputStream os)
Description copied from interface:BpmnProcessManagerExport the process for the given key, in the requested format.- Specified by:
exportProcessin interfaceBpmnProcessManager- Parameters:
key- process keyformat- export formatos- export stream
-
exportDiagram
public void exportDiagram(String key, OutputStream os)
Description copied from interface:BpmnProcessManagerExport the process graphical representation for the given key (if available).- Specified by:
exportDiagramin interfaceBpmnProcessManager- Parameters:
key- process keyos- export stream
-
importProcess
public void importProcess(String key, BpmnProcessFormat format, String definition)
Description copied from interface:BpmnProcessManagerImport the process for the given key.- Specified by:
importProcessin interfaceBpmnProcessManager- Parameters:
key- process keyformat- import formatdefinition- process
-
deleteProcess
public void deleteProcess(String key)
Description copied from interface:BpmnProcessManagerRemove the process for the given key.- Specified by:
deleteProcessin interfaceBpmnProcessManager- Parameters:
key- process key
-
-