Class BpmnParse

java.lang.Object
org.flowable.engine.impl.bpmn.parser.BpmnParse
All Implemented Interfaces:
BpmnXMLConstants

public class BpmnParse extends Object implements BpmnXMLConstants
Specific parsing of one BPMN 2.0 XML file, created by the BpmnParser.
Author:
Tijs Rademakers, Joram Barrez
  • Field Details

    • LOGGER

      protected static final org.slf4j.Logger LOGGER
    • PROPERTYNAME_INITIAL

      public static final String PROPERTYNAME_INITIAL
      See Also:
    • PROPERTYNAME_INITIATOR_VARIABLE_NAME

      public static final String PROPERTYNAME_INITIATOR_VARIABLE_NAME
      See Also:
    • PROPERTYNAME_CONDITION

      public static final String PROPERTYNAME_CONDITION
      See Also:
    • PROPERTYNAME_CONDITION_TEXT

      public static final String PROPERTYNAME_CONDITION_TEXT
      See Also:
    • PROPERTYNAME_TIMER_DECLARATION

      public static final String PROPERTYNAME_TIMER_DECLARATION
      See Also:
    • PROPERTYNAME_ISEXPANDED

      public static final String PROPERTYNAME_ISEXPANDED
      See Also:
    • PROPERTYNAME_START_TIMER

      public static final String PROPERTYNAME_START_TIMER
      See Also:
    • PROPERTYNAME_COMPENSATION_HANDLER_ID

      public static final String PROPERTYNAME_COMPENSATION_HANDLER_ID
      See Also:
    • PROPERTYNAME_IS_FOR_COMPENSATION

      public static final String PROPERTYNAME_IS_FOR_COMPENSATION
      See Also:
    • PROPERTYNAME_ERROR_EVENT_DEFINITIONS

      public static final String PROPERTYNAME_ERROR_EVENT_DEFINITIONS
      See Also:
    • PROPERTYNAME_EVENT_SUBSCRIPTION_DECLARATION

      public static final String PROPERTYNAME_EVENT_SUBSCRIPTION_DECLARATION
      See Also:
    • name

      protected String name
    • validateSchema

      protected boolean validateSchema
    • validateProcess

      protected boolean validateProcess
    • streamSource

      protected StreamSource streamSource
    • sourceSystemId

      protected String sourceSystemId
    • bpmnModel

      protected BpmnModel bpmnModel
    • targetNamespace

      protected String targetNamespace
    • deployment

      protected EngineDeployment deployment
      The deployment to which the parsed process definitions will be added.
    • processDefinitions

      protected List<ProcessDefinitionEntity> processDefinitions
      The end result of the parsing: a list of process definition.
    • sequenceFlows

      protected Map<String,SequenceFlow> sequenceFlows
      A map for storing sequence flow based on their id during parsing.
    • bpmnParserHandlers

      protected BpmnParseHandlers bpmnParserHandlers
    • currentProcessDefinition

      protected ProcessDefinitionEntity currentProcessDefinition
    • currentProcess

      protected Process currentProcess
    • currentFlowElement

      protected FlowElement currentFlowElement
    • currentSubprocessStack

      protected LinkedList<SubProcess> currentSubprocessStack
    • prefixs

      protected Map<String,String> prefixs
      Mapping containing values stored during the first phase of parsing since other elements can reference these messages. All the map's elements are defined outside the process definition(s), which means that this map doesn't need to be re-initialized for each new process definition.
    • activityBehaviorFactory

      protected ActivityBehaviorFactory activityBehaviorFactory
    • listenerFactory

      protected ListenerFactory listenerFactory
  • Constructor Details

  • Method Details

    • deployment

      public BpmnParse deployment(EngineDeployment deployment)
    • execute

      public BpmnParse execute()
    • name

      public BpmnParse name(String name)
    • sourceInputStream

      public BpmnParse sourceInputStream(InputStream inputStream)
    • sourceResource

      public BpmnParse sourceResource(String resource)
    • sourceUrl

      public BpmnParse sourceUrl(URL url)
    • sourceUrl

      public BpmnParse sourceUrl(String url)
    • sourceResource

      public BpmnParse sourceResource(String resource, ClassLoader classLoader)
    • sourceString

      public BpmnParse sourceString(String string)
    • setStreamSource

      protected void setStreamSource(StreamSource streamSource)
    • setSourceSystemId

      public BpmnParse setSourceSystemId(String sourceSystemId)
    • applyParseHandlers

      protected void applyParseHandlers()
      Parses the 'definitions' root element
    • processFlowElements

      public void processFlowElements(Collection<FlowElement> flowElements)
    • processDI

      public void processDI()
    • createBPMNEdge

      public void createBPMNEdge(String key, List<GraphicInfo> graphicList)
    • getProcessDefinition

      public ProcessDefinitionEntity getProcessDefinition(String processDefinitionKey)
    • isValidateSchema

      public boolean isValidateSchema()
    • setValidateSchema

      public void setValidateSchema(boolean validateSchema)
    • isValidateProcess

      public boolean isValidateProcess()
    • setValidateProcess

      public void setValidateProcess(boolean validateProcess)
    • getProcessDefinitions

      public List<ProcessDefinitionEntity> getProcessDefinitions()
    • getTargetNamespace

      public String getTargetNamespace()
    • getBpmnParserHandlers

      public BpmnParseHandlers getBpmnParserHandlers()
    • setBpmnParserHandlers

      public void setBpmnParserHandlers(BpmnParseHandlers bpmnParserHandlers)
    • getDeployment

      public EngineDeployment getDeployment()
    • setDeployment

      public void setDeployment(EngineDeployment deployment)
    • getBpmnModel

      public BpmnModel getBpmnModel()
    • setBpmnModel

      public void setBpmnModel(BpmnModel bpmnModel)
    • getActivityBehaviorFactory

      public ActivityBehaviorFactory getActivityBehaviorFactory()
    • setActivityBehaviorFactory

      public void setActivityBehaviorFactory(ActivityBehaviorFactory activityBehaviorFactory)
    • getListenerFactory

      public ListenerFactory getListenerFactory()
    • setListenerFactory

      public void setListenerFactory(ListenerFactory listenerFactory)
    • getSequenceFlows

      public Map<String,SequenceFlow> getSequenceFlows()
    • getCurrentProcessDefinition

      public ProcessDefinitionEntity getCurrentProcessDefinition()
    • setCurrentProcessDefinition

      public void setCurrentProcessDefinition(ProcessDefinitionEntity currentProcessDefinition)
    • getCurrentFlowElement

      public FlowElement getCurrentFlowElement()
    • setCurrentFlowElement

      public void setCurrentFlowElement(FlowElement currentFlowElement)
    • getCurrentProcess

      public Process getCurrentProcess()
    • setCurrentProcess

      public void setCurrentProcess(Process currentProcess)
    • setCurrentSubProcess

      public void setCurrentSubProcess(SubProcess subProcess)
    • getCurrentSubProcess

      public SubProcess getCurrentSubProcess()
    • removeCurrentSubProcess

      public void removeCurrentSubProcess()