Package org.alfresco.repo.workflow
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 Summary
Constructors Constructor Description BPMEngineRegistry()Construct
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringcreateGlobalId(String engineId, String localId)Construct a global Idstatic StringgetEngineId(String globalId)Get the engine id from a global idstatic String[]getGlobalIdParts(String globalId)Break apart a global id into its engine and local idsstatic StringgetLocalId(String globalId)Get the local id from a global idTaskComponentgetTaskComponent(String engineId)Gets a specific BPM Engine Task ComponentString[]getTaskComponents()Gets all registered Task ComponentsWorkflowComponentgetWorkflowComponent(String engineId)Gets a specific BPM Engine Workflow ComponentString[]getWorkflowComponents()Gets all registered Workflow Componentsstatic booleanisGlobalId(String globalId, String engineId)Returnstrueif the globalId parameter is a valid global Id for the given engineId.voidregisterTaskComponent(String engineId, TaskComponent engine)Register a BPM Engine Task ComponentvoidregisterWorkflowComponent(String engineId, WorkflowComponent engine)Register a BPM Engine Workflow ComponentvoidsetWorkflowAdminService(WorkflowAdminService workflowAdminService)Sets the workflow admin service
-
-
-
Method Detail
-
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 idengine- 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 idengine- 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 idlocalId- 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
-
-