org.bonitasoft.engine.bpm.flownode.ActivityStates Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bonita-common Show documentation
Show all versions of bonita-common Show documentation
Bonita Common is the useful layer common to bonita-client and bonita-server
/**
* Copyright (C) 2019 Bonitasoft S.A.
* Bonitasoft, 32 rue Gustave Eiffel - 38000 Grenoble
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation
* version 2.1 of the License.
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License along with this
* program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301, USA.
**/
package org.bonitasoft.engine.bpm.flownode;
import java.util.HashSet;
import java.util.Set;
/**
* Temporary class to be substituted by ActivityStateService.
*
* @author Emmanuel Duchastenier
* @author Celine Souchet
*/
public class ActivityStates {
/**
* The state when a activity failed.
*/
public static final String FAILED_STATE = "failed";
/**
* The state when a activity is initializing.
*/
public static final String INITIALIZING_STATE = "initializing";
/**
* The state when a activity is ready.
*/
public static final String READY_STATE = "ready";
/**
* The state when a activity is executing.
*/
public static final String EXECUTING_STATE = "executing";
/**
* The state when a activity is completing.
*/
public static final String COMPLETING_STATE = "completing";
/**
* The state when a activity is completed.
*/
public static final String COMPLETED_STATE = "completed";
/**
* The state when a activity is waiting.
*/
public static final String WAITING_STATE = "waiting";
/**
* The state when a activity is skipped.
*/
public static final String SKIPPED_STATE = "skipped";
/**
* The state when a activity is cancelled.
*/
public static final String CANCELLED_STATE = "cancelled";
/**
* The state when a activity is aborted.
*/
public static final String ABORTED_STATE = "aborted";
/**
* The state when the subtaks of a activity are cancelling.
*/
public static final String CANCELLING_SUBTASKS_STATE = "cancelling subtasks";
/**
* The set of the states
*/
public static final Set STATES = new HashSet();
static {
STATES.add(FAILED_STATE);
STATES.add(INITIALIZING_STATE);
STATES.add(READY_STATE);
STATES.add(EXECUTING_STATE);
STATES.add(COMPLETING_STATE);
STATES.add(COMPLETED_STATE);
STATES.add(WAITING_STATE);
STATES.add(SKIPPED_STATE);
STATES.add(CANCELLED_STATE);
STATES.add(CANCELLING_SUBTASKS_STATE);
STATES.add(ABORTED_STATE);
}
}