001/* 002 * (C) Copyright 2011 Nuxeo SA (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 */ 016 017package org.nuxeo.ecm.platform.task; 018 019/** 020 * Event identifiers. 021 * 022 * @since 5.5 023 * @author <a href="mailto:ja@nuxeo.com">Julien Anguenot</a> 024 */ 025public final class TaskEventNames { 026 027 /** 028 * Fired when WF Seam Bean are first created. Used to create the WF EventListener that catches Seam events 029 */ 030 public static final String WF_INIT = "workflowInit"; 031 032 /** 033 * Fired when a new process is started. 034 */ 035 public static final String WORKFLOW_NEW_STARTED = "workflowNewProcessStarted"; 036 037 /** 038 * Fired when a process has been ended. 039 */ 040 public static final String WORKFLOW_ENDED = "workflowProcessEnded"; 041 042 /** 043 * Fired when a process has been abandoned. 044 */ 045 public static final String WORKFLOW_ABANDONED = "workflowAbandoned"; 046 047 /** 048 * Fired when a process has been canceled. 049 */ 050 public static final String WORKFLOW_CANCELED = "workflowProcessCanceled"; 051 052 /** 053 * Fired when a task has been started. 054 */ 055 public static final String WORKFLOW_TASK_START = "workflowTaskStart"; 056 057 /** 058 * Fired when a task has been ended. 059 */ 060 public static final String WORKFLOW_TASK_STOP = "workflowTaskStop"; 061 062 /** 063 * Fired when a task has been completed. 064 */ 065 public static final String WORKFLOW_TASK_COMPLETED = "workflowTaskCompleted"; 066 067 /** 068 * Fired when a task has been removed. 069 */ 070 public static final String WORKFLOW_TASK_REMOVED = "workflowTaskRemoved"; 071 072 /** 073 * Fired when a task has been rejected. 074 */ 075 public static final String WORKFLOW_TASK_REJECTED = "workflowTaskRejected"; 076 077 public static final String WORKFLOW_TASK_ASSIGNED = "workflowTaskAssigned"; 078 079 /** 080 * Fired when an assignment has been updated. 081 * 082 * @deprecated @since 5.7.3 WORKFLOW_TASK_REASSIGNED is used 083 */ 084 public static final String WORKFLOW_USER_ASSIGNMENT_CHANGED = "workflowUserAssignmentChanged"; 085 086 public static final String WORKFLOW_TASKS_COMPUTED = "workflowTasksComputed"; 087 088 /** 089 * @since 5.7.3 090 */ 091 public static final String WORKFLOW_TASK_REASSIGNED = "workflowTaskReassigned"; 092 093 /** 094 * @since 5.8 095 */ 096 public static final String WORKFLOW_TASK_DELEGATED = "workflowTaskDelegated"; 097 098 /** 099 * Fired when a new work items list is created. 100 */ 101 public static final String WORK_ITEMS_LIST_ADDED = "workItemsListAdded"; 102 103 /** 104 * Fired when a work items list is deleted. 105 */ 106 public static final String WORK_ITEMS_LIST_REMOVED = "workItemsListRemoved"; 107 108 /** 109 * Fired when a work items list is loaded. 110 */ 111 public static final String WORK_ITEMS_LIST_LOADED = "workItemsListLoaded"; 112 113 /** 114 * A task variable key to disable the notification service. (i.e. no email sending through this service) 115 */ 116 public static final String DISABLE_NOTIFICATION_SERVICE = "disableNotificationService"; 117 118 // Constant utility class. 119 private TaskEventNames() { 120 } 121 122}