org.alfresco.repo.workflow.activiti
Class AbstractActivitiComponentTest

java.lang.Object
  extended by org.alfresco.repo.workflow.activiti.AbstractActivitiComponentTest
Direct Known Subclasses:
ActivitiTaskComponentTest, ActivitiWorkflowComponentTest

@ContextConfiguration(locations={"classpath:test-database-context.xml", "classpath:activiti/test-activiti-component-context.xml", "classpath:alfresco/activiti-context.xml"})
@TransactionConfiguration(transactionManager="transactionManager",
                          defaultRollback=true)
@Transactional
public class AbstractActivitiComponentTest
extends java.lang.Object

Since:
3.4.e

Field Summary
protected static org.alfresco.service.cmr.repository.NodeRef adminHomeNode
           
protected static org.alfresco.service.cmr.repository.NodeRef adminPersonNode
           
protected  AuthorityDAO authorityDAO
           
protected static org.alfresco.service.cmr.repository.NodeRef companyHomeNode
           
protected  org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
           
protected  org.activiti.engine.HistoryService historyService
           
protected  org.activiti.engine.ManagementService managementService
           
protected  MessageService messageService
           
protected  org.alfresco.service.namespace.NamespaceService namespaceService
           
protected  org.alfresco.service.cmr.repository.NodeService nodeService
           
protected  org.alfresco.service.cmr.security.PermissionService permissionService
           
protected  PersonService personService
           
protected  org.activiti.engine.ProcessEngine processEngine
           
protected  org.activiti.engine.RepositoryService repo
           
protected static org.alfresco.service.cmr.repository.NodeRef rootNode
           
protected  org.activiti.engine.RuntimeService runtime
           
protected  ServiceRegistry serviceRegistry
           
protected  org.activiti.engine.TaskService taskService
           
protected  org.alfresco.repo.tenant.TenantService tenantService
           
protected static java.lang.String TEST_ADHOC_DEF
           
protected static java.lang.String TEST_ADHOC_KEY
           
protected static java.lang.String TEST_DIAGRAM_DEF
           
protected static java.lang.String TEST_GROUP
           
protected static java.lang.String TEST_JOB_DEF
           
protected static java.lang.String TEST_JOB_KEY
           
protected static java.lang.String TEST_REVIEW_DEF
           
protected static java.lang.String TEST_SIGNALLING_DEF
           
protected static java.lang.String TEST_TASK_DEF
           
protected static java.lang.String TEST_TASK_KEY
           
protected static java.lang.String TEST_USER
           
protected static org.alfresco.service.cmr.repository.NodeRef testGroupNode
           
protected static org.alfresco.service.cmr.repository.NodeRef testUserNode
           
protected static org.alfresco.service.cmr.repository.NodeRef testWorkflowContext
           
protected static org.alfresco.service.cmr.repository.NodeRef testWorkflowPackage
           
protected  org.alfresco.service.cmr.search.SearchService unprotectedSearchService
           
protected  ActivitiWorkflowEngine workflowEngine
           
protected static java.lang.String XML
           
 
Constructor Summary
AbstractActivitiComponentTest()
           
 
Method Summary
protected  WorkflowDefinition deployDefinition(java.lang.String resource)
           
protected  WorkflowDefinition deployTestAdhocDefinition()
           
protected  WorkflowDefinition deployTestDiagramDefinition()
           
protected  WorkflowDefinition deployTestJobDefinition()
           
protected  WorkflowDefinition deployTestSignallingDefinition()
           
protected  WorkflowDefinition deployTestTaskDefinition()
           
protected  java.io.InputStream getInputStream(java.lang.String resource)
           
 java.lang.String mapQNameToName(org.alfresco.service.namespace.QName name)
           
 void setUp()
           
 void tearDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST_GROUP

protected static final java.lang.String TEST_GROUP
See Also:
Constant Field Values

TEST_USER

protected static final java.lang.String TEST_USER
See Also:
Constant Field Values

TEST_TASK_DEF

