Class BPMNtoLayoutedBPMNConverter
- java.lang.Object
-
- de.uni_trier.wi2.procake.utils.conversion.bpmn.BPMNtoLayoutedBPMNConverter
-
- All Implemented Interfaces:
OneWayConverter<String,String>
public class BPMNtoLayoutedBPMNConverter extends Object implements OneWayConverter<String,String>
Adds or updates layout information to BPMN XML string. This converter provides am optimized layout for block-oriented BPMN structure and uses the layouter from the activiti framework as a fallback. The optimized layout can be applied if the BPMN graph meets the following restrictions: single start and end node, no pools or lanes, XOR gateways with two branches only, no events- Author:
- Clemens Reh, Christian Zeyen
-
-
Constructor Summary
Constructors Constructor Description BPMNtoLayoutedBPMNConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringconvert(String originXmlString)Converts the origin object type to a target object type.List<String>getExpandedSubProcesses()booleanhasAppliedOptimizedLayoutSuccessfully()booleanisAllSubProcessesCollapsed()booleanisReturnFormattedXml()voidsetAllSubProcessesCollapsed(boolean flag)voidsetExpandedSubProcesses(List<String> expandedSubProcesses)voidsetReturnFormattedXml(boolean flag)
-
-
-
Method Detail
-
convert
public String convert(String originXmlString)
Description copied from interface:OneWayConverterConverts the origin object type to a target object type.- Specified by:
convertin interfaceOneWayConverter<String,String>- Parameters:
originXmlString- object to be converted- Returns:
- the converted object
-
isAllSubProcessesCollapsed
public boolean isAllSubProcessesCollapsed()
-
setAllSubProcessesCollapsed
public void setAllSubProcessesCollapsed(boolean flag)
-
isReturnFormattedXml
public boolean isReturnFormattedXml()
-
setReturnFormattedXml
public void setReturnFormattedXml(boolean flag)
-
hasAppliedOptimizedLayoutSuccessfully
public boolean hasAppliedOptimizedLayoutSuccessfully()
-
-