Class ProcessDiagramGeneratorWrapper

java.lang.Object
org.activiti.cloud.services.query.ProcessDiagramGeneratorWrapper

public class ProcessDiagramGeneratorWrapper extends Object
Service logic for generating process diagrams
  • Constructor Details

    • ProcessDiagramGeneratorWrapper

      @Autowired public ProcessDiagramGeneratorWrapper(org.activiti.image.ProcessDiagramGenerator processDiagramGenerator)
  • Method Details

    • generateDiagram

      public byte[] generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel)
      Generate the diagram for a BPNM model
      Parameters:
      bpmnModel - the BPNM model
      Returns:
      the diagram for the given model
    • generateDiagram

      public byte[] generateDiagram(org.activiti.bpmn.model.BpmnModel bpmnModel, List<String> highLightedActivities, List<String> highLightedFlows, List<String> currentActivities, List<String> erroredActivities)
      Generate the diagram for a BPNM model
      Parameters:
      bpmnModel - the BPNM model
      highLightedActivities - the activity ids to highlight in diagram
      highLightedFlows - the flow ids to highlight in diagram
      Returns:
      the diagram for the given model
    • isGenerateDefaultDiagram

      public boolean isGenerateDefaultDiagram()
    • getDefaultDiagramImageFileName

      public String getDefaultDiagramImageFileName()
    • getDiagramImageFileName

      public String getDiagramImageFileName()
      Get diagram file name to use when there is no diagram graphic info inside model.
      Returns:
      the file name
    • getActivityFontName

      public String getActivityFontName()
      Get activity font name
      Returns:
      the activity font name
    • getLabelFontName

      public String getLabelFontName()
      Get label font name
      Returns:
      the label font name
    • getAnnotationFontName

      public String getAnnotationFontName()
      Get annotation font name
      Returns:
      the annotation font name
    • getAvailableFonts

      protected String[] getAvailableFonts()
    • getDiagramDefaultFont

      public String getDiagramDefaultFont()
    • setDiagramDefaultFont

      public void setDiagramDefaultFont(String diagramDefaultFont)
    • parseBpmnModelXml

      public org.activiti.bpmn.model.BpmnModel parseBpmnModelXml(InputStream inputStream)