Search in sources :

Example 11 with WorkflowDeployment

use of org.alfresco.service.cmr.workflow.WorkflowDeployment in project alfresco-repository by Alfresco.

the class AbstractWorkflowServiceIntegrationTest method deployDefinition.

protected WorkflowDefinition deployDefinition(String resource) {
    InputStream input = getInputStream(resource);
    WorkflowDeployment deployment = workflowService.deployDefinition(getEngine(), input, XML);
    WorkflowDefinition definition = deployment.getDefinition();
    return definition;
}
Also used : InputStream(java.io.InputStream) WorkflowDeployment(org.alfresco.service.cmr.workflow.WorkflowDeployment) WorkflowDefinition(org.alfresco.service.cmr.workflow.WorkflowDefinition)

Aggregations

WorkflowDeployment (org.alfresco.service.cmr.workflow.WorkflowDeployment)11 WorkflowDefinition (org.alfresco.service.cmr.workflow.WorkflowDefinition)8 InputStream (java.io.InputStream)7 WorkflowException (org.alfresco.service.cmr.workflow.WorkflowException)4 Serializable (java.io.Serializable)3 NodeRef (org.alfresco.service.cmr.repository.NodeRef)3 QName (org.alfresco.service.namespace.QName)3 FileInfo (org.alfresco.service.cmr.model.FileInfo)2 ContentWriter (org.alfresco.service.cmr.repository.ContentWriter)2 ClassPathResource (org.springframework.core.io.ClassPathResource)2 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 IOException (java.io.IOException)1 PrintStream (java.io.PrintStream)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Map (java.util.Map)1 Properties (java.util.Properties)1 UserTransaction (javax.transaction.UserTransaction)1 ActivitiException (org.activiti.engine.ActivitiException)1