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

org.camunda.bpm.engine.impl.history.event.HistoryEventTypes Maven / Gradle / Ivy

There is a newer version: 7.22.0-alpha5
Show newest version
/*
 * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
 * under one or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information regarding copyright
 * ownership. Camunda licenses this file to you under the Apache License,
 * Version 2.0; 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.impl.history.event;

/**
 * The set of built-in history event types.
 *
 * @author Daniel Meyer
 * @author Ingo Richtsmeier
 * @since 7.2
 */
public enum HistoryEventTypes implements HistoryEventType {

  /** fired when a process instance is started. */
  PROCESS_INSTANCE_START("process-instance", "start"),
  /** fired when a process instance is updated */
  PROCESS_INSTANCE_UPDATE("process-instance-update", "update"),
  /** fired when a process instance is migrated */
  PROCESS_INSTANCE_MIGRATE("process-instance", "migrate"),
  /** fired when a process instance is ended. */
  PROCESS_INSTANCE_END("process-instance", "end"),

  /** fired when an activity instance is started. */
  ACTIVITY_INSTANCE_START("activity-instance", "start"),
  /** fired when an activity instance is updated. */
  ACTIVITY_INSTANCE_UPDATE("activity-instance", "update"),
  /** fired when an activity instance is migrated. */
  ACTIVITY_INSTANCE_MIGRATE("activity-instance", "migrate"),
  /** fired when an activity instance is ended. */
  ACTIVITY_INSTANCE_END("activity-instance", "end"),

  /** fired when a task instance is created. */
  TASK_INSTANCE_CREATE("task-instance", "create"),
  /** fired when a task instance is updated. */
  TASK_INSTANCE_UPDATE("task-instance", "update"),
  /** fired when a task instance is migrated. */
  TASK_INSTANCE_MIGRATE("task-instance", "migrate"),
  /** fired when a task instance is completed. */
  TASK_INSTANCE_COMPLETE("task-instance", "complete"),
  /** fired when a task instance is deleted. */
  TASK_INSTANCE_DELETE("task-instance", "delete"),

  /** fired when a variable instance is created. */
  VARIABLE_INSTANCE_CREATE("variable-instance", "create"),
  /** fired when a variable instance is updated. */
  VARIABLE_INSTANCE_UPDATE("variable-instance", "update"),
  /** fired when a variable instance is migrated. */
  VARIABLE_INSTANCE_MIGRATE("variable-instance", "migrate"),
  /** fired when a variable instance is updated. */
  VARIABLE_INSTANCE_UPDATE_DETAIL("variable-instance", "update-detail"),
  /** fired when a variable instance is deleted. */
  VARIABLE_INSTANCE_DELETE("variable-instance", "delete"),

  /** fired when a form property is updated. */
  FORM_PROPERTY_UPDATE("form-property", "form-property-update"),

  /** fired when an incident is created. */
  INCIDENT_CREATE("incident", "create"),
  /** fired when an incident is migrated. */
  INCIDENT_MIGRATE("incident", "migrate"),
  /** fired when an incident is deleted. */
  INCIDENT_DELETE("incident", "delete"),
  /** fired when an incident is resolved. */
  INCIDENT_RESOLVE("incident", "resolve"),
  /** fired when an incident is updated. */
  INCIDENT_UPDATE("incident", "update"),

  /** fired when a case instance is created. */
  CASE_INSTANCE_CREATE("case-instance", "create"),
  /** fired when a case instance is updated. */
  CASE_INSTANCE_UPDATE("case-instance", "update"),
  /** fired when a case instance is closed. */
  CASE_INSTANCE_CLOSE("case-instance", "close"),

  /** fired when a case activity instance is created. */
  CASE_ACTIVITY_INSTANCE_CREATE("case-activity-instance", "create"),
  /** fired when a case activity instance is updated. */
  CASE_ACTIVITY_INSTANCE_UPDATE("case-activity-instance", "update"),
  /** fired when a case instance is ended. */
  CASE_ACTIVITY_INSTANCE_END("case-activity_instance", "end"),

  /**
   * fired when a job is created.
   *
   * @since 7.3
   */
  JOB_CREATE("job", "create"),

  /**
   * fired when a job is failed.
   *
   * @since 7.3
   */
  JOB_FAIL("job", "fail"),

  /**
   * fired when a job is succeeded.
   *
   * @since 7.3
   */
  JOB_SUCCESS("job", "success"),

  /**
   * fired when a job is deleted.
   *
   * @since 7.3
   */
  JOB_DELETE("job", "delete"),

  /**
   * fired when a decision is evaluated.
   *
   * @since 7.4
   */
  DMN_DECISION_EVALUATE("decision", "evaluate"),

  /**
   * fired when a batch was started.
   *
   * @since 7.5
   */
  BATCH_START("batch", "start"),

  /**
   * fired when a batch was completed.
   *
   * @since 7.5
   */
  BATCH_END("batch", "end"),

  /**
   * fired when a batch was updated.
   *
   * @since 7.18
   */
  BATCH_UPDATE("batch", "update"),

  /**
   * fired when an identity link is added
   *
   * @since 7.5
   */
  IDENTITY_LINK_ADD("identity-link-add", "add-identity-link"),

  /**
   * fired when an identity link is removed
   *
   * @since 7.5
   */
  IDENTITY_LINK_DELETE("identity-link-delete", "delete-identity-link"),

  /**
   * fired when an external task is created.
   *
   * @since 7.7
   */
  EXTERNAL_TASK_CREATE("external-task", "create"),

  /**
   * fired when an external task has failed.
   *
   * @since 7.7
   */
  EXTERNAL_TASK_FAIL("external-task", "fail"),

  /**
   * fired when an external task has succeeded.
   *
   * @since 7.7
   */
  EXTERNAL_TASK_SUCCESS("external-task", "success"),

  /**
   * fired when an external task is deleted.
   *
   * @since 7.7
   */
  EXTERNAL_TASK_DELETE("external-task", "delete"),


  /**
   * fired when used operation log is created.
   *
   * @since 7.10, 7.9.1, 7.8.7
   */
  USER_OPERATION_LOG("user-operation-log", "create");

  private HistoryEventTypes(String entityType, String eventName) {
    this.entityType = entityType;
    this.eventName = eventName;
  }

  protected String entityType;
  protected String eventName;

  public String getEntityType() {
    return entityType;
  }

  public String getEventName() {
    return eventName;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy