Class PlantUMLSVGReader

All Implemented Interfaces:
Poolable, Recyclable, Component, LogEnabled, Serviceable, Reader, SitemapModelComponent, SitemapOutputComponent

Serialize PlantUML state diagram
  • Constructor Details

  • Method Details

    • _getPlantUMLType

      protected String _getPlantUMLType()
      Description copied from class: AbstractPlantUMLSVGReader
      Get the diagram type
      Specified by:
      _getPlantUMLType in class AbstractPlantUMLSVGReader
      Returns:
      the diagram type
    • _getPlantUMLStyle

      Description copied from class: AbstractPlantUMLSVGReader
      Get plantUML style for current diagram
      Specified by:
      _getPlantUMLStyle in class AbstractPlantUMLSVGReader
      Returns:
      the style as string
    • _getPlantUMLGraphContent

      protected String _getPlantUMLGraphContent(Request request, com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
      Description copied from class: AbstractPlantUMLSVGReader
      Get the plantUML diagram body
      Specified by:
      _getPlantUMLGraphContent in class AbstractPlantUMLSVGReader
      Parameters:
      request - the request
      workflowDescriptor - descriptor of current workflow
      Returns:
      the diagram body as string
    • _getTransitionArrow

      protected String _getTransitionArrow(String incomingState, String outgoingState, String label, String iconPath, String jsFunction, String linkTooltip, boolean isDashed)
      Get the transition arrow between 2 states
      Parameters:
      incomingState - state's id before transition
      outgoingState - state's id after transition
      label - the transition's label
      iconPath - the transition's icon path
      jsFunction - the js function for sending current transition as selection
      linkTooltip - the transition link's tooltip
      isDashed - true if the arrow must be dashed
      Returns:
      the transition arrow content
    • _createState

      protected String _createState(com.opensymphony.workflow.loader.WorkflowDescriptor workflow, com.opensymphony.workflow.loader.StepDescriptor step)
      Create new state in diagram
      Parameters:
      workflow - unique id of current workflow
      step - a step of the workflow
      Returns:
      a string defining a plantUML state
    • _createTransition

      protected String _createTransition(com.opensymphony.workflow.loader.WorkflowDescriptor workflow, com.opensymphony.workflow.loader.StepDescriptor step, com.opensymphony.workflow.loader.ActionDescriptor transition)
      Create a new transition between two states in diagram
      Parameters:
      workflow - unique id of current workflow
      step - the initial step of this transition
      transition - the current action
      Returns:
      a string defining a plantUML transition