Class WorkflowConditionDAO

java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workflow.dao.WorkflowConditionDAO
All Implemented Interfaces:
LogEnabled, Component, Serviceable

DAO for workflow conditions
  • Field Details

  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager smanager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Throws:
      ServiceException
    • getConditionNodes

      public Map<String,Object> getConditionNodes(String currentNode, String workflowName, String actionId)
      Get the tree's condition nodes
      Parameters:
      currentNode - id of the current node
      workflowName - unique name of current workflow
      actionId - id of current action
      Returns:
      a map of current node's children
    • _getConditions

      protected List<com.opensymphony.workflow.loader.AbstractDescriptor> _getConditions(String currentNode, com.opensymphony.workflow.loader.ActionDescriptor action)
      Get conditions below current node
      Parameters:
      currentNode - id of the current node
      action - current action
      Returns:
      a list of childnodes condition
    • conditionToJSON

      public Map<String,Object> conditionToJSON(com.opensymphony.workflow.loader.AbstractDescriptor condition, String currentNodeId, int index)
      Get condition or condition types properties
      Parameters:
      condition - current condition, can be ConditionsDescriptor or ConditionDescriptor
      currentNodeId - the id of the current node in the ConditionTreePanel
      index - index of current condition in node's condition list
      Returns:
      a map of the condition infos
    • _getConditionLabel

      protected Object _getConditionLabel(com.opensymphony.workflow.loader.ConditionDescriptor condition)
      Get condition's description or role
      Parameters:
      condition - the current condition
      Returns:
      the condition description as I18nizableText if exist, or its role as String if not