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 DomainProcessEngine
engine
protected static Logger
LOG
protected static JsonMapper
MAPPER
protected static String
MODEL_DATA_JSON_MODEL
-
Constructor Summary
Constructors Constructor Description FlowableBpmnProcessManager(DomainProcessEngine engine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteProcess(String key)
Remove the process for the given key.void
exportDiagram(String key, OutputStream os)
Export the process graphical representation for the given key (if available).void
exportProcess(String key, BpmnProcessFormat format, OutputStream os)
Export the process for the given key, in the requested format.protected void
exportProcessModel(String key, OutputStream os)
protected void
exportProcessResource(String deploymentId, String resourceName, OutputStream os)
protected Model
getModel(ProcessDefinition procDef)
List<BpmnProcess>
getProcesses()
void
importProcess(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 Model getModel(ProcessDefinition procDef)
-
getProcesses
public List<BpmnProcess> getProcesses()
- Specified by:
getProcesses
in 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:BpmnProcessManager
Export the process for the given key, in the requested format.- Specified by:
exportProcess
in interfaceBpmnProcessManager
- Parameters:
key
- process keyformat
- export formatos
- export stream
-
exportDiagram
public void exportDiagram(String key, OutputStream os)
Description copied from interface:BpmnProcessManager
Export the process graphical representation for the given key (if available).- Specified by:
exportDiagram
in interfaceBpmnProcessManager
- Parameters:
key
- process keyos
- export stream
-
importProcess
public void importProcess(String key, BpmnProcessFormat format, String definition)
Description copied from interface:BpmnProcessManager
Import the process for the given key.- Specified by:
importProcess
in interfaceBpmnProcessManager
- Parameters:
key
- process keyformat
- import formatdefinition
- process
-
deleteProcess
public void deleteProcess(String key)
Description copied from interface:BpmnProcessManager
Remove the process for the given key.- Specified by:
deleteProcess
in interfaceBpmnProcessManager
- Parameters:
key
- process key
-
-