org.eclipse.stardust.engine.api.query
Class HistoricalEventPolicy

java.lang.Object
  extended by org.eclipse.stardust.engine.api.query.HistoricalEventPolicy
All Implemented Interfaces:
Serializable, EvaluationPolicy

public class HistoricalEventPolicy
extends Object
implements EvaluationPolicy

Evaluation policy determining the inclusion of the given event types in process and activity instances.

Version:
$Revision: $
Author:
rottstock
See Also:
Serialized Form

Field Summary
static HistoricalEventPolicy ALL_EVENTS
          Predefined policy to include all event types in the process or activity instance.
static String PRP_PROPVIDE_EVENT_TYPES
           
 
Constructor Summary
HistoricalEventPolicy(HistoricalEventType[] eventTypes)
          Creates a policy for the given events.
HistoricalEventPolicy(int eventTypes)
          Creates a policy for a given event type resp.
 
Method Summary
 int getEventTypes()
          Gets the requested event types
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRP_PROPVIDE_EVENT_TYPES

public static final String PRP_PROPVIDE_EVENT_TYPES

ALL_EVENTS

public static final HistoricalEventPolicy ALL_EVENTS
Predefined policy to include all event types in the process or activity instance.

Constructor Detail

HistoricalEventPolicy

public HistoricalEventPolicy(int eventTypes)
Creates a policy for a given event type resp. event types.

To add more than one event type, just concatenate the types via the logical or operator e.g. new HistoricalEventPolicy(HistoricalEventType.EXCEPTION | HistoricalEventType.DELEGATION).

Parameters:
eventTypes - events types which should be resolved

HistoricalEventPolicy

public HistoricalEventPolicy(HistoricalEventType[] eventTypes)
Creates a policy for the given events.

Parameters:
eventTypes - events types which should be resolved
Method Detail

getEventTypes

public int getEventTypes()
Gets the requested event types

Returns:
event types


Copyright © 2017 Eclipse Stardust. All Rights Reserved.