public class WorkflowObjectFactory extends Object
Constructor and Description |
---|
WorkflowObjectFactory(WorkflowQNameConverter qNameConverter,
org.alfresco.repo.tenant.TenantService tenantService,
MessageService messageService,
org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
String engineId,
org.alfresco.service.namespace.QName defaultStartTaskType) |
Modifier and Type | Method and Description |
---|---|
String |
buildGlobalId(String localId) |
void |
checkDomain(String defName)
Throws exception if domain mismatch
|
void |
clearQNameCache() |
WorkflowDefinition |
createDefinition(String defId,
String defName,
int version,
String defaultTitle,
String defaultDescription,
WorkflowTaskDefinition startTaskDef)
Create a new
WorkflowDefinition . |
WorkflowDeployment |
createDeployment(WorkflowDefinition wfDef,
String... problems)
Create a new
WorkflowDeployment . |
WorkflowInstance |
createInstance(String id,
WorkflowDefinition definition,
Map<String,Object> variables,
boolean isActive,
Date startDate,
Date endDate) |
WorkflowNode |
createNode(String name,
String definitionName,
String defaultTitle,
String defaultDescription,
String type,
boolean isTaskNode,
WorkflowTransition... transitions) |
WorkflowPath |
createPath(String id,
WorkflowInstance wfInstance,
WorkflowNode node,
boolean isActive) |
WorkflowTask |
createTask(String id,
WorkflowTaskDefinition taskDef,
String name,
String defaultTitle,
String defaultDescription,
WorkflowTaskState state,
WorkflowPath path,
Map<org.alfresco.service.namespace.QName,Serializable> properties) |
WorkflowTask |
createTask(String id,
WorkflowTaskDefinition taskDef,
String name,
String defaultTitle,
String defaultDescription,
WorkflowTaskState state,
WorkflowPath path,
String workflowDefinitionName,
Map<org.alfresco.service.namespace.QName,Serializable> properties) |
WorkflowTaskDefinition |
createTaskDefinition(String id,
WorkflowNode node,
String typeName,
boolean isStart) |
WorkflowTransition |
createTransition(String id,
String defaultTitle,
String defaultDescription,
boolean isDefault,
String... baseLabelKeys) |
WorkflowTimer |
createWorkflowTimer(String id,
String name,
String error,
Date dueDate,
WorkflowPath workflowPath,
WorkflowTask workflowTask) |
<T> List<T> |
doSpecialTenantFilter(Collection<T> values,
org.alfresco.util.collections.Function<T,String> processKeyGetter)
For "default" domain return ALL workflows
For tenant-specific workflows exclude "default"
|
<T> List<T> |
filterByDomain(Collection<T> values,
org.alfresco.util.collections.Function<T,String> processKeyGetter) |
String |
getDomainProcessKey(String defName) |
String |
getLocalEngineId(String globalId) |
String |
getProcessKey(String defName) |
String |
getTaskDescription(org.alfresco.service.cmr.dictionary.TypeDefinition typeDefinition,
String defName,
String defaultDescription,
String title) |
org.alfresco.service.cmr.dictionary.TypeDefinition |
getTaskFullTypeDefinition(String name,
boolean isStart)
Returns an anonymous
TypeDefinition for the given name with all
the mandatory aspects applied. |
String |
getTaskTitle(org.alfresco.service.cmr.dictionary.TypeDefinition typeDefinition,
String defName,
String defaultTitle,
String name) |
org.alfresco.service.cmr.dictionary.TypeDefinition |
getTaskTypeDefinition(String name,
boolean isStart)
Gets the Task
TypeDefinition for the given name. |
String |
getWorkflowDefinitionName(String defName) |
boolean |
isDefaultDomain() |
boolean |
isGlobalId(String globalId) |
boolean |
isIgnoreTenantCheck() |
org.alfresco.service.namespace.QName |
mapNameToQName(String name)
Map QName to workflow variable name
|
String |
mapQNameToName(org.alfresco.service.namespace.QName name)
Map QName to workflow variable name
|
void |
setIgnoreTenantCheck(boolean ignoreTenantCheck) |
public WorkflowObjectFactory(WorkflowQNameConverter qNameConverter, org.alfresco.repo.tenant.TenantService tenantService, MessageService messageService, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, String engineId, org.alfresco.service.namespace.QName defaultStartTaskType)
public boolean isGlobalId(String globalId)
public WorkflowDeployment createDeployment(WorkflowDefinition wfDef, String... problems)
WorkflowDeployment
.wfDef
- WorkflowDefinitionproblems
- Stringpublic WorkflowDefinition createDefinition(String defId, String defName, int version, String defaultTitle, String defaultDescription, WorkflowTaskDefinition startTaskDef)
WorkflowDefinition
.defId
- StringdefName
- Stringversion
- intdefaultTitle
- StringdefaultDescription
- StringstartTaskDef
- WorkflowTaskDefinitionpublic WorkflowInstance createInstance(String id, WorkflowDefinition definition, Map<String,Object> variables, boolean isActive, Date startDate, Date endDate)
public WorkflowPath createPath(String id, WorkflowInstance wfInstance, WorkflowNode node, boolean isActive)
public WorkflowNode createNode(String name, String definitionName, String defaultTitle, String defaultDescription, String type, boolean isTaskNode, WorkflowTransition... transitions)
public WorkflowTransition createTransition(String id, String defaultTitle, String defaultDescription, boolean isDefault, String... baseLabelKeys)
public WorkflowTaskDefinition createTaskDefinition(String id, WorkflowNode node, String typeName, boolean isStart)
public WorkflowTask createTask(String id, WorkflowTaskDefinition taskDef, String name, String defaultTitle, String defaultDescription, WorkflowTaskState state, WorkflowPath path, Map<org.alfresco.service.namespace.QName,Serializable> properties)
public WorkflowTask createTask(String id, WorkflowTaskDefinition taskDef, String name, String defaultTitle, String defaultDescription, WorkflowTaskState state, WorkflowPath path, String workflowDefinitionName, Map<org.alfresco.service.namespace.QName,Serializable> properties)
public WorkflowTimer createWorkflowTimer(String id, String name, String error, Date dueDate, WorkflowPath workflowPath, WorkflowTask workflowTask)
public String getTaskTitle(org.alfresco.service.cmr.dictionary.TypeDefinition typeDefinition, String defName, String defaultTitle, String name)
public String getTaskDescription(org.alfresco.service.cmr.dictionary.TypeDefinition typeDefinition, String defName, String defaultDescription, String title)
public void checkDomain(String defName)
defName
- Stringpublic boolean isDefaultDomain()
public <T> List<T> filterByDomain(Collection<T> values, org.alfresco.util.collections.Function<T,String> processKeyGetter)
public <T> List<T> doSpecialTenantFilter(Collection<T> values, org.alfresco.util.collections.Function<T,String> processKeyGetter)
public org.alfresco.service.cmr.dictionary.TypeDefinition getTaskFullTypeDefinition(String name, boolean isStart)
TypeDefinition
for the given name with all
the mandatory aspects applied.name
- the name of the task definition.isStart
- is theis a start task?TypeDefinition
.public org.alfresco.service.cmr.dictionary.TypeDefinition getTaskTypeDefinition(String name, boolean isStart)
TypeDefinition
for the given name.name
- the name of the task definition.isStart
- is theis a start task?TypeDefinition
.public String mapQNameToName(org.alfresco.service.namespace.QName name)
name
- QNamepublic org.alfresco.service.namespace.QName mapNameToQName(String name)
name
- QNamepublic void clearQNameCache()
public boolean isIgnoreTenantCheck()
public void setIgnoreTenantCheck(boolean ignoreTenantCheck)
Copyright © 2005–2017 Alfresco Software. All rights reserved.