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)); }
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)); }