String wfn = wff+"20.xml"; // TODO 9: workaround for http://forums.activiti.org/en/viewtopic.php?f=8&t=3745&start=10
DeploymentBuilder db = repoSvc.createDeployment().addInputStream(wfn,new FileInputStream(wff));
// TODO 4: We should avoid redeploying here, if workflow file of a given version(?) is already deployed?
Deployment d = db.deploy();
ProcessDefinition pDef = repoSvc.createProcessDefinitionQuery().deploymentId(d.getId()).singleResult();
LOGGER.fine("deployedToEngine("+wff+") --> "+pDef);
}
static ProcessDefinition getDeployedWf(String wfName){