Class ProcessDefinitionDiagramHelper

java.lang.Object
org.flowable.engine.impl.bpmn.deployer.ProcessDefinitionDiagramHelper

public class ProcessDefinitionDiagramHelper extends Object
Creates diagrams from process definitions.
  • Constructor Details

    • ProcessDefinitionDiagramHelper

      public ProcessDefinitionDiagramHelper()
  • Method Details

    • createDiagramForProcessDefinition

      public ResourceEntity createDiagramForProcessDefinition(ProcessDefinitionEntity processDefinition, BpmnParse bpmnParse)
      Generates a diagram resource for a ProcessDefinitionEntity and associated BpmnParse. The returned resource has not yet been persisted, nor attached to the ProcessDefinitionEntity. This requires that the ProcessDefinitionEntity have its key and resource name already set. The caller must determine whether creating a diagram for this process definition is appropriate or not, for example see shouldCreateDiagram(ProcessDefinitionEntity, DeploymentEntity).
    • createResourceEntity

      protected ResourceEntity createResourceEntity()
    • shouldCreateDiagram

      public boolean shouldCreateDiagram(ProcessDefinitionEntity processDefinition, DeploymentEntity deployment)