All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.camunda.bpm.engine.runtime.UpdateProcessInstanceSuspensionStateBuilder Maven / Gradle / Ivy

There is a newer version: 7.23.0-alpha2
Show newest version
/* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.camunda.bpm.engine.runtime;

import org.camunda.bpm.engine.AuthorizationException;
import org.camunda.bpm.engine.ProcessEngineException;
import org.camunda.bpm.engine.authorization.Permissions;
import org.camunda.bpm.engine.authorization.Resources;

/**
 * Fluent builder to update the suspension state of process instances.
 */
public interface UpdateProcessInstanceSuspensionStateBuilder {

  /**
   * 

* Activates the provided process instances. *

* *

* If you have a process instance hierarchy, activating one process instance * from the hierarchy will not activate other process instances from that * hierarchy. *

* * @throws ProcessEngineException * If no such processDefinition can be found. * @throws AuthorizationException * if the user has no {@link Permissions#UPDATE_INSTANCE} permission * on {@link Resources#PROCESS_DEFINITION}. */ void activate(); /** *

* Suspends the provided process instances. This means that the execution is * stopped, so the token state will not change. However, actions that * do not change token state, like setting/removing variables, etc. will * succeed. *

* *

* Tasks belonging to the suspended process instance will also be suspended. * This means that any actions influencing the tasks' lifecycles will fail, * such as *

    *
  • claiming
  • *
  • completing
  • *
  • delegation
  • *
  • changes in task assignees, owners, etc.
  • *
* Actions that only change task properties will succeed, such as changing * variables or adding comments. *

* *

* If a process instance is in state suspended, the engine will also not * execute jobs (timers, messages) associated with this instance. *

* *

* If you have a process instance hierarchy, suspending one process instance * from the hierarchy will not suspend other process instances from that * hierarchy. *

* * @throws ProcessEngineException * If no such processDefinition can be found. * @throws AuthorizationException * if the user has no {@link Permissions#UPDATE_INSTANCE} permission * on {@link Resources#PROCESS_DEFINITION}. */ void suspend(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy