.getRepositoryService();
NewDeployment deployment = service.createDeployment();
deployment.addResourceFromInputStream(processName + ".jpdl.xml", definitionStream);
if (processMapImageStream != null)
deployment.addResourceFromInputStream(processName + ".png", processMapImageStream);
return deployment.deploy();
}
public String getProcessState(ProcessInstance pi, ProcessToolContext ctx) {
List<BpmTask> tasks = findProcessTasks(pi, ctx);
for (BpmTask task : tasks) {