org.ow2.bonita.facade.def.majorElement
Enum PackageDefinition.PackageState

java.lang.Object
  extended by java.lang.Enum<PackageDefinition.PackageState>
      extended by org.ow2.bonita.facade.def.majorElement.PackageDefinition.PackageState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PackageDefinition.PackageState>
Enclosing interface:
PackageDefinition

public static enum PackageDefinition.PackageState
extends java.lang.Enum<PackageDefinition.PackageState>

Package state allow operations on the package itself and elements within it. For instance package must be DEPLOYED to allow creation of process instances.
This is not possible to undeploy a packege if the process contained in this package has running process instances.
When process is process is deployed the deployment operation is recorded in the journal.
When the process is undeployed, by default the recorded data are moved from the journal to the history.


Enum Constant Summary
DEPLOYED
           
UNDEPLOYED
           
 
Method Summary
static PackageDefinition.PackageState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PackageDefinition.PackageState[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEPLOYED

public static final PackageDefinition.PackageState DEPLOYED

UNDEPLOYED

public static final PackageDefinition.PackageState UNDEPLOYED
Method Detail

values

public static final PackageDefinition.PackageState[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(PackageDefinition.PackageState c : PackageDefinition.PackageState.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static PackageDefinition.PackageState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2008 OW2 Consortium. All Rights Reserved.