Пример #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));
  }
Пример #3
0
 public GeoGIG getRepository(String repositoryId) throws IOException {
   return repoCache.get(repositoryId);
 }