public class WorkflowDefinitionConversion extends Object
WorkflowDefinitionConversionFactory
.
An instance of this class is capabale of doing the actual conversion of a WorkflowDefinition
and it will contain all artifacts produces by the StepDefinitionConverter
objects and
WorkflowDefinitionConversionListener
which were injected into
the WorkflowDefinitionConversionFactory
.Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
additionalArtifacts
|
protected BpmnModel |
bpmnModel |
protected WorkflowDefinitionConversionFactory |
conversionFactory |
protected HashMap<String,Integer> |
incrementalIdMapping |
protected String |
lastActivityId |
protected Process |
process |
protected boolean |
sequenceflowGenerationEnabled |
protected boolean |
updateLastActivityEnabled |
protected WorkflowDefinition |
workflowDefinition |
Constructor and Description |
---|
WorkflowDefinitionConversion(WorkflowDefinitionConversionFactory factory,
WorkflowDefinition workflowDefinition) |
protected WorkflowDefinition workflowDefinition
protected BpmnModel bpmnModel
protected Process process
protected WorkflowDefinitionConversionFactory conversionFactory
protected String lastActivityId
protected boolean sequenceflowGenerationEnabled
protected boolean updateLastActivityEnabled
public WorkflowDefinitionConversion(WorkflowDefinitionConversionFactory factory, WorkflowDefinition workflowDefinition)
public void convert()
WorkflowDefinition
which was provided in the constructor.public void convertSteps(List<StepDefinition> stepDefinitions)
public void convertListParallelSteps(List<ListStepDefinition<ParallelStepsDefinition>> stepDefinitions)
public String getUniqueNumberedId(String baseName)
baseName
- base name of the unique identifierpublic String getLastActivityId()
public void setLastActivityId(String lastActivityId)
lastActivityId
- id of the activity that is at the end of the current process. Used
to add additional steps and sequence-flows to the process.public BpmnModel getBpmnModel()
public void setBpmnModel(BpmnModel bpmnModel)
public Process getProcess()
public void setProcess(Process process)
public WorkflowDefinition getWorkflowDefinition()
public void setWorkflowDefinition(WorkflowDefinition workflowDefinition)
public boolean isSequenceflowGenerationEnabled()
public void setSequenceflowGenerationEnabled(boolean sequenceflowGenerationEnabled)
public boolean isUpdateLastActivityEnabled()
public void setUpdateLastActivityEnabled(boolean updateLastActivityEnabled)
public WorkflowDefinitionConversionFactory getConversionFactory()
public String getBpmn20Xml()
WorkflowDefinition
.Copyright © 2016 Alfresco. All rights reserved.