ALBPM Process API (PAPI)

fuego.papi.utils
Class AuditTrail

java.lang.Object
  extended byfuego.papi.utils.AuditTrail

public class AuditTrail
extends Object


Nested Class Summary
 class AuditTrail.AuditNode
          This class represent a Node in the AuditTrail Graph.
 class AuditTrail.ItemExecutedNode
           
 class AuditTrail.ItemSelectedNode
           
 class AuditTrail.ItemUnselectedNode
           
 class AuditTrail.MeasureVariableNode
          This class represents a Measure Varible Node.
 class AuditTrail.SubFlowNode
           
 
Field Summary
static int ACTIVITY_NODE
           
static int EVENT_NODE
           
static int MEASUREMENT_START_NODE
           
static int MEASUREMENT_START_STOP_NODE
           
static int MEASUREMENT_STOP_NODE
           
static int ROOT_NODE
           
static int THREAD_NODE
           
 
Constructor Summary
AuditTrail(ProcessServiceNESession session, String instanceId)
          Constructor to create complete graph.
AuditTrail(String instanceId, Activity[] activities, Locale locale)
          Constructor to create only a root node
 
Method Summary
 AuditTrail.AuditNode getNode(String id)
          Returns the node represented by the id.
 AuditTrail.AuditNode getRootNode()
          Returns the root node of the graph.
 Iterator iterator()
          Returns san Iterator over the graph
 void load()
          Loads the instance events and generate the graph.
To use this method you must created the AuditTrail with a ProcessServiceNESession
 void load(InstanceEvent[] events)
          Generates the graph from the events
 void load(ProcessServiceNESession session)
          Loads the instance events and generate the graph.
 void print(PrintStream out)
          Prints the graph over the PrintStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_NODE

public static final int ROOT_NODE
See Also:
Constant Field Values

THREAD_NODE

public static final int THREAD_NODE
See Also:
Constant Field Values

ACTIVITY_NODE

public static final int ACTIVITY_NODE
See Also:
Constant Field Values

EVENT_NODE

public static final int EVENT_NODE
See Also:
Constant Field Values

MEASUREMENT_START_NODE

public static final int MEASUREMENT_START_NODE
See Also:
Constant Field Values

MEASUREMENT_STOP_NODE

public static final int MEASUREMENT_STOP_NODE
See Also:
Constant Field Values

MEASUREMENT_START_STOP_NODE

public static final int MEASUREMENT_START_STOP_NODE
See Also:
Constant Field Values
Constructor Detail

AuditTrail

public AuditTrail(ProcessServiceNESession session,
                  String instanceId)
           throws OperationException
Constructor to create complete graph.

Throws:
OperationException - if the constructor fails when creates the object.

AuditTrail

public AuditTrail(String instanceId,
                  Activity[] activities,
                  Locale locale)
Constructor to create only a root node

Method Detail

getNode

public AuditTrail.AuditNode getNode(String id)
Returns the node represented by the id.

Parameters:
id - Node Identification
Returns:
Node represented by the identification.

getRootNode

public AuditTrail.AuditNode getRootNode()
Returns the root node of the graph.

Returns:
Root node.

load

public final void load(InstanceEvent[] events)
Generates the graph from the events


load

public final void load(ProcessServiceNESession session)
                throws OperationException
Loads the instance events and generate the graph.

Parameters:
session - The ProcessServiceNESession used to obtain the events.
Throws:
OperationException - if the AuditTrail was unable to retrieve the instance events.
May be one of the following subclasses of OperationException:

load

public final void load()
                throws OperationException
Loads the instance events and generate the graph.
To use this method you must created the AuditTrail with a ProcessServiceNESession

Throws:
OperationException - if the AuditTrail was unable to retrieve the instance events.
May be one of the following subclasses of OperationException:

iterator

public Iterator iterator()
Returns san Iterator over the graph

Returns:
Graph Iterator

print

public void print(PrintStream out)
Prints the graph over the PrintStream

Parameters:
out - PrintStrem to print the graph

ALBPM Process API (PAPI)

© Copyright 1996/2005 Fuego Inc. All Rights Reserved