Package org.alfresco.repo.workflow
Class BPMEngineRegistry
java.lang.Object
org.alfresco.repo.workflow.BPMEngineRegistry
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 idgetTaskComponent(String engineId) Gets a specific BPM Engine Task ComponentString[]Gets all registered Task ComponentsgetWorkflowComponent(String engineId) Gets a specific BPM Engine Workflow ComponentString[]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
-
Constructor Details
-
BPMEngineRegistry
public BPMEngineRegistry()Construct
-
-
Method Details
-
setWorkflowAdminService
Sets the workflow admin service- Parameters:
workflowAdminService- the workflow admin service
-
registerWorkflowComponent
Register a BPM Engine Workflow Component- Parameters:
engineId- engine idengine- implementing engine
-
getWorkflowComponents
Gets all registered Workflow Components- Returns:
- array of engine ids
-
getWorkflowComponent
Gets a specific BPM Engine Workflow Component- Parameters:
engineId- engine id- Returns:
- the Workflow Component
-
registerTaskComponent
Register a BPM Engine Task Component- Parameters:
engineId- engine idengine- implementing engine
-
getTaskComponents
Gets all registered Task Components- Returns:
- array of engine ids
-
getTaskComponent
Gets a specific BPM Engine Task Component- Parameters:
engineId- engine id- Returns:
- the Workflow Component
-
createGlobalId
Construct a global Id- Parameters:
engineId- engine idlocalId- engine local id- Returns:
- the global id
-
getGlobalIdParts
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
Get the engine id from a global id- Parameters:
globalId- the global id- Returns:
- the engine id
-
getLocalId
Get the local id from a global id- Parameters:
globalId- the global id- Returns:
- the local id
-
isGlobalId
Returnstrueif the globalId parameter is a valid global Id for the given engineId.- Parameters:
globalId- StringengineId- String- Returns:
- boolean
-