org.camunda.bpm.engine.task.Event Maven / Gradle / Ivy
/*
* 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.task;
import java.util.Date;
import java.util.List;
import org.camunda.bpm.engine.TaskService;
import org.camunda.bpm.engine.history.UserOperationLogEntry;
import org.camunda.bpm.engine.history.UserOperationLogQuery;
/** Exposes twitter-like feeds for tasks and process instances.
*
* Deprecation
* This class has been deprecated as of Camunda Platform 7.1. It has been replaced with
* the operation log. See {@link UserOperationLogEntry} and {@link UserOperationLogQuery}.
*
* @see {@link TaskService#getTaskEvents(String)
* @author Tom Baeyens
*/
@Deprecated
public interface Event {
/** A user identity link was added with following message parts:
* [0] userId
* [1] identity link type (aka role) */
String ACTION_ADD_USER_LINK = UserOperationLogEntry.OPERATION_TYPE_ADD_USER_LINK;
/** A user identity link was added with following message parts:
* [0] userId
* [1] identity link type (aka role) */
String ACTION_DELETE_USER_LINK = UserOperationLogEntry.OPERATION_TYPE_DELETE_USER_LINK;
/** A group identity link was added with following message parts:
* [0] groupId
* [1] identity link type (aka role) */
String ACTION_ADD_GROUP_LINK = UserOperationLogEntry.OPERATION_TYPE_ADD_GROUP_LINK;
/** A group identity link was added with following message parts:
* [0] groupId
* [1] identity link type (aka role) */
String ACTION_DELETE_GROUP_LINK = UserOperationLogEntry.OPERATION_TYPE_DELETE_GROUP_LINK;
/** An user comment was added with the short version of the comment as message. */
String ACTION_ADD_COMMENT = "AddComment";
/** An attachment was added with the attachment name as message. */
String ACTION_ADD_ATTACHMENT = UserOperationLogEntry.OPERATION_TYPE_ADD_ATTACHMENT;
/** An attachment was deleted with the attachment name as message. */
String ACTION_DELETE_ATTACHMENT = UserOperationLogEntry.OPERATION_TYPE_DELETE_ATTACHMENT;
/** Indicates the type of of action and also indicates the meaning of the parts as exposed in {@link #getMessageParts()} */
String getAction();
/** The meaning of the message parts is defined by the action as you can find in {@link #getAction()} */
List getMessageParts();
/** The message that can be used in case this action only has a single message part. */
String getMessage();
/** reference to the user that made the comment */
String getUserId();
/** time and date when the user made the comment */
Date getTime();
/** reference to the task on which this comment was made */
String getTaskId();
/** reference to the process instance on which this comment was made */
String getProcessInstanceId();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy