Class BPMEngineRegistry

java.lang.Object
org.alfresco.repo.workflow.BPMEngineRegistry

public class BPMEngineRegistry extends Object
BPM Engine Registry Responsible for managing the list of registered BPM Engines for the following components: - Workflow Component - Task Component
Author:
davidc
  • Constructor Details

    • BPMEngineRegistry

      public BPMEngineRegistry()
      Construct
  • Method Details

    • setWorkflowAdminService

      public void setWorkflowAdminService(WorkflowAdminService workflowAdminService)
      Sets the workflow admin service
      Parameters:
      workflowAdminService - the workflow admin service
    • registerWorkflowComponent

      public void registerWorkflowComponent(String engineId, WorkflowComponent engine)
      Register a BPM Engine Workflow Component
      Parameters:
      engineId - engine id
      engine - implementing engine
    • getWorkflowComponents

      public String[] getWorkflowComponents()
      Gets all registered Workflow Components
      Returns:
      array of engine ids
    • getWorkflowComponent

      public WorkflowComponent getWorkflowComponent(String engineId)
      Gets a specific BPM Engine Workflow Component
      Parameters:
      engineId - engine id
      Returns:
      the Workflow Component
    • registerTaskComponent

      public void registerTaskComponent(String engineId, TaskComponent engine)
      Register a BPM Engine Task Component
      Parameters:
      engineId - engine id
      engine - implementing engine
    • getTaskComponents

      public String[] getTaskComponents()
      Gets all registered Task Components
      Returns:
      array of engine ids
    • getTaskComponent

      public TaskComponent getTaskComponent(String engineId)
      Gets a specific BPM Engine Task Component
      Parameters:
      engineId - engine id
      Returns:
      the Workflow Component
    • createGlobalId

      public static String createGlobalId(String engineId, String localId)
      Construct a global Id
      Parameters:
      engineId - engine id
      localId - engine local id
      Returns:
      the global id
    • getGlobalIdParts

      public static String[] getGlobalIdParts(String globalId)
      Break apart a global id into its engine and local ids
      Parameters:
      globalId - the global id
      Returns:
      array containing engine id and global id in that order
    • getEngineId

      public static String getEngineId(String globalId)
      Get the engine id from a global id
      Parameters:
      globalId - the global id
      Returns:
      the engine id
    • getLocalId

      public static String getLocalId(String globalId)
      Get the local id from a global id
      Parameters:
      globalId - the global id
      Returns:
      the local id
    • isGlobalId

      public static boolean isGlobalId(String globalId, String engineId)
      Returns true if the globalId parameter is a valid global Id for the given engineId.
      Parameters:
      globalId - String
      engineId - String
      Returns:
      boolean