Esempio n. 1
0
  /**
   * Returns <code>RuntimeManager</code> instance for given deployment unit (kjar)
   *
   * @param deploymentId unique identifier of unit (kjar)
   * @return null if no RuntimeManager available for given id
   */
  public RuntimeManager getRuntimeManager(String deploymentId) {

    DeployedUnit deployedUnit = deploymentService.getDeployedUnit(deploymentId);
    if (deployedUnit == null) {
      return null;
    }

    return deployedUnit.getRuntimeManager();
  }
Esempio n. 2
0
 /**
  * Undeploys given unit from the process engine
  *
  * @param unit unit that represents kjar
  */
 public void undeployUnit(KModuleDeploymentUnit unit) {
   deploymentService.undeploy(unit);
 }