Class WorkflowEngine

java.lang.Object
com.adobe.cq.testing.client.workflow.WorkflowEngine

public class WorkflowEngine extends Object
Simple helper class to get all available infos return from the workflow engine. The class is initialised by a call to WorkflowClient.getWorkflowEngineInfo(int...).
  • Field Details

    • STATE

      public static final String STATE
      Property that contains the state of the workflow engine. The possible states equal the OSGi Service states: "ACTIVE", "ACTIVATING","DEACTIVATING","DESTROYED","DISABLED","ENABLED","REGISTERED","UNSATISFIED"
      See Also:
    • SERVICE_VENDOR

      public static final String SERVICE_VENDOR
      Name of the Vendor for this workflow service
      See Also:
    • SERVICE_PID

      public static final String SERVICE_PID
      The process id of the workflow engine service
      See Also:
    • SERVICE_DESCR

      public static final String SERVICE_DESCR
      Description of the workflow service
      See Also:
    • COMPONENT_NAME

      public static final String COMPONENT_NAME
      The name of hte OSGi Component that implements this service
      See Also:
    • COMPONENT_ID

      public static final String COMPONENT_ID
      The id given to the workflow component
      See Also:
  • Constructor Details

    • WorkflowEngine

      public WorkflowEngine(Map<String,String> prop)
      Teh only constructor
      Parameters:
      prop - the properties list returned by requesting the server.
  • Method Details

    • getProperty

      public String getProperty(String propName)
      returns the value of an engine property or null if not defined.
      Parameters:
      propName - name of the property
      Returns:
      the value of the requested property
    • getAllProperties

      public Map<String,String> getAllProperties()
      returns list of all properties.
      Returns:
      a map of all properties, where the key is the name of the property.