use of com.adobe.acs.commons.mcp.ProcessDefinition in project acs-aem-commons by Adobe-Consulting-Services.
the class FactoryInjectionTest method testAssetReportFactory.
@Test
public void testAssetReportFactory() throws Exception {
ProcessDefinition def = cpm.findDefinitionByNameOrPath("Asset Report");
assertNotNull(def);
assertTrue(def instanceof AssetReport);
}
use of com.adobe.acs.commons.mcp.ProcessDefinition in project acs-aem-commons by Adobe-Consulting-Services.
the class FactoryInjectionTest method testFolderRelocatorFactory.
@Test
public void testFolderRelocatorFactory() throws Exception {
ProcessDefinition def = cpm.findDefinitionByNameOrPath("Folder Relocator");
assertNotNull(def);
assertTrue(def instanceof FolderRelocator);
}
use of com.adobe.acs.commons.mcp.ProcessDefinition in project acs-aem-commons by Adobe-Consulting-Services.
the class ControlledProcessManagerServlet method doStartProcess.
private ProcessInstance doStartProcess(SlingHttpServletRequest request) throws RepositoryException, ReflectiveOperationException, DeserializeException {
String def = request.getParameter("definition");
String description = request.getParameter("description");
ProcessDefinition definition = manager.findDefinitionByNameOrPath(def);
ProcessInstance instance = manager.createManagedProcessInstance(definition, description);
instance.init(request.getResourceResolver(), convertRequestMap(request.getRequestParameterMap()));
instance.run(request.getResourceResolver());
return instance;
}
use of com.adobe.acs.commons.mcp.ProcessDefinition in project acs-aem-commons by Adobe-Consulting-Services.
the class FactoryInjectionTest method testProcessCleanupFactory.
@Test
public void testProcessCleanupFactory() throws Exception {
ProcessDefinition def = cpm.findDefinitionByNameOrPath("Process Cleanup");
assertNotNull(def);
assertTrue(def instanceof ProcessCleanup);
}
use of com.adobe.acs.commons.mcp.ProcessDefinition in project acs-aem-commons by Adobe-Consulting-Services.
the class FactoryInjectionTest method testFileIngestorFactory.
@Test
public void testFileIngestorFactory() throws Exception {
ProcessDefinition def = cpm.findDefinitionByNameOrPath("Asset Ingestor");
assertNotNull(def);
assertTrue(def instanceof FileAssetIngestor);
}
Aggregations