Class Bpmn2JsonUnmarshaller


  • public class Bpmn2JsonUnmarshaller
    extends Object
    • Constructor Detail

      • Bpmn2JsonUnmarshaller

        public Bpmn2JsonUnmarshaller()
    • Method Detail

      • unmarshall

        public org.eclipse.bpmn2.util.Bpmn2Resource unmarshall​(String json,
                                                               String preProcessingData)
                                                        throws com.fasterxml.jackson.core.JsonParseException,
                                                               IOException
        Throws:
        com.fasterxml.jackson.core.JsonParseException
        IOException
      • unmarshall

        public org.eclipse.bpmn2.util.Bpmn2Resource unmarshall​(File file,
                                                               String preProcessingData)
                                                        throws com.fasterxml.jackson.core.JsonParseException,
                                                               IOException
        Throws:
        com.fasterxml.jackson.core.JsonParseException
        IOException
      • setZOrderEnabled

        public void setZOrderEnabled​(boolean zOrderEnabled)
      • setBpsimDisplay

        public void setBpsimDisplay​(boolean bpsimDisplay)
      • revisitUserTasks

        public void revisitUserTasks​(org.eclipse.bpmn2.Definitions def)
      • revisitItemDefinitions

        public void revisitItemDefinitions​(org.eclipse.bpmn2.Definitions def)
      • revisitDI

        public void revisitDI​(org.eclipse.bpmn2.Definitions def)
      • getBPMNShapeForElement

        public org.eclipse.bpmn2.di.BPMNShape getBPMNShapeForElement​(org.eclipse.bpmn2.BaseElement be,
                                                                     org.eclipse.bpmn2.di.BPMNPlane plane)
      • revisitEdgeBoundsInContainers

        public void revisitEdgeBoundsInContainers​(org.eclipse.bpmn2.Definitions def)
      • updateEdgeBoundsInContainers

        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)
      • revisitEdgeBoundsInLanes

        public void revisitEdgeBoundsInLanes​(org.eclipse.bpmn2.Definitions def)
      • revisitDIColors

        public void revisitDIColors​(org.eclipse.bpmn2.Definitions def)
      • revisitProcessDoc

        public void revisitProcessDoc​(org.eclipse.bpmn2.Definitions def)
      • updateShapeColors

        public void updateShapeColors​(org.eclipse.bpmn2.di.BPMNShape shape)
      • updateEdgeColors

        public void updateEdgeColors​(org.eclipse.bpmn2.di.BPMNEdge edge)
      • updateEdgeBoundsInLanes

        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)
      • updateShapeBounds

        public void updateShapeBounds​(org.eclipse.bpmn2.Definitions def,
                                      org.eclipse.bpmn2.di.BPMNPlane plane,
                                      org.eclipse.bpmn2.BaseElement ele)
      • updateShapeBoundsInLanes

        public void updateShapeBoundsInLanes​(org.eclipse.bpmn2.di.BPMNPlane plane,
                                             org.eclipse.bpmn2.BaseElement ele,
                                             org.eclipse.bpmn2.Lane lane,
                                             float parentX,
                                             float parentY)
      • updateShapeBoundsInSubprocessInLanes

        public void updateShapeBoundsInSubprocessInLanes​(org.eclipse.bpmn2.di.BPMNPlane plane,
                                                         org.eclipse.bpmn2.BaseElement ele,
                                                         org.eclipse.bpmn2.SubProcess sub,
                                                         float parentX,
                                                         float parentY)
      • updateShapeBoundsInSubprocess

        public void updateShapeBoundsInSubprocess​(org.eclipse.bpmn2.di.BPMNPlane plane,
                                                  org.eclipse.bpmn2.BaseElement ele,
                                                  org.eclipse.bpmn2.SubProcess sub,
                                                  float parentX,
                                                  float parentY)
      • revisitMultiInstanceTasks

        public void revisitMultiInstanceTasks​(org.eclipse.bpmn2.Definitions def)
      • revisitWsdlImports

        public void revisitWsdlImports​(org.eclipse.bpmn2.Definitions def)
      • revisitSubProcessItemDefs

        public void revisitSubProcessItemDefs​(org.eclipse.bpmn2.Definitions def)
      • updateIDs

        public void updateIDs​(org.eclipse.bpmn2.Definitions def)
      • addSimulation

        public void addSimulation​(org.eclipse.bpmn2.Definitions def)
      • revisitDataObjects

        public void revisitDataObjects​(org.eclipse.bpmn2.Definitions def)
      • revisitTaskIoSpecification

        public void revisitTaskIoSpecification​(org.eclipse.bpmn2.Definitions def)
      • revisitTaskIoSpecificationInfo

        public void revisitTaskIoSpecificationInfo​(org.eclipse.bpmn2.FlowElementsContainer container)
      • revisitTaskAssociations

        public void revisitTaskAssociations​(org.eclipse.bpmn2.Definitions def)
      • revisitSendReceiveTasks

        public void revisitSendReceiveTasks​(org.eclipse.bpmn2.Definitions def)
      • setSendReceiveTasksInfo

        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)
      • revisitLanes

        public void revisitLanes​(org.eclipse.bpmn2.Definitions def)
      • revisitArtifacts

        public void revisitArtifacts​(org.eclipse.bpmn2.Definitions def)
      • revisitGroups

        public void revisitGroups​(org.eclipse.bpmn2.Definitions def)
      • revisitThrowEvents

        public void revisitThrowEvents​(org.eclipse.bpmn2.Definitions def)
        Updates event definitions for all throwing events.
        Parameters:
        def - Definitions
      • setThrowEventsInfo

        public 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)
      • setThrowEventsInfoForLanes

        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)
      • findContainerForBoundaryEvent

        protected org.eclipse.bpmn2.FlowElementsContainer findContainerForBoundaryEvent​(org.eclipse.bpmn2.FlowElementsContainer container,
                                                                                        org.eclipse.bpmn2.BoundaryEvent be)
      • revisitBoundaryEventsPositions

        protected void revisitBoundaryEventsPositions​(org.eclipse.bpmn2.Definitions def)
      • revisitCatchEventsConvertToBoundary

        protected void revisitCatchEventsConvertToBoundary​(org.eclipse.bpmn2.Definitions def)
      • revisitAssociationsIoSpec

        public void revisitAssociationsIoSpec​(org.eclipse.bpmn2.Definitions def)
      • setItemDefinitionsForActivitiesIoSpec

        public void setItemDefinitionsForActivitiesIoSpec​(org.eclipse.bpmn2.FlowElementsContainer container,
                                                          org.eclipse.bpmn2.Definitions def,
                                                          List<org.eclipse.bpmn2.ItemDefinition> toAddItemDefinitions)
      • revisitSignalRef

        public void revisitSignalRef​(org.eclipse.bpmn2.Definitions def)
        Updates the signal ref on catch and throw event definitions (including boundary)
        Parameters:
        def - Definitions
      • setSignalRefForCatchEvents

        public void setSignalRefForCatchEvents​(org.eclipse.bpmn2.FlowElementsContainer container,
                                               org.eclipse.bpmn2.Definitions def)
      • setSignalRefForThrowEvents

        public void setSignalRefForThrowEvents​(org.eclipse.bpmn2.FlowElementsContainer container,
                                               org.eclipse.bpmn2.Definitions def)
      • setSignalRefForBoundaryEvents

        public void setSignalRefForBoundaryEvents​(org.eclipse.bpmn2.FlowElementsContainer container,
                                                  org.eclipse.bpmn2.Definitions def)
      • findSignalWithName

        public org.eclipse.bpmn2.Signal findSignalWithName​(String signalRef,
                                                           org.eclipse.bpmn2.Definitions def)
      • revisitCatchEvents

        public void revisitCatchEvents​(org.eclipse.bpmn2.Definitions def)
        Updates event definitions for all catch events.
        Parameters:
        def - Definitions
      • setCatchEventsInfo

        public 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)
      • setCatchEventsInfoForLanes

        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)
      • unmarshallItem

        public org.eclipse.bpmn2.BaseElement unmarshallItem​(com.fasterxml.jackson.core.JsonParser parser,
                                                            String preProcessingData)
                                                     throws com.fasterxml.jackson.core.JsonParseException,
                                                            IOException
        Throws:
        com.fasterxml.jackson.core.JsonParseException
        IOException
      • applyProperties

        protected void applyProperties​(org.eclipse.bpmn2.BaseElement baseElement,
                                       Map<String,​String> properties,
                                       String preProcessingData)
      • applySubProcessProperties

        protected void applySubProcessProperties​(org.eclipse.bpmn2.SubProcess sp,
                                                 Map<String,​String> properties)
      • applyAdHocSubProcessProperties

        protected void applyAdHocSubProcessProperties​(org.eclipse.bpmn2.AdHocSubProcess ahsp,
                                                      Map<String,​String> properties)
      • applyEndEventProperties

        protected void applyEndEventProperties​(org.eclipse.bpmn2.EndEvent ee,
                                               Map<String,​String> properties)
      • applyAssociationProperties

        protected void applyAssociationProperties​(org.eclipse.bpmn2.Association association,
                                                  Map<String,​String> properties)
      • applyStartEventProperties

        protected void applyStartEventProperties​(org.eclipse.bpmn2.StartEvent se,
                                                 Map<String,​String> properties)
      • applyMessageProperties

        protected void applyMessageProperties​(org.eclipse.bpmn2.Message msg,
                                              Map<String,​String> properties)
      • applyDataStoreProperties

        protected void applyDataStoreProperties​(org.eclipse.bpmn2.DataStore da,
                                                Map<String,​String> properties)
      • applyDataObjectProperties

        protected void applyDataObjectProperties​(org.eclipse.bpmn2.DataObject da,
                                                 Map<String,​String> properties)
      • applyTextAnnotationProperties

        protected void applyTextAnnotationProperties​(org.eclipse.bpmn2.TextAnnotation ta,
                                                     Map<String,​String> properties)
      • applyGroupProperties

        protected void applyGroupProperties​(org.eclipse.bpmn2.Group group,
                                            Map<String,​String> properties)
      • applyEventProperties

        protected void applyEventProperties​(org.eclipse.bpmn2.Event event,
                                            Map<String,​String> properties)
      • applyCatchEventProperties

        protected void applyCatchEventProperties​(org.eclipse.bpmn2.CatchEvent event,
                                                 Map<String,​String> properties)
      • applyThrowEventProperties

        protected void applyThrowEventProperties​(org.eclipse.bpmn2.ThrowEvent event,
                                                 Map<String,​String> properties)
      • applyGlobalTaskProperties

        protected void applyGlobalTaskProperties​(org.eclipse.bpmn2.GlobalTask globalTask,
                                                 Map<String,​String> properties)
      • applyBaseElementProperties

        protected void applyBaseElementProperties​(org.eclipse.bpmn2.BaseElement baseElement,
                                                  Map<String,​String> properties)
      • applyDefinitionProperties

        protected void applyDefinitionProperties​(org.eclipse.bpmn2.Definitions def,
                                                 Map<String,​String> properties)
      • applyProcessProperties

        protected void applyProcessProperties​(org.eclipse.bpmn2.Process process,
                                              Map<String,​String> properties)
      • applyBusinessRuleTaskProperties

        protected void applyBusinessRuleTaskProperties​(org.eclipse.bpmn2.BusinessRuleTask task,
                                                       Map<String,​String> properties)
      • applyScriptTaskProperties

        protected void applyScriptTaskProperties​(org.eclipse.bpmn2.ScriptTask scriptTask,
                                                 Map<String,​String> properties)
      • applyServiceTaskProperties

        public void applyServiceTaskProperties​(org.eclipse.bpmn2.ServiceTask serviceTask,
                                               Map<String,​String> properties)
      • applyReceiveTaskProperties

        public void applyReceiveTaskProperties​(org.eclipse.bpmn2.ReceiveTask receiveTask,
                                               Map<String,​String> properties)
      • applySendTaskProperties

        public void applySendTaskProperties​(org.eclipse.bpmn2.SendTask sendTask,
                                            Map<String,​String> properties)
      • applyLaneProperties

        protected void applyLaneProperties​(org.eclipse.bpmn2.Lane lane,
                                           Map<String,​String> properties)
      • applyCallActivityProperties

        protected void applyCallActivityProperties​(org.eclipse.bpmn2.CallActivity callActivity,
                                                   Map<String,​String> properties)
      • applyTaskProperties

        protected void applyTaskProperties​(org.eclipse.bpmn2.Task task,
                                           Map<String,​String> properties,
                                           String preProcessingData)
      • applyUserTaskProperties

        protected void applyUserTaskProperties​(org.eclipse.bpmn2.UserTask task,
                                               Map<String,​String> properties)
      • setLastUserTaskID

        protected void setLastUserTaskID​(org.eclipse.bpmn2.UserTask task)
      • applyGatewayProperties

        protected void applyGatewayProperties​(org.eclipse.bpmn2.Gateway gateway,
                                              Map<String,​String> properties)
      • applySequenceFlowProperties

        protected void applySequenceFlowProperties​(org.eclipse.bpmn2.SequenceFlow sequenceFlow,
                                                   Map<String,​String> properties)
      • createBaseElement

        protected org.eclipse.bpmn2.BaseElement createBaseElement​(String stencil,
                                                                  String taskType,
                                                                  boolean customElement)
      • wrapInCDATABlock

        protected String wrapInCDATABlock​(String value)