10-29-2013 12:49 PM
public class DeployProcessUtil implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) throws Exception {
RepositoryService repo = ActivitiUtil.getRepositoryService();
DeploymentBuilder deploymentBuilder = repo.createDeployment();
try {
// getBarFile() loads the .bar-file as byte[]
deploymentBuilder.addZipInputStream(new ZipInputStream(new ByteArrayInputStream(getBarFile()));
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
}
org.activiti.engine.repository.Deployment deployment = deploymentBuilder.deploy();
// There is only one deployed process, but there should be two
System.out.println("Process: " + ActivitiUtil.getRepositoryService().createProcessDefinitionQuery().list());
}
}
10-30-2013 01:54 PM
10-31-2013 10:55 AM
10-31-2013 02:34 AM
10-31-2013 10:59 AM
11-02-2013 03:49 PM
11-03-2013 06:06 AM
11-05-2013 08:10 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.