001/*
002 * (C) Copyright 2011 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 */
018
019package org.nuxeo.ecm.platform.task;
020
021/**
022 * Event identifiers.
023 *
024 * @since 5.5
025 * @author <a href="mailto:ja@nuxeo.com">Julien Anguenot</a>
026 */
027public final class TaskEventNames {
028
029    /**
030     * Fired when WF Seam Bean are first created. Used to create the WF EventListener that catches Seam events
031     */
032    public static final String WF_INIT = "workflowInit";
033
034    /**
035     * Fired when a new process is started.
036     */
037    public static final String WORKFLOW_NEW_STARTED = "workflowNewProcessStarted";
038
039    /**
040     * Fired when a process has been ended.
041     */
042    public static final String WORKFLOW_ENDED = "workflowProcessEnded";
043
044    /**
045     * Fired when a process has been abandoned.
046     */
047    public static final String WORKFLOW_ABANDONED = "workflowAbandoned";
048
049    /**
050     * Fired when a process has been canceled.
051     */
052    public static final String WORKFLOW_CANCELED = "workflowProcessCanceled";
053
054    /**
055     * Fired when a task has been started.
056     */
057    public static final String WORKFLOW_TASK_START = "workflowTaskStart";
058
059    /**
060     * Fired when a task has been ended.
061     */
062    public static final String WORKFLOW_TASK_STOP = "workflowTaskStop";
063
064    /**
065     * Fired when a task has been completed.
066     */
067    public static final String WORKFLOW_TASK_COMPLETED = "workflowTaskCompleted";
068
069    /**
070     * Fired when a task has been removed.
071     */
072    public static final String WORKFLOW_TASK_REMOVED = "workflowTaskRemoved";
073
074    /**
075     * Fired when a task has been rejected.
076     */
077    public static final String WORKFLOW_TASK_REJECTED = "workflowTaskRejected";
078
079    public static final String WORKFLOW_TASK_ASSIGNED = "workflowTaskAssigned";
080
081    /**
082     * Fired when an assignment has been updated.
083     *
084     * @deprecated @since 5.7.3 WORKFLOW_TASK_REASSIGNED is used
085     */
086    @Deprecated
087    public static final String WORKFLOW_USER_ASSIGNMENT_CHANGED = "workflowUserAssignmentChanged";
088
089    public static final String WORKFLOW_TASKS_COMPUTED = "workflowTasksComputed";
090
091    /**
092     * @since 5.7.3
093     */
094    public static final String WORKFLOW_TASK_REASSIGNED = "workflowTaskReassigned";
095
096    /**
097     * @since 5.8
098     */
099    public static final String WORKFLOW_TASK_DELEGATED = "workflowTaskDelegated";
100
101    /**
102     * Fired when a new work items list is created.
103     */
104    public static final String WORK_ITEMS_LIST_ADDED = "workItemsListAdded";
105
106    /**
107     * Fired when a work items list is deleted.
108     */
109    public static final String WORK_ITEMS_LIST_REMOVED = "workItemsListRemoved";
110
111    /**
112     * Fired when a work items list is loaded.
113     */
114    public static final String WORK_ITEMS_LIST_LOADED = "workItemsListLoaded";
115
116    /**
117     * A task variable key to disable the notification service. (i.e. no email sending through this service)
118     */
119    public static final String DISABLE_NOTIFICATION_SERVICE = "disableNotificationService";
120
121    // Constant utility class.
122    private TaskEventNames() {
123    }
124
125}