Class AbstractNESTtoBPMNConverter<T extends NESTAbstractWorkflowObject>
- java.lang.Object
-
- de.uni_trier.wi2.procake.utils.conversion.bpmn.AbstractNESTtoBPMNConverter<T>
-
- All Implemented Interfaces:
OneWayConverter<T,org.camunda.bpm.model.bpmn.BpmnModelInstance>
public abstract class AbstractNESTtoBPMNConverter<T extends NESTAbstractWorkflowObject> extends Object implements OneWayConverter<T,org.camunda.bpm.model.bpmn.BpmnModelInstance>
Abstract implementation of a converter for converting a block-oriented NESTWorkflow object into a BPMN2 object.The following BPMN 2.0 elements are supported:
- - Task Nodes such as Task, ServiceTask, ScriptTask, ManualTask, HumanTask
- - SubProcess
- - Gateway Nodes such as ExclusiveGateway, EventBasedGateway, ParallelGateway
- Author:
- Christian Zeyen
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,org.camunda.bpm.model.bpmn.instance.FlowElement>createdFlowElementsprotected org.camunda.bpm.model.bpmn.BpmnModelInstancemodelInstanceprotected StringtargetNamespace
-
Constructor Summary
Constructors Constructor Description AbstractNESTtoBPMNConverter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.camunda.bpm.model.bpmn.BpmnModelInstanceconvert(T origin)Converts the origin object type to a target object type.org.camunda.bpm.model.bpmn.instance.FlowNodeconvertNestNode(NESTNodeObject nestNode, org.camunda.bpm.model.bpmn.instance.BaseElement parent)protected org.camunda.bpm.model.bpmn.BpmnModelInstancecreateEmptyModel()protected abstract <I extends org.camunda.bpm.model.bpmn.instance.FlowNode>
Class<I>getClassForNode(NESTNodeObject currentNode)protected abstract org.camunda.bpm.model.bpmn.instance.ExtensionElementsgetExtensionElementsForEdge(NESTEdgeObject currentEdge)protected abstract org.camunda.bpm.model.bpmn.instance.ExtensionElementsgetExtensionElementsForNode(NESTNodeObject currentNode)protected abstract StringgetLabelForEdge(NESTEdgeObject currentEdge)protected abstract StringgetLabelForNode(NESTNodeObject currentNode)protected abstract NESTAbstractWorkflowObjectgetNestedWorkflowObject(NESTNodeObject node)StringgetTargetNamespace()voidsetTargetNamespace(String targetNamespace)
-
-
-
Method Detail
-
getClassForNode
protected abstract <I extends org.camunda.bpm.model.bpmn.instance.FlowNode> Class<I> getClassForNode(NESTNodeObject currentNode)
-
getLabelForNode
protected abstract String getLabelForNode(NESTNodeObject currentNode)
-
getLabelForEdge
protected abstract String getLabelForEdge(NESTEdgeObject currentEdge)
-
getExtensionElementsForNode
protected abstract org.camunda.bpm.model.bpmn.instance.ExtensionElements getExtensionElementsForNode(NESTNodeObject currentNode)
-
getExtensionElementsForEdge
protected abstract org.camunda.bpm.model.bpmn.instance.ExtensionElements getExtensionElementsForEdge(NESTEdgeObject currentEdge)
-
getNestedWorkflowObject
protected abstract NESTAbstractWorkflowObject getNestedWorkflowObject(NESTNodeObject node)
-
createEmptyModel
protected org.camunda.bpm.model.bpmn.BpmnModelInstance createEmptyModel()
-
convert
public org.camunda.bpm.model.bpmn.BpmnModelInstance convert(T origin) throws NESTtoBPMNConversionException
Description copied from interface:OneWayConverterConverts the origin object type to a target object type.- Specified by:
convertin interfaceOneWayConverter<T extends NESTAbstractWorkflowObject,org.camunda.bpm.model.bpmn.BpmnModelInstance>- Parameters:
origin- object to be converted- Returns:
- the converted object
- Throws:
NESTtoBPMNConversionException
-
convertNestNode
public org.camunda.bpm.model.bpmn.instance.FlowNode convertNestNode(NESTNodeObject nestNode, org.camunda.bpm.model.bpmn.instance.BaseElement parent) throws Exception
- Throws:
Exception
-
getTargetNamespace
public String getTargetNamespace()
-
setTargetNamespace
public void setTargetNamespace(String targetNamespace)
-
-