コード例 #1
0
ファイル: DeploymentImpl.java プロジェクト: vpcaiyc/sczl
  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
ファイル: DeploymentImpl.java プロジェクト: vpcaiyc/sczl
  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);
 }