mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-10197, Added the ability to auto-complete Start Tasks in Activiti. If a start task extends the bpm:activitiStartTask type or implements the bpm:endAutomatically aspect then the task will be ended as soon as the workflow instance is started.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30750 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,6 +24,7 @@ import org.alfresco.repo.tenant.TenantService;
|
||||
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||
import org.alfresco.service.cmr.workflow.WorkflowException;
|
||||
import org.alfresco.service.namespace.NamespaceService;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
|
||||
/**
|
||||
* @author Nick Smith
|
||||
@@ -58,7 +59,8 @@ public abstract class AlfrescoBpmEngine extends BPMEngine
|
||||
throw new WorkflowException("NamespaceService not specified");
|
||||
}
|
||||
WorkflowQNameConverter qNameConverter = new WorkflowQNameConverter(namespaceService);
|
||||
this.factory = new WorkflowObjectFactory(qNameConverter, tenantService, messageService, dictionaryService, getEngineId());
|
||||
QName defaultStartTaskType = getDefaultStartTaskType();
|
||||
this.factory = new WorkflowObjectFactory(qNameConverter, tenantService, messageService, dictionaryService, getEngineId(), defaultStartTaskType);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -114,4 +116,6 @@ public abstract class AlfrescoBpmEngine extends BPMEngine
|
||||
{
|
||||
this.authorityManager = authorityManager;
|
||||
}
|
||||
|
||||
protected abstract QName getDefaultStartTaskType();
|
||||
}
|
||||
|
Reference in New Issue
Block a user