org.jbpm.env.session
Enum LogMode

java.lang.Object
  extended by java.lang.Enum<LogMode>
      extended by org.jbpm.env.session.LogMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LogMode>

public enum LogMode
extends java.lang.Enum<LogMode>

indicates when the processDefinition logs that are generated during processDefinition execution should be parsed and inserted into the business intelligence store.

Author:
Tom Baeyens

Enum Constant Summary
ASYNC_AFTER_EACH_TRANSACTION
          the processDefinition logs will be parsed after each runtime execution transaction asynchronously.
ASYNC_AFTER_END_TRANSACTION
          the processDefinition logs will be parsed into the business intelligence store in a separate transaction after the transaction in which the processDefinition execution finished.
INSIDE_EACH_TRANSACTION
          the processDefinition logs will be parsed and inserted into the business intelligence database directly in each transaction.
INSIDE_END_TRANSACTION
          the processDefinition logs will be parsed into the business intelligence store in the transaction where the processDefinition execution finishes.
 
Method Summary
static LogMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LogMode[] 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

INSIDE_EACH_TRANSACTION

public static final LogMode INSIDE_EACH_TRANSACTION
the processDefinition logs will be parsed and inserted into the business intelligence database directly in each transaction. The textual log representation will never be stored. This log mode insures that the business intelligence store will always be in sync with the current processDefinition executions.


ASYNC_AFTER_EACH_TRANSACTION

public static final LogMode ASYNC_AFTER_EACH_TRANSACTION
the processDefinition logs will be parsed after each runtime execution transaction asynchronously. This way the runtime processDefinition execution transaction will end faster but you yave a very short time window (between committing of the runtime transaction and processing of the logs asynchronously) in which the business intelligence store is out of sync with the runtime state of the processDefinition executions.


INSIDE_END_TRANSACTION

public static final LogMode INSIDE_END_TRANSACTION
the processDefinition logs will be parsed into the business intelligence store in the transaction where the processDefinition execution finishes.


ASYNC_AFTER_END_TRANSACTION

public static final LogMode ASYNC_AFTER_END_TRANSACTION
the processDefinition logs will be parsed into the business intelligence store in a separate transaction after the transaction in which the processDefinition execution finished.

Method Detail

values

public static final LogMode[] 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(LogMode c : LogMode.values())
        System.out.println(c);

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

valueOf

public static LogMode 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