public class Bpmn2JsonUnmarshaller extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_USERTASK_NAME_PREFIX |
static String |
defaultBgColor |
static String |
defaultBrColor |
static String |
defaultFontColor |
static String |
defaultRelationshipType |
static String |
defaultSequenceflowColor |
static String |
exporterName |
static String |
exporterVersion |
Constructor and Description |
---|
Bpmn2JsonUnmarshaller() |
Modifier and Type | Method and Description |
---|---|
void |
addSimulation(org.eclipse.bpmn2.Definitions def) |
protected void |
applyAdHocSubProcessProperties(org.eclipse.bpmn2.AdHocSubProcess ahsp,
Map<String,String> properties) |
protected void |
applyAssociationProperties(org.eclipse.bpmn2.Association association,
Map<String,String> properties) |
protected void |
applyBaseElementProperties(org.eclipse.bpmn2.BaseElement baseElement,
Map<String,String> properties) |
protected void |
applyBusinessRuleTaskProperties(org.eclipse.bpmn2.BusinessRuleTask task,
Map<String,String> properties) |
protected void |
applyCallActivityProperties(org.eclipse.bpmn2.CallActivity callActivity,
Map<String,String> properties) |
protected void |
applyCatchEventProperties(org.eclipse.bpmn2.CatchEvent event,
Map<String,String> properties) |
protected void |
applyDataObjectProperties(org.eclipse.bpmn2.DataObject da,
Map<String,String> properties) |
protected void |
applyDataStoreProperties(org.eclipse.bpmn2.DataStore da,
Map<String,String> properties) |
protected void |
applyDefinitionProperties(org.eclipse.bpmn2.Definitions def,
Map<String,String> properties) |
protected void |
applyEndEventProperties(org.eclipse.bpmn2.EndEvent ee,
Map<String,String> properties) |
protected void |
applyEventProperties(org.eclipse.bpmn2.Event event,
Map<String,String> properties) |
protected void |
applyGatewayProperties(org.eclipse.bpmn2.Gateway gateway,
Map<String,String> properties) |
protected void |
applyGlobalTaskProperties(org.eclipse.bpmn2.GlobalTask globalTask,
Map<String,String> properties) |
protected void |
applyGroupProperties(org.eclipse.bpmn2.Group group,
Map<String,String> properties) |
protected void |
applyLaneProperties(org.eclipse.bpmn2.Lane lane,
Map<String,String> properties) |
protected void |
applyMessageProperties(org.eclipse.bpmn2.Message msg,
Map<String,String> properties) |
protected void |
applyProcessProperties(org.eclipse.bpmn2.Process process,
Map<String,String> properties) |
protected void |
applyProperties(org.eclipse.bpmn2.BaseElement baseElement,
Map<String,String> properties,
String preProcessingData) |
void |
applyReceiveTaskProperties(org.eclipse.bpmn2.ReceiveTask receiveTask,
Map<String,String> properties) |
protected void |
applyScriptTaskProperties(org.eclipse.bpmn2.ScriptTask scriptTask,
Map<String,String> properties) |
void |
applySendTaskProperties(org.eclipse.bpmn2.SendTask sendTask,
Map<String,String> properties) |
protected void |
applySequenceFlowProperties(org.eclipse.bpmn2.SequenceFlow sequenceFlow,
Map<String,String> properties) |
void |
applyServiceTaskProperties(org.eclipse.bpmn2.ServiceTask serviceTask,
Map<String,String> properties) |
protected void |
applyStartEventProperties(org.eclipse.bpmn2.StartEvent se,
Map<String,String> properties) |
protected void |
applySubProcessProperties(org.eclipse.bpmn2.SubProcess sp,
Map<String,String> properties) |
protected void |
applyTaskProperties(org.eclipse.bpmn2.Task task,
Map<String,String> properties,
String preProcessingData) |
protected void |
applyTextAnnotationProperties(org.eclipse.bpmn2.TextAnnotation ta,
Map<String,String> properties) |
protected void |
applyThrowEventProperties(org.eclipse.bpmn2.ThrowEvent event,
Map<String,String> properties) |
protected void |
applyUserTaskProperties(org.eclipse.bpmn2.UserTask task,
Map<String,String> properties) |
protected org.eclipse.bpmn2.BaseElement |
createBaseElement(String stencil,
String taskType,
boolean customElement) |
protected org.eclipse.bpmn2.FlowElementsContainer |
findContainerForBoundaryEvent(org.eclipse.bpmn2.FlowElementsContainer container,
org.eclipse.bpmn2.BoundaryEvent be) |
org.eclipse.bpmn2.Signal |
findSignalWithName(String signalRef,
org.eclipse.bpmn2.Definitions def) |
org.eclipse.bpmn2.di.BPMNShape |
getBPMNShapeForElement(org.eclipse.bpmn2.BaseElement be,
org.eclipse.bpmn2.di.BPMNPlane plane) |
protected Map<Object,List<String>> |
getOutgoingFlowsMap() |
void |
revisitArtifacts(org.eclipse.bpmn2.Definitions def) |
void |
revisitAssociationsIoSpec(org.eclipse.bpmn2.Definitions def) |
protected void |
revisitBoundaryEventsPositions(org.eclipse.bpmn2.Definitions def) |
void |
revisitCatchEvents(org.eclipse.bpmn2.Definitions def)
Updates event definitions for all catch events.
|
protected void |
revisitCatchEventsConvertToBoundary(org.eclipse.bpmn2.Definitions def) |
void |
revisitDataObjects(org.eclipse.bpmn2.Definitions def) |
void |
revisitDI(org.eclipse.bpmn2.Definitions def) |
void |
revisitDIColors(org.eclipse.bpmn2.Definitions def) |
void |
revisitEdgeBoundsInContainers(org.eclipse.bpmn2.Definitions def) |
void |
revisitEdgeBoundsInLanes(org.eclipse.bpmn2.Definitions def) |
void |
revisitGroups(org.eclipse.bpmn2.Definitions def) |
void |
revisitItemDefinitions(org.eclipse.bpmn2.Definitions def) |
void |
revisitLanes(org.eclipse.bpmn2.Definitions def) |
void |
revisitMultiInstanceTasks(org.eclipse.bpmn2.Definitions def) |
void |
revisitProcessDoc(org.eclipse.bpmn2.Definitions def) |
void |
revisitSendReceiveTasks(org.eclipse.bpmn2.Definitions def) |
void |
revisitSignalRef(org.eclipse.bpmn2.Definitions def)
Updates the signal ref on catch and throw event definitions (including boundary)
|
void |
revisitSubProcessItemDefs(org.eclipse.bpmn2.Definitions def) |
void |
revisitTaskAssociations(org.eclipse.bpmn2.Definitions def) |
void |
revisitTaskIoSpecification(org.eclipse.bpmn2.Definitions def) |
void |
revisitTaskIoSpecificationInfo(org.eclipse.bpmn2.FlowElementsContainer container) |
void |
revisitThrowEvents(org.eclipse.bpmn2.Definitions def)
Updates event definitions for all throwing events.
|
void |
revisitUserTasks(org.eclipse.bpmn2.Definitions def) |
void |
revisitWsdlImports(org.eclipse.bpmn2.Definitions def) |
void |
setBpsimDisplay(boolean bpsimDisplay) |
void |
setCatchEventsInfo(org.eclipse.bpmn2.FlowElementsContainer container,
org.eclipse.bpmn2.Definitions def,
List<org.eclipse.bpmn2.Signal> toAddSignals,
Set<org.eclipse.bpmn2.Error> toAddErrors,
Set<org.eclipse.bpmn2.Escalation> toAddEscalations,
Set<org.eclipse.bpmn2.Message> toAddMessages,
Set<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions) |
void |
setCatchEventsInfoForLanes(org.eclipse.bpmn2.Lane lane,
org.eclipse.bpmn2.Definitions def,
List<org.eclipse.bpmn2.Signal> toAddSignals,
Set<org.eclipse.bpmn2.Error> toAddErrors,
Set<org.eclipse.bpmn2.Escalation> toAddEscalations,
Set<org.eclipse.bpmn2.Message> toAddMessages,
Set<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions) |
void |
setItemDefinitionsForActivitiesIoSpec(org.eclipse.bpmn2.FlowElementsContainer container,
org.eclipse.bpmn2.Definitions def,
List<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions) |
protected void |
setLastUserTaskID(org.eclipse.bpmn2.UserTask task) |
void |
setSendReceiveTasksInfo(org.eclipse.bpmn2.FlowElementsContainer container,
org.eclipse.bpmn2.Definitions def,
List<org.eclipse.bpmn2.Message> toAddMessages,
List<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions) |
void |
setSignalRefForBoundaryEvents(org.eclipse.bpmn2.FlowElementsContainer container,
org.eclipse.bpmn2.Definitions def) |
void |
setSignalRefForCatchEvents(org.eclipse.bpmn2.FlowElementsContainer container,
org.eclipse.bpmn2.Definitions def) |
void |
setSignalRefForThrowEvents(org.eclipse.bpmn2.FlowElementsContainer container,
org.eclipse.bpmn2.Definitions def) |
void |
setThrowEventsInfo(org.eclipse.bpmn2.FlowElementsContainer container,
org.eclipse.bpmn2.Definitions def,
List<org.eclipse.bpmn2.RootElement> rootElements,
List<org.eclipse.bpmn2.Signal> toAddSignals,
Set<org.eclipse.bpmn2.Error> toAddErrors,
Set<org.eclipse.bpmn2.Escalation> toAddEscalations,
Set<org.eclipse.bpmn2.Message> toAddMessages,
Set<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions) |
void |
setThrowEventsInfoForLanes(org.eclipse.bpmn2.Lane lane,
org.eclipse.bpmn2.Definitions def,
List<org.eclipse.bpmn2.RootElement> rootElements,
List<org.eclipse.bpmn2.Signal> toAddSignals,
Set<org.eclipse.bpmn2.Error> toAddErrors,
Set<org.eclipse.bpmn2.Escalation> toAddEscalations,
Set<org.eclipse.bpmn2.Message> toAddMessages,
Set<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions) |
void |
setZOrderEnabled(boolean zOrderEnabled) |
org.eclipse.bpmn2.util.Bpmn2Resource |
unmarshall(File file,
String preProcessingData) |
org.eclipse.bpmn2.util.Bpmn2Resource |
unmarshall(String json,
String preProcessingData) |
org.eclipse.bpmn2.BaseElement |
unmarshallItem(com.fasterxml.jackson.core.JsonParser parser,
String preProcessingData) |
void |
updateEdgeBoundsInContainers(org.eclipse.bpmn2.FlowElementsContainer container,
org.eclipse.bpmn2.SequenceFlow sq,
org.eclipse.bpmn2.di.BPMNPlane plane,
org.eclipse.bpmn2.di.BPMNEdge edge) |
void |
updateEdgeBoundsInLanes(org.eclipse.bpmn2.Definitions def,
org.eclipse.bpmn2.di.BPMNPlane plane,
org.eclipse.bpmn2.di.BPMNEdge edge,
org.eclipse.bpmn2.BaseElement ele) |
void |
updateEdgeColors(org.eclipse.bpmn2.di.BPMNEdge edge) |
void |
updateIDs(org.eclipse.bpmn2.Definitions def) |
void |
updateShapeBounds(org.eclipse.bpmn2.Definitions def,
org.eclipse.bpmn2.di.BPMNPlane plane,
org.eclipse.bpmn2.BaseElement ele) |
void |
updateShapeBoundsInLanes(org.eclipse.bpmn2.di.BPMNPlane plane,
org.eclipse.bpmn2.BaseElement ele,
org.eclipse.bpmn2.Lane lane,
float parentX,
float parentY) |
void |
updateShapeBoundsInSubprocess(org.eclipse.bpmn2.di.BPMNPlane plane,
org.eclipse.bpmn2.BaseElement ele,
org.eclipse.bpmn2.SubProcess sub,
float parentX,
float parentY) |
void |
updateShapeBoundsInSubprocessInLanes(org.eclipse.bpmn2.di.BPMNPlane plane,
org.eclipse.bpmn2.BaseElement ele,
org.eclipse.bpmn2.SubProcess sub,
float parentX,
float parentY) |
void |
updateShapeColors(org.eclipse.bpmn2.di.BPMNShape shape) |
protected String |
wrapInCDATABlock(String value) |
public static final String defaultBgColor
public static final String defaultBrColor
public static final String defaultFontColor
public static final String defaultSequenceflowColor
public static final String exporterName
public static final String exporterVersion
public static final String defaultRelationshipType
public static final String DEFAULT_USERTASK_NAME_PREFIX
public org.eclipse.bpmn2.util.Bpmn2Resource unmarshall(String json, String preProcessingData) throws com.fasterxml.jackson.core.JsonParseException, IOException
com.fasterxml.jackson.core.JsonParseException
IOException
public org.eclipse.bpmn2.util.Bpmn2Resource unmarshall(File file, String preProcessingData) throws com.fasterxml.jackson.core.JsonParseException, IOException
com.fasterxml.jackson.core.JsonParseException
IOException
public void setZOrderEnabled(boolean zOrderEnabled)
public void setBpsimDisplay(boolean bpsimDisplay)
public void revisitUserTasks(org.eclipse.bpmn2.Definitions def)
public void revisitItemDefinitions(org.eclipse.bpmn2.Definitions def)
public void revisitDI(org.eclipse.bpmn2.Definitions def)
public org.eclipse.bpmn2.di.BPMNShape getBPMNShapeForElement(org.eclipse.bpmn2.BaseElement be, org.eclipse.bpmn2.di.BPMNPlane plane)
public void revisitEdgeBoundsInContainers(org.eclipse.bpmn2.Definitions def)
public void updateEdgeBoundsInContainers(org.eclipse.bpmn2.FlowElementsContainer container, org.eclipse.bpmn2.SequenceFlow sq, org.eclipse.bpmn2.di.BPMNPlane plane, org.eclipse.bpmn2.di.BPMNEdge edge)
public void revisitEdgeBoundsInLanes(org.eclipse.bpmn2.Definitions def)
public void revisitDIColors(org.eclipse.bpmn2.Definitions def)
public void revisitProcessDoc(org.eclipse.bpmn2.Definitions def)
public void updateShapeColors(org.eclipse.bpmn2.di.BPMNShape shape)
public void updateEdgeColors(org.eclipse.bpmn2.di.BPMNEdge edge)
public void updateEdgeBoundsInLanes(org.eclipse.bpmn2.Definitions def, org.eclipse.bpmn2.di.BPMNPlane plane, org.eclipse.bpmn2.di.BPMNEdge edge, org.eclipse.bpmn2.BaseElement ele)
public void updateShapeBounds(org.eclipse.bpmn2.Definitions def, org.eclipse.bpmn2.di.BPMNPlane plane, org.eclipse.bpmn2.BaseElement ele)
public void updateShapeBoundsInLanes(org.eclipse.bpmn2.di.BPMNPlane plane, org.eclipse.bpmn2.BaseElement ele, org.eclipse.bpmn2.Lane lane, float parentX, float parentY)
public void updateShapeBoundsInSubprocessInLanes(org.eclipse.bpmn2.di.BPMNPlane plane, org.eclipse.bpmn2.BaseElement ele, org.eclipse.bpmn2.SubProcess sub, float parentX, float parentY)
public void updateShapeBoundsInSubprocess(org.eclipse.bpmn2.di.BPMNPlane plane, org.eclipse.bpmn2.BaseElement ele, org.eclipse.bpmn2.SubProcess sub, float parentX, float parentY)
public void revisitMultiInstanceTasks(org.eclipse.bpmn2.Definitions def)
public void revisitWsdlImports(org.eclipse.bpmn2.Definitions def)
public void revisitSubProcessItemDefs(org.eclipse.bpmn2.Definitions def)
public void updateIDs(org.eclipse.bpmn2.Definitions def)
public void addSimulation(org.eclipse.bpmn2.Definitions def)
public void revisitDataObjects(org.eclipse.bpmn2.Definitions def)
public void revisitTaskIoSpecification(org.eclipse.bpmn2.Definitions def)
public void revisitTaskIoSpecificationInfo(org.eclipse.bpmn2.FlowElementsContainer container)
public void revisitTaskAssociations(org.eclipse.bpmn2.Definitions def)
public void revisitSendReceiveTasks(org.eclipse.bpmn2.Definitions def)
public void setSendReceiveTasksInfo(org.eclipse.bpmn2.FlowElementsContainer container, org.eclipse.bpmn2.Definitions def, List<org.eclipse.bpmn2.Message> toAddMessages, List<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)
public void revisitLanes(org.eclipse.bpmn2.Definitions def)
public void revisitArtifacts(org.eclipse.bpmn2.Definitions def)
public void revisitGroups(org.eclipse.bpmn2.Definitions def)
public void revisitThrowEvents(org.eclipse.bpmn2.Definitions def)
def
- Definitionspublic void setThrowEventsInfo(org.eclipse.bpmn2.FlowElementsContainer container, org.eclipse.bpmn2.Definitions def, List<org.eclipse.bpmn2.RootElement> rootElements, List<org.eclipse.bpmn2.Signal> toAddSignals, Set<org.eclipse.bpmn2.Error> toAddErrors, Set<org.eclipse.bpmn2.Escalation> toAddEscalations, Set<org.eclipse.bpmn2.Message> toAddMessages, Set<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)
public void setThrowEventsInfoForLanes(org.eclipse.bpmn2.Lane lane, org.eclipse.bpmn2.Definitions def, List<org.eclipse.bpmn2.RootElement> rootElements, List<org.eclipse.bpmn2.Signal> toAddSignals, Set<org.eclipse.bpmn2.Error> toAddErrors, Set<org.eclipse.bpmn2.Escalation> toAddEscalations, Set<org.eclipse.bpmn2.Message> toAddMessages, Set<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)
protected org.eclipse.bpmn2.FlowElementsContainer findContainerForBoundaryEvent(org.eclipse.bpmn2.FlowElementsContainer container, org.eclipse.bpmn2.BoundaryEvent be)
protected void revisitBoundaryEventsPositions(org.eclipse.bpmn2.Definitions def)
protected void revisitCatchEventsConvertToBoundary(org.eclipse.bpmn2.Definitions def)
public void revisitAssociationsIoSpec(org.eclipse.bpmn2.Definitions def)
public void setItemDefinitionsForActivitiesIoSpec(org.eclipse.bpmn2.FlowElementsContainer container, org.eclipse.bpmn2.Definitions def, List<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)
public void revisitSignalRef(org.eclipse.bpmn2.Definitions def)
def
- Definitionspublic void setSignalRefForCatchEvents(org.eclipse.bpmn2.FlowElementsContainer container, org.eclipse.bpmn2.Definitions def)
public void setSignalRefForThrowEvents(org.eclipse.bpmn2.FlowElementsContainer container, org.eclipse.bpmn2.Definitions def)
public void setSignalRefForBoundaryEvents(org.eclipse.bpmn2.FlowElementsContainer container, org.eclipse.bpmn2.Definitions def)
public org.eclipse.bpmn2.Signal findSignalWithName(String signalRef, org.eclipse.bpmn2.Definitions def)
public void revisitCatchEvents(org.eclipse.bpmn2.Definitions def)
def
- Definitionspublic void setCatchEventsInfo(org.eclipse.bpmn2.FlowElementsContainer container, org.eclipse.bpmn2.Definitions def, List<org.eclipse.bpmn2.Signal> toAddSignals, Set<org.eclipse.bpmn2.Error> toAddErrors, Set<org.eclipse.bpmn2.Escalation> toAddEscalations, Set<org.eclipse.bpmn2.Message> toAddMessages, Set<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)
public void setCatchEventsInfoForLanes(org.eclipse.bpmn2.Lane lane, org.eclipse.bpmn2.Definitions def, List<org.eclipse.bpmn2.Signal> toAddSignals, Set<org.eclipse.bpmn2.Error> toAddErrors, Set<org.eclipse.bpmn2.Escalation> toAddEscalations, Set<org.eclipse.bpmn2.Message> toAddMessages, Set<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)
public org.eclipse.bpmn2.BaseElement unmarshallItem(com.fasterxml.jackson.core.JsonParser parser, String preProcessingData) throws com.fasterxml.jackson.core.JsonParseException, IOException
com.fasterxml.jackson.core.JsonParseException
IOException
protected void applyProperties(org.eclipse.bpmn2.BaseElement baseElement, Map<String,String> properties, String preProcessingData)
protected void applySubProcessProperties(org.eclipse.bpmn2.SubProcess sp, Map<String,String> properties)
protected void applyAdHocSubProcessProperties(org.eclipse.bpmn2.AdHocSubProcess ahsp, Map<String,String> properties)
protected void applyEndEventProperties(org.eclipse.bpmn2.EndEvent ee, Map<String,String> properties)
protected void applyAssociationProperties(org.eclipse.bpmn2.Association association, Map<String,String> properties)
protected void applyStartEventProperties(org.eclipse.bpmn2.StartEvent se, Map<String,String> properties)
protected void applyMessageProperties(org.eclipse.bpmn2.Message msg, Map<String,String> properties)
protected void applyDataStoreProperties(org.eclipse.bpmn2.DataStore da, Map<String,String> properties)
protected void applyDataObjectProperties(org.eclipse.bpmn2.DataObject da, Map<String,String> properties)
protected void applyTextAnnotationProperties(org.eclipse.bpmn2.TextAnnotation ta, Map<String,String> properties)
protected void applyGroupProperties(org.eclipse.bpmn2.Group group, Map<String,String> properties)
protected void applyEventProperties(org.eclipse.bpmn2.Event event, Map<String,String> properties)
protected void applyCatchEventProperties(org.eclipse.bpmn2.CatchEvent event, Map<String,String> properties)
protected void applyThrowEventProperties(org.eclipse.bpmn2.ThrowEvent event, Map<String,String> properties)
protected void applyGlobalTaskProperties(org.eclipse.bpmn2.GlobalTask globalTask, Map<String,String> properties)
protected void applyBaseElementProperties(org.eclipse.bpmn2.BaseElement baseElement, Map<String,String> properties)
protected void applyDefinitionProperties(org.eclipse.bpmn2.Definitions def, Map<String,String> properties)
protected void applyProcessProperties(org.eclipse.bpmn2.Process process, Map<String,String> properties)
protected void applyBusinessRuleTaskProperties(org.eclipse.bpmn2.BusinessRuleTask task, Map<String,String> properties)
protected void applyScriptTaskProperties(org.eclipse.bpmn2.ScriptTask scriptTask, Map<String,String> properties)
public void applyServiceTaskProperties(org.eclipse.bpmn2.ServiceTask serviceTask, Map<String,String> properties)
public void applyReceiveTaskProperties(org.eclipse.bpmn2.ReceiveTask receiveTask, Map<String,String> properties)
public void applySendTaskProperties(org.eclipse.bpmn2.SendTask sendTask, Map<String,String> properties)
protected void applyLaneProperties(org.eclipse.bpmn2.Lane lane, Map<String,String> properties)
protected void applyCallActivityProperties(org.eclipse.bpmn2.CallActivity callActivity, Map<String,String> properties)
protected void applyTaskProperties(org.eclipse.bpmn2.Task task, Map<String,String> properties, String preProcessingData)
protected void applyUserTaskProperties(org.eclipse.bpmn2.UserTask task, Map<String,String> properties)
protected void setLastUserTaskID(org.eclipse.bpmn2.UserTask task)
protected void applyGatewayProperties(org.eclipse.bpmn2.Gateway gateway, Map<String,String> properties)
protected void applySequenceFlowProperties(org.eclipse.bpmn2.SequenceFlow sequenceFlow, Map<String,String> properties)
protected org.eclipse.bpmn2.BaseElement createBaseElement(String stencil, String taskType, boolean customElement)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.