/*
 * $Id: WfConstants.java,v 1.2 2004/09/20 10:26:11 koppy Exp $
 *
 * Copyright (c) Siemens AG 2008 
 *           (c) Universität Paderborn 2008 
 * Licensed under EUPL 1.1. 
 * 
 * Created on 16.07.2004
 *
 * $Log: WfConstants.java,v $
 * Revision 1.2  2004/09/20 10:26:11  koppy
 * +javadoc Dokumentation
 *
 * Revision 1.1  2004/08/30 14:48:56  koppy
 * Initiale Version der Workflow-Komponente
 *
 */
package vkc.workflow;

/**
 * This class encapsulates constants used
 * across the workflow component.
 * 
 * @author Andreas Koop
 */
public final class WfConstants {

    /**
     * key for storing <code>ActionErrors</code> in the request object
     */
    public static final String ERROR_KEY = "vkc.workflow.ERRORS";
    /**
     * key for storing <code>ActionMessages</code> in the request object
     */
    public static final String MESSAGE_KEY = "vkc.workflow.MESSAGES";
    
    /**
     * keys used for workflow variable types
     */
    public static final String BOOLEAN_KEY 	= "BooleanKey";
    public static final String STRING_KEY	= "StringKey";
    public static final String INTEGER_KEY	= "IntegerKey";
    public static final String DOUBLE_KEY	= "DoubleKey";
    public static final String DATE_KEY		= "DateKey";
    public static final String ENUMERATION_KEY = "EnumerationKey";
    public static final String ARRAY_KEY	= "ArrayKey";
    public static final String UNKNOWN_KEY	= "UnknownKey";
    
    public static final String UNKNOWN = "unknown";
    
    /**
     * Possible workflow states
     */
    public static final String STATEPREFIX_OPEN 					= "open";
    public static final String STATE_OPEN_RUNNING					= "open.running";
    public static final String STATE_OPEN_NOT_RUNNING_NOT_STARTED	= "open.not_running.not_started";
    public static final String STATE_OPEN_NOT_RUNNING_SUSPENDED		= "open.not_running.suspended";
    
    public static final String STATEPREFIX_CLOSED					= "closed";
    public static final String STATE_CLOSED_COMPLETED	= "closed.completed";
    public static final String STATE_CLOSED_TERMINATED	= "closed.terminated";
    public static final String STATE_CLOSED_ABORTED		= "closed.aborted";
    
}
