Class DocumentEventDefinitionParseHandler

java.lang.Object
org.flowable.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler<DocumentEventDefinition>
com.flowable.platform.engine.impl.documentevent.bpmn.DocumentEventDefinitionParseHandler
All Implemented Interfaces:
org.flowable.engine.parse.BpmnParseHandler

public class DocumentEventDefinitionParseHandler extends org.flowable.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler<DocumentEventDefinition>
Installs the document-event activity behavior on the BPMN host element (StartEvent at process level, StartEvent inside an EventSubProcess, IntermediateCatchEvent or BoundaryEvent) carrying a typed DocumentEventDefinition. Receives the typed model from the engine via AbstractBpmnParseHandler.getHandledType() dispatch — no extension-element walking. Configuration shape is validated by DocumentEventEventValidator ahead of deployment, so this handler only does the wiring.
  • Constructor Details

    • DocumentEventDefinitionParseHandler

      public DocumentEventDefinitionParseHandler()
  • Method Details

    • getHandledType

      protected Class<? extends org.flowable.bpmn.model.BaseElement> getHandledType()
      Specified by:
      getHandledType in class org.flowable.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler<DocumentEventDefinition>
    • executeParse

      protected void executeParse(org.flowable.engine.impl.bpmn.parser.BpmnParse bpmnParse, DocumentEventDefinition definition)
      Specified by:
      executeParse in class org.flowable.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler<DocumentEventDefinition>
    • addContentItemOutParameter

      protected void addContentItemOutParameter(org.flowable.bpmn.model.Event event, DocumentEventDefinition definition)
      Add a <flowable:eventOutParameter source="contentItem" target="<configured-name>"/> extension element on the start event so the standard BpmnEventInstanceOutParameterHandler writes the matched content item as a process variable when the engine starts the instance via ProcessInstanceHelper.
    • attribute

      protected org.flowable.bpmn.model.ExtensionAttribute attribute(String name, String value)
    • toDeclaration

      protected DocumentEventDeclaration toDeclaration(DocumentEventDefinition definition)
    • toResolvedLocations

      protected List<DocumentEventDeclaration.ResolvedLocation> toResolvedLocations(List<DocumentEventLocation> locations)