當前位置: 首頁>>代碼示例>>Java>>正文


Java WorkflowObjectFactory類代碼示例

本文整理匯總了Java中org.alfresco.repo.workflow.WorkflowObjectFactory的典型用法代碼示例。如果您正苦於以下問題:Java WorkflowObjectFactory類的具體用法?Java WorkflowObjectFactory怎麽用?Java WorkflowObjectFactory使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


WorkflowObjectFactory類屬於org.alfresco.repo.workflow包,在下文中一共展示了WorkflowObjectFactory類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: ActivitiPropertyConverter

import org.alfresco.repo.workflow.WorkflowObjectFactory; //導入依賴的package包/類
public ActivitiPropertyConverter(ActivitiUtil activitiUtil,
        WorkflowObjectFactory factory,
        WorkflowPropertyHandlerRegistry handlerRegistry,
        WorkflowAuthorityManager authorityManager,
        MessageService messageService,
        WorkflowNodeConverter nodeConverter)
{
    this.activitiUtil = activitiUtil;
    this.factory = factory;
    this.handlerRegistry = handlerRegistry;
    this.authorityManager = authorityManager;
    this.messageService = messageService;
    this.nodeConverter = nodeConverter;
    this.typeManager = new ActivitiTaskTypeManager(factory, activitiUtil.getFormService());
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:16,代碼來源:ActivitiPropertyConverter.java

示例2: ActivitiTypeConverter

import org.alfresco.repo.workflow.WorkflowObjectFactory; //導入依賴的package包/類
public ActivitiTypeConverter(ProcessEngine processEngine, 
            WorkflowObjectFactory factory,
            ActivitiPropertyConverter propertyConverter, boolean deployWorkflowsInTenant)
{
    this.runtimeService = processEngine.getRuntimeService();
    this.formService = processEngine.getFormService();
    this.historyService = processEngine.getHistoryService();
    this.factory = factory;
    this.propertyConverter =propertyConverter;
    this.activitiUtil = new ActivitiUtil(processEngine, deployWorkflowsInTenant);
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:12,代碼來源:ActivitiTypeConverter.java

示例3: testTransitionDefaultLabel

import org.alfresco.repo.workflow.WorkflowObjectFactory; //導入依賴的package包/類
/**
 * Test to validate ALF-18332 (default description label key).
 */
public void testTransitionDefaultLabel()
{
    MessageService mockedMessageService = Mockito.mock(MessageService.class);
    Mockito.when(mockedMessageService.getMessage(Mockito.anyString())).thenAnswer(new Answer<String>()
    {

        @Override
        public String answer(InvocationOnMock invocation) throws Throwable
        {
            String arg = (String) invocation.getArguments()[0];
            if ("base.key.title".equals(arg))
            {
                return "The title";
            }
            else if ("base.key.description".equals(arg))
            {
                return "The description";
            }
            return null;
        }
    });

    WorkflowObjectFactory factory = new WorkflowObjectFactory(null, null, mockedMessageService, null, ActivitiConstants.ENGINE_ID, null);
    WorkflowTransition createTransition = factory.createTransition("test-transition", "title", null, true, "base.key");
    assertNotNull(createTransition);
    assertEquals("The title", createTransition.getTitle());
    assertEquals("The description", createTransition.getDescription());
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:32,代碼來源:WorklfowObjectFactoryTest.java

示例4: ActivitiTaskTypeManager

import org.alfresco.repo.workflow.WorkflowObjectFactory; //導入依賴的package包/類
public ActivitiTaskTypeManager(WorkflowObjectFactory factory, FormService formService)
{
    this.factory = factory;
    this.formService = formService;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:6,代碼來源:ActivitiTaskTypeManager.java

示例5: getObject

import org.alfresco.repo.workflow.WorkflowObjectFactory; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public ActivitiWorkflowManager getObject() throws Exception
{
    if (messageService == null)
    {
        throw new WorkflowException("MessageService not specified");
    }
    if (serviceRegistry == null)
    {
        throw new WorkflowException("ServiceRegistry not specified");
    }
    if (tenantService == null)
    {
        throw new WorkflowException("TenantService not specified");
    }
    ActivitiNodeConverter nodeConverter = new ActivitiNodeConverter(serviceRegistry);
    DefaultWorkflowPropertyHandler defaultPropertyHandler = new DefaultWorkflowPropertyHandler();
    defaultPropertyHandler.setMessageService(messageService);
    defaultPropertyHandler.setNodeConverter(nodeConverter);
    
    WorkflowQNameConverter qNameConverter = new WorkflowQNameConverter(namespaceService);
    WorkflowPropertyHandlerRegistry handlerRegistry = new WorkflowPropertyHandlerRegistry(defaultPropertyHandler, qNameConverter);
    
    WorkflowAuthorityManager authorityManager = new WorkflowAuthorityManager(authorityDAO);
    QName defaultStartTaskType = WorkflowModel.TYPE_ACTIVTI_START_TASK;
    WorkflowObjectFactory factory = new WorkflowObjectFactory(qNameConverter, tenantService, messageService, dictionaryService, engineId, defaultStartTaskType);
    ActivitiUtil activitiUtil = new ActivitiUtil(processEngine, deployWorkflowsInTenant);
    ActivitiPropertyConverter propertyConverter = new ActivitiPropertyConverter(activitiUtil, factory, handlerRegistry, authorityManager, messageService, nodeConverter);
    ActivitiTypeConverter typeConverter = new ActivitiTypeConverter(processEngine, factory, propertyConverter, deployWorkflowsInTenant);
    
    ActivitiWorkflowEngine workflowEngine = new ActivitiWorkflowEngine();
    workflowEngine.setActivitiUtil(activitiUtil);
    workflowEngine.setAuthorityManager(authorityManager);
    workflowEngine.setBPMEngineRegistry(bpmEngineRegistry);
    workflowEngine.setEngineId(engineId);
    workflowEngine.setFactory(factory);
    workflowEngine.setMessageService(messageService);
    workflowEngine.setNamespaceService(namespaceService);
    workflowEngine.setNodeConverter(nodeConverter);
    workflowEngine.setDictionaryService(dictionaryService);
    workflowEngine.setNodeService(nodeService);
    workflowEngine.setPersonService(personService);
    workflowEngine.setPropertyConverter(propertyConverter);
    workflowEngine.setTenantService(tenantService);
    workflowEngine.setTypeConverter(typeConverter);
    workflowEngine.setRepositoryHelper(repositoryHelper);
    return new ActivitiWorkflowManager(workflowEngine, propertyConverter, handlerRegistry, nodeConverter, authorityManager);
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:52,代碼來源:ActivitiWorkflowManagerFactory.java

示例6: setFactory

import org.alfresco.repo.workflow.WorkflowObjectFactory; //導入依賴的package包/類
/**
 * @param factory the factory to set
 */
public void setFactory(WorkflowObjectFactory factory)
{
    this.factory = factory;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:8,代碼來源:ActivitiWorkflowEngine.java

示例7: getWorkflowObjectFactory

import org.alfresco.repo.workflow.WorkflowObjectFactory; //導入依賴的package包/類
public WorkflowObjectFactory getWorkflowObjectFactory() {
    return factory;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:4,代碼來源:ActivitiPropertyConverter.java

示例8: getWorkflowObjectFactory

import org.alfresco.repo.workflow.WorkflowObjectFactory; //導入依賴的package包/類
public WorkflowObjectFactory getWorkflowObjectFactory() {
	return factory;
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:4,代碼來源:ActivitiTypeConverter.java


注:本文中的org.alfresco.repo.workflow.WorkflowObjectFactory類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。