当前位置: 首页>>代码示例>>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;未经允许,请勿转载。