本文整理汇总了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());
}
示例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);
}
示例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());
}
示例4: ActivitiTaskTypeManager
import org.alfresco.repo.workflow.WorkflowObjectFactory; //导入依赖的package包/类
public ActivitiTaskTypeManager(WorkflowObjectFactory factory, FormService formService)
{
this.factory = factory;
this.formService = formService;
}
示例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);
}
示例6: setFactory
import org.alfresco.repo.workflow.WorkflowObjectFactory; //导入依赖的package包/类
/**
* @param factory the factory to set
*/
public void setFactory(WorkflowObjectFactory factory)
{
this.factory = factory;
}
示例7: getWorkflowObjectFactory
import org.alfresco.repo.workflow.WorkflowObjectFactory; //导入依赖的package包/类
public WorkflowObjectFactory getWorkflowObjectFactory() {
return factory;
}
示例8: getWorkflowObjectFactory
import org.alfresco.repo.workflow.WorkflowObjectFactory; //导入依赖的package包/类
public WorkflowObjectFactory getWorkflowObjectFactory() {
return factory;
}