public interface ProcessRepositoryManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertModelToProcessXml(java.lang.String actModelId)
Finds a process model by its activiti id and converts model JSON to BPMN process XML
|
ProcDefinition |
deployProcessFromPath(java.lang.String path,
ProcDefinition procDefinition,
ProcModel procModel)
Creates or updates a ProcDefinition and deploys process from a given path to Activiti engine.
|
ProcDefinition |
deployProcessFromXml(java.lang.String xml,
ProcDefinition procDefinition,
ProcModel procModel)
Creates or updates a ProcDefinition and deploys a given BPMN XML to Activiti engine.
|
java.lang.String |
getProcessDefinitionXml(java.lang.String actProcessDefinitionId)
Returns an XML representation of BPMN process
|
void |
undeployProcess(java.lang.String actProcessDefinitionId)
Deletes a process from Activiti engine
|
static final java.lang.String NAME
ProcDefinition deployProcessFromPath(java.lang.String path, @Nullable ProcDefinition procDefinition, @Nullable ProcModel procModel)
path
- path to an XML file with BPMN process definitionprocDefinition
- ProcDefinition that will be linked with deployed BPMN process. If null
then new ProcDefinition instance will be createdprocModel
- ProcModel that will be linked with a deployed process. May be null.ProcDefinition deployProcessFromXml(java.lang.String xml, @Nullable ProcDefinition procDefinition, @Nullable ProcModel procModel)
xml
- content of BPMN XMLprocDefinition
- ProcDefinition that will be linked with deployed BPMN process. If null
then new ProcDefinition instance will be createdprocModel
- ProcModel that will be linked with a deployed process. May be null.java.lang.String getProcessDefinitionXml(java.lang.String actProcessDefinitionId)
actProcessDefinitionId
- activiti process definition idjava.lang.String convertModelToProcessXml(java.lang.String actModelId)
actModelId
- activiti model idvoid undeployProcess(java.lang.String actProcessDefinitionId)
actProcessDefinitionId
- activiti process definition id