예제 #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));
  }
예제 #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));
  }