protected static final java.lang.String TEST_TASK_DEF
See Also:
Constant Field Values

TEST_TASK_KEY

protected static final java.lang.String TEST_TASK_KEY
See Also:
Constant Field Values

TEST_ADHOC_DEF

protected static final java.lang.String TEST_ADHOC_DEF
See Also:
Constant Field Values

TEST_SIGNALLING_DEF

protected static final java.lang.String TEST_SIGNALLING_DEF
See Also:
Constant Field Values

TEST_REVIEW_DEF

protected static final java.lang.String TEST_REVIEW_DEF
See Also:
Constant Field Values

TEST_ADHOC_KEY

protected static final java.lang.String TEST_ADHOC_KEY
See Also:
Constant Field Values

TEST_JOB_KEY

protected static final java.lang.String TEST_JOB_KEY
See Also:
Constant Field Values

TEST_JOB_DEF

protected static final java.lang.String TEST_JOB_DEF
See Also:
Constant Field Values

TEST_DIAGRAM_DEF

protected static final java.lang.String TEST_DIAGRAM_DEF
See Also:
Constant Field Values

XML

protected static final java.lang.String XML
See Also:
Constant Field Values

processEngine

protected org.activiti.engine.ProcessEngine processEngine

workflowEngine

protected ActivitiWorkflowEngine workflowEngine

runtime

protected org.activiti.engine.RuntimeService runtime

repo

protected org.activiti.engine.RepositoryService repo

taskService

protected org.activiti.engine.TaskService taskService

historyService

protected org.activiti.engine.HistoryService historyService

managementService

protected org.activiti.engine.ManagementService managementService

messageService

protected MessageService messageService

tenantService

protected org.alfresco.repo.tenant.TenantService tenantService

namespaceService

protected org.alfresco.service.namespace.NamespaceService namespaceService

dictionaryService

protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService

nodeService

protected org.alfresco.service.cmr.repository.NodeService nodeService

unprotectedSearchService

protected org.alfresco.service.cmr.search.SearchService unprotectedSearchService

permissionService

protected org.alfresco.service.cmr.security.PermissionService permissionService

personService

protected PersonService personService

authorityDAO

protected AuthorityDAO authorityDAO

serviceRegistry

protected ServiceRegistry serviceRegistry

rootNode

protected static final org.alfresco.service.cmr.repository.NodeRef rootNode

companyHomeNode

protected static final org.alfresco.service.cmr.repository.NodeRef companyHomeNode

adminPersonNode

protected static final org.alfresco.service.cmr.repository.NodeRef adminPersonNode

adminHomeNode

protected static final org.alfresco.service.cmr.repository.NodeRef adminHomeNode

testUserNode

protected static final org.alfresco.service.cmr.repository.NodeRef testUserNode

testGroupNode

protected static final org.alfresco.service.cmr.repository.NodeRef testGroupNode

testWorkflowPackage

protected static final org.alfresco.service.cmr.repository.NodeRef testWorkflowPackage

testWorkflowContext

protected static final org.alfresco.service.cmr.repository.NodeRef testWorkflowContext
Constructor Detail

AbstractActivitiComponentTest

public AbstractActivitiComponentTest()
Method Detail

deployTestTaskDefinition

protected WorkflowDefinition deployTestTaskDefinition()

deployTestAdhocDefinition

protected WorkflowDefinition deployTestAdhocDefinition()

deployTestSignallingDefinition

protected WorkflowDefinition deployTestSignallingDefinition()

deployTestJobDefinition

protected WorkflowDefinition deployTestJobDefinition()

deployTestDiagramDefinition

protected WorkflowDefinition deployTestDiagramDefinition()

deployDefinition

protected WorkflowDefinition deployDefinition(java.lang.String resource)

getInputStream

protected java.io.InputStream getInputStream(java.lang.String resource)

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

public void tearDown()

mapQNameToName

public java.lang.String mapQNameToName(org.alfresco.service.namespace.QName name)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.