public class Bpmn2JsonMarshaller extends Object
Modifier and Type | Field and Description |
---|---|
static String |
defaultBgColor_Activities |
static String |
defaultBgColor_CatchingEvents |
static String |
defaultBgColor_DataObjects |
static String |
defaultBgColor_EndEvents |
static String |
defaultBgColor_Events |
static String |
defaultBgColor_Gateways |
static String |
defaultBgColor_StartEvents |
static String |
defaultBgColor_Swimlanes |
static String |
defaultBgColor_ThrowingEvents |
static String |
defaultBrColor |
static String |
defaultBrColor_CatchingEvents |
static String |
defaultBrColor_Gateways |
static String |
defaultBrColor_ThrowingEvents |
static String |
defaultFontColor |
static String |
defaultSequenceflowColor |
Constructor and Description |
---|
Bpmn2JsonMarshaller() |
Modifier and Type | Method and Description |
---|---|
void |
applyDiagramResolution(org.eclipse.bpmn2.di.BPMNPlane plane) |
void |
applyResolutionForDockers(org.eclipse.dd.dc.Point p) |
protected org.eclipse.bpmn2.Association |
findOutgoingAssociation(org.eclipse.bpmn2.di.BPMNPlane plane,
org.eclipse.bpmn2.BaseElement baseElement) |
protected List<org.eclipse.bpmn2.Association> |
findOutgoingAssociations(org.eclipse.bpmn2.di.BPMNPlane plane,
org.eclipse.bpmn2.BaseElement baseElement) |
String |
marshall(org.eclipse.bpmn2.Definitions def,
String preProcessingData) |
protected void |
marshallArtifact(org.eclipse.bpmn2.Artifact artifact,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
String preProcessingData,
org.eclipse.bpmn2.Definitions def) |
protected void |
marshallAssociation(org.eclipse.bpmn2.Association association,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
String preProcessingData,
org.eclipse.bpmn2.Definitions def) |
protected void |
marshallBoundaryEvent(org.eclipse.bpmn2.BoundaryEvent boundaryEvent,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
Map<String,Object> catchEventProperties) |
protected void |
marshallCallableElement(org.eclipse.bpmn2.CallableElement callableElement,
org.eclipse.bpmn2.Definitions def,
com.fasterxml.jackson.core.JsonGenerator generator) |
protected void |
marshallCallActivity(org.eclipse.bpmn2.CallActivity callActivity,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
Map<String,Object> flowElementProperties) |
protected void |
marshallChoreography(org.eclipse.bpmn2.Choreography callableElement,
com.fasterxml.jackson.core.JsonGenerator generator) |
protected void |
marshallComplexGateway(org.eclipse.bpmn2.ComplexGateway gateway,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
Map<String,Object> flowElementProperties) |
protected void |
marshallConversation(org.eclipse.bpmn2.Conversation callableElement,
com.fasterxml.jackson.core.JsonGenerator generator) |
protected void |
marshallDataObject(org.eclipse.bpmn2.DataObject dataObject,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
Map<String,Object> flowElementProperties) |
protected void |
marshallDefinitions(org.eclipse.bpmn2.Definitions def,
com.fasterxml.jackson.core.JsonGenerator generator,
String preProcessingData) |
protected void |
marshallEndEvent(org.eclipse.bpmn2.EndEvent endEvent,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
Map<String,Object> properties) |
protected void |
marshallEventBasedGateway(org.eclipse.bpmn2.EventBasedGateway gateway,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
Map<String,Object> flowElementProperties) |
protected void |
marshallExclusiveGateway(org.eclipse.bpmn2.ExclusiveGateway gateway,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
Map<String,Object> flowElementProperties) |
protected void |
marshallFlowElement(org.eclipse.bpmn2.FlowElement flowElement,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
String preProcessingData,
org.eclipse.bpmn2.Definitions def) |
protected void |
marshallGlobalChoreographyTask(org.eclipse.bpmn2.GlobalChoreographyTask callableElement,
com.fasterxml.jackson.core.JsonGenerator generator) |
protected void |
marshallGlobalTask(org.eclipse.bpmn2.GlobalTask globalTask,
com.fasterxml.jackson.core.JsonGenerator generator) |
protected void |
marshallGroup(org.eclipse.bpmn2.Group group,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
String preProcessingData,
org.eclipse.bpmn2.Definitions def) |
protected void |
marshallInclusiveGateway(org.eclipse.bpmn2.InclusiveGateway gateway,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
Map<String,Object> flowElementProperties) |
protected void |
marshallIntermediateCatchEvent(org.eclipse.bpmn2.IntermediateCatchEvent catchEvent,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
Map<String,Object> properties) |
protected void |
marshallIntermediateThrowEvent(org.eclipse.bpmn2.IntermediateThrowEvent throwEvent,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
Map<String,Object> properties) |
protected void |
marshallNode(org.eclipse.bpmn2.FlowNode node,
Map<String,Object> properties,
String stencil,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset) |
protected void |
marshallParallelGateway(org.eclipse.bpmn2.ParallelGateway gateway,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
Map<String,Object> flowElementProperties) |
protected void |
marshallProcess(org.eclipse.bpmn2.Process process,
org.eclipse.bpmn2.Definitions def,
com.fasterxml.jackson.core.JsonGenerator generator,
String preProcessingData) |
protected void |
marshallProperties(Map<String,Object> properties,
com.fasterxml.jackson.core.JsonGenerator generator) |
protected void |
marshallSequenceFlow(org.eclipse.bpmn2.SequenceFlow sequenceFlow,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset) |
protected void |
marshallStartEvent(org.eclipse.bpmn2.StartEvent startEvent,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
Map<String,Object> properties) |
protected void |
marshallStencil(String stencilId,
com.fasterxml.jackson.core.JsonGenerator generator) |
protected void |
marshallSubProcess(org.eclipse.bpmn2.SubProcess subProcess,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
String preProcessingData,
org.eclipse.bpmn2.Definitions def,
Map<String,Object> flowElementProperties) |
protected void |
marshallTask(org.eclipse.bpmn2.Task task,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
String preProcessingData,
org.eclipse.bpmn2.Definitions def,
Map<String,Object> flowElementProperties) |
protected void |
marshallTextAnnotation(org.eclipse.bpmn2.TextAnnotation textAnnotation,
org.eclipse.bpmn2.di.BPMNPlane plane,
com.fasterxml.jackson.core.JsonGenerator generator,
float xOffset,
float yOffset,
String preProcessingData,
org.eclipse.bpmn2.Definitions def,
Map<String,Object> flowElementProperties) |
void |
setProfile(IDiagramProfile profile) |
public static final String defaultBgColor_Activities
public static final String defaultBgColor_Events
public static final String defaultBgColor_StartEvents
public static final String defaultBgColor_EndEvents
public static final String defaultBgColor_DataObjects
public static final String defaultBgColor_CatchingEvents
public static final String defaultBgColor_ThrowingEvents
public static final String defaultBgColor_Gateways
public static final String defaultBgColor_Swimlanes
public static final String defaultBrColor
public static final String defaultBrColor_CatchingEvents
public static final String defaultBrColor_ThrowingEvents
public static final String defaultBrColor_Gateways
public static final String defaultFontColor
public static final String defaultSequenceflowColor
public void setProfile(IDiagramProfile profile)
public String marshall(org.eclipse.bpmn2.Definitions def, String preProcessingData) throws IOException
IOException
protected void marshallDefinitions(org.eclipse.bpmn2.Definitions def, com.fasterxml.jackson.core.JsonGenerator generator, String preProcessingData) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
public void applyDiagramResolution(org.eclipse.bpmn2.di.BPMNPlane plane)
public void applyResolutionForDockers(org.eclipse.dd.dc.Point p)
protected void marshallCallableElement(org.eclipse.bpmn2.CallableElement callableElement, org.eclipse.bpmn2.Definitions def, com.fasterxml.jackson.core.JsonGenerator generator) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallProcess(org.eclipse.bpmn2.Process process, org.eclipse.bpmn2.Definitions def, com.fasterxml.jackson.core.JsonGenerator generator, String preProcessingData) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallFlowElement(org.eclipse.bpmn2.FlowElement flowElement, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, String preProcessingData, org.eclipse.bpmn2.Definitions def) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallStartEvent(org.eclipse.bpmn2.StartEvent startEvent, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, Map<String,Object> properties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallEndEvent(org.eclipse.bpmn2.EndEvent endEvent, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, Map<String,Object> properties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallIntermediateCatchEvent(org.eclipse.bpmn2.IntermediateCatchEvent catchEvent, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, Map<String,Object> properties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallBoundaryEvent(org.eclipse.bpmn2.BoundaryEvent boundaryEvent, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, Map<String,Object> catchEventProperties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallIntermediateThrowEvent(org.eclipse.bpmn2.IntermediateThrowEvent throwEvent, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, Map<String,Object> properties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallCallActivity(org.eclipse.bpmn2.CallActivity callActivity, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, Map<String,Object> flowElementProperties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallTask(org.eclipse.bpmn2.Task task, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, String preProcessingData, org.eclipse.bpmn2.Definitions def, Map<String,Object> flowElementProperties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallParallelGateway(org.eclipse.bpmn2.ParallelGateway gateway, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, Map<String,Object> flowElementProperties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallExclusiveGateway(org.eclipse.bpmn2.ExclusiveGateway gateway, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, Map<String,Object> flowElementProperties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallInclusiveGateway(org.eclipse.bpmn2.InclusiveGateway gateway, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, Map<String,Object> flowElementProperties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallEventBasedGateway(org.eclipse.bpmn2.EventBasedGateway gateway, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, Map<String,Object> flowElementProperties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallComplexGateway(org.eclipse.bpmn2.ComplexGateway gateway, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, Map<String,Object> flowElementProperties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallNode(org.eclipse.bpmn2.FlowNode node, Map<String,Object> properties, String stencil, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallDataObject(org.eclipse.bpmn2.DataObject dataObject, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, Map<String,Object> flowElementProperties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallSubProcess(org.eclipse.bpmn2.SubProcess subProcess, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, String preProcessingData, org.eclipse.bpmn2.Definitions def, Map<String,Object> flowElementProperties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallSequenceFlow(org.eclipse.bpmn2.SequenceFlow sequenceFlow, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallGlobalTask(org.eclipse.bpmn2.GlobalTask globalTask, com.fasterxml.jackson.core.JsonGenerator generator)
protected void marshallGlobalChoreographyTask(org.eclipse.bpmn2.GlobalChoreographyTask callableElement, com.fasterxml.jackson.core.JsonGenerator generator)
protected void marshallConversation(org.eclipse.bpmn2.Conversation callableElement, com.fasterxml.jackson.core.JsonGenerator generator)
protected void marshallChoreography(org.eclipse.bpmn2.Choreography callableElement, com.fasterxml.jackson.core.JsonGenerator generator)
protected void marshallProperties(Map<String,Object> properties, com.fasterxml.jackson.core.JsonGenerator generator) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallArtifact(org.eclipse.bpmn2.Artifact artifact, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, String preProcessingData, org.eclipse.bpmn2.Definitions def) throws IOException
IOException
protected void marshallAssociation(org.eclipse.bpmn2.Association association, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, String preProcessingData, org.eclipse.bpmn2.Definitions def) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallTextAnnotation(org.eclipse.bpmn2.TextAnnotation textAnnotation, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, String preProcessingData, org.eclipse.bpmn2.Definitions def, Map<String,Object> flowElementProperties) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected void marshallGroup(org.eclipse.bpmn2.Group group, org.eclipse.bpmn2.di.BPMNPlane plane, com.fasterxml.jackson.core.JsonGenerator generator, float xOffset, float yOffset, String preProcessingData, org.eclipse.bpmn2.Definitions def) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected org.eclipse.bpmn2.Association findOutgoingAssociation(org.eclipse.bpmn2.di.BPMNPlane plane, org.eclipse.bpmn2.BaseElement baseElement)
protected List<org.eclipse.bpmn2.Association> findOutgoingAssociations(org.eclipse.bpmn2.di.BPMNPlane plane, org.eclipse.bpmn2.BaseElement baseElement)
protected void marshallStencil(String stencilId, com.fasterxml.jackson.core.JsonGenerator generator) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.