Exemple #1
0
  public void resume() {
    if (!isSuspended()) {
      throw new JbpmException("deployment is not suspended");
    }

    state = Deployment.STATE_ACTIVE;

    RepositorySessionImpl repositorySession =
        EnvironmentImpl.getFromCurrent(RepositorySessionImpl.class);
    repositorySession.cascadeDeploymentResume(this);

    RepositoryCache repositoryCache = EnvironmentImpl.getFromCurrent(RepositoryCache.class);
    repositoryCache.remove(Long.toString(dbid));
  }
Exemple #2
0
  public void suspend() {
    if (isSuspended()) {
      throw new JbpmException("deployment is already suspended");
    }

    state = Deployment.STATE_SUSPENDED;

    RepositorySessionImpl repositorySession =
        EnvironmentImpl.getFromCurrent(RepositorySessionImpl.class);
    repositorySession.cascadeDeploymentSuspend(this);

    RepositoryCache repositoryCache = EnvironmentImpl.getFromCurrent(RepositoryCache.class);
    repositoryCache.remove(Long.toString(dbid));
  }