ALBPM Process API

fuego.papi.utils
Class AuditTrail

java.lang.Object
  extended by fuego.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(ProcessServiceSession 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()
          Return san Iterator over the graph
 void load()
          Loads the instance events and generate the graph.
 void load(InstanceEvent[] events)
          Deprecated. use #load(List) instead
 void load(List<InstanceEvent> events)
          Generates the graph from the events
 void load(ProcessServiceSession 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(ProcessServiceSession session,
                  String instanceId)
           throws OperationException
Constructor to create complete graph.

Throws:
OperationException

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)
Deprecated. use #load(List) instead

Generates the graph from the events


load

public final void load(List<InstanceEvent> events)
Generates the graph from the events


load

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

Parameters:
session - The ProcessServiceSession used to obtain the events.
Throws:
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 ProcessServiceSession

Throws:
OperationException

iterator

public Iterator iterator()
Return 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

© Copyright 1996/2005 Fuego Inc. All Rights Reserved