use of org.jbpm.services.api.model.DeploymentUnit in project jbpm by kiegroup.
the class EJBService method deployTransactionKieJar.
public DeploymentUnit deployTransactionKieJar() {
KieServices ks = KieServices.Factory.get();
ReleaseId releaseId = ks.newReleaseId(KieJar.TX.groupId, KieJar.TX.artifactId, KieJar.TX.version);
List<String> assets = new ArrayList<String>();
assets.add("ScriptTask.bpmn2");
assets.add("TxProcess.bpmn2");
assets.add("TxRules.drl");
assets.add("TxBoundaryEventProcess.bpmn2");
deployKieJar(ks, releaseId, assets);
DeploymentUnit deploymentUnit = new KModuleDeploymentUnit(KieJar.TX.getGroupId(), KieJar.TX.getArtifactId(), KieJar.TX.getVersion());
deploymentService.deploy(deploymentUnit);
units.add(deploymentUnit);
return deploymentUnit;
}
use of org.jbpm.services.api.model.DeploymentUnit in project jbpm by kiegroup.
the class EJBService method deployMigrationV1KieJar.
public DeploymentUnit deployMigrationV1KieJar() {
KieServices ks = KieServices.Factory.get();
ReleaseId releaseId = ks.newReleaseId(KieJar.MIGRATIONV1.groupId, KieJar.MIGRATIONV1.artifactId, KieJar.MIGRATIONV1.version);
List<String> assets = new ArrayList<String>();
assets.add("evaluation1.bpmn2");
deployKieJar(ks, releaseId, assets);
DeploymentUnit deploymentUnit = new KModuleDeploymentUnit(KieJar.MIGRATIONV1.getGroupId(), KieJar.MIGRATIONV1.getArtifactId(), KieJar.MIGRATIONV1.getVersion());
deploymentService.deploy(deploymentUnit);
units.add(deploymentUnit);
return deploymentUnit;
}
use of org.jbpm.services.api.model.DeploymentUnit in project jbpm by kiegroup.
the class EJBService method deployMigrationV2KieJar.
public DeploymentUnit deployMigrationV2KieJar() {
KieServices ks = KieServices.Factory.get();
ReleaseId releaseId = ks.newReleaseId(KieJar.MIGRATIONV2.groupId, KieJar.MIGRATIONV2.artifactId, KieJar.MIGRATIONV2.version);
List<String> assets = new ArrayList<String>();
assets.add("evaluation2.bpmn2");
deployKieJar(ks, releaseId, assets);
DeploymentUnit deploymentUnit = new KModuleDeploymentUnit(KieJar.MIGRATIONV2.getGroupId(), KieJar.MIGRATIONV2.getArtifactId(), KieJar.MIGRATIONV2.getVersion());
deploymentService.deploy(deploymentUnit);
units.add(deploymentUnit);
return deploymentUnit;
}
use of org.jbpm.services.api.model.DeploymentUnit in project jbpm by kiegroup.
the class EJBService method deployBasicKieJar.
public DeploymentUnit deployBasicKieJar() {
KieServices ks = KieServices.Factory.get();
ReleaseId releaseId = ks.newReleaseId(KieJar.BASIC.groupId, KieJar.BASIC.artifactId, KieJar.BASIC.version);
List<String> assets = new ArrayList<String>();
assets.add("ScriptTask.bpmn2");
assets.add("HumanTask.bpmn2");
assets.add("IntermediateSignalProcess.bpmn2");
deployKieJar(ks, releaseId, assets);
DeploymentUnit deploymentUnit = new KModuleDeploymentUnit(KieJar.BASIC.getGroupId(), KieJar.BASIC.getArtifactId(), KieJar.BASIC.getVersion());
deploymentService.deploy(deploymentUnit);
units.add(deploymentUnit);
return deploymentUnit;
}
use of org.jbpm.services.api.model.DeploymentUnit in project jbpm by kiegroup.
the class EDefinitionTest method testProcessVariables.
@Test
public void testProcessVariables() {
DeploymentUnit variableKieJar = archive.deployVariableKieJar();
Map<String, String> variables = definitionService.getProcessVariables(variableKieJar.getIdentifier(), OBJECT_VARIABLE_PROCESS_ID);
Assertions.assertThat(variables).isNotNull().hasSize(2).containsEntry("type", "String").containsEntry("myobject", "Object");
}
Aggregations