本文整理汇总了Java中org.jbpm.services.api.model.DeploymentUnit类的典型用法代码示例。如果您正苦于以下问题:Java DeploymentUnit类的具体用法?Java DeploymentUnit怎么用?Java DeploymentUnit使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DeploymentUnit类属于org.jbpm.services.api.model包,在下文中一共展示了DeploymentUnit类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.jbpm.services.api.model.DeploymentUnit; //导入依赖的package包/类
@PostConstruct
public void init(){
String[] gav = DEPLOYMENT_ID.split(":");
DeploymentUnit deploymentUnit = new KModuleDeploymentUnit(gav[0], gav[1], gav[2]);
if(deploymentService.isDeployed(deploymentUnit.getIdentifier()))
{
deploymentService.undeploy(deploymentUnit);
}
deploymentService.deploy(deploymentUnit);
// DeployedUnit deployed = deploymentService.getDeployedUnit(deploymentUnit.getIdentifier());
// RuntimeManager manager = deployed.getRuntimeManager();
// System.out.print("This is test");
}
示例2: init
import org.jbpm.services.api.model.DeploymentUnit; //导入依赖的package包/类
@PostConstruct
public void init() {
String[] gav = PROCESSES_DEPLOYMENT_ID.split(":");
DeploymentUnit deploymentUnit = new KModuleDeploymentUnit(gav[0], gav[1], gav[2]);
deploymentService.deploy(deploymentUnit);
}
示例3: init
import org.jbpm.services.api.model.DeploymentUnit; //导入依赖的package包/类
@PostConstruct
public void init() {
System.setProperty("org.jbpm.ht.callback", "custom");
System.setProperty("org.jbpm.ht.custom.callback", "org.jbpm.examples.util.RewardsUserGroupCallback");
String[] gav = DEPLOYMENT_ID.split(":");
DeploymentUnit deploymentUnit = new KModuleDeploymentUnit(gav[0], gav[1], gav[2]);
deploymentService.deploy(deploymentUnit);
}
示例4: init
import org.jbpm.services.api.model.DeploymentUnit; //导入依赖的package包/类
@PostConstruct
public void init() {
String[] gav = DEPLOYMENT_ID.split(":");
DeploymentUnit deploymentUnit = new KModuleDeploymentUnit(gav[0], gav[1], gav[2]);
deploymentService.deploy(deploymentUnit);
}