|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.log.LogEntity
org.processmining.framework.log.ProcessInstance
org.processmining.framework.log.rfb.ProcessInstanceImpl
public class ProcessInstanceImpl
Implements the interface of a process instance. Semi-lighweight container, keeping the process instance's meta-information in memory while swapping the actual audit trail entries contained to persistent memory. Uses the cached managed random-access file implementation provided by AuditTrailEntryListImpl
Field Summary | |
---|---|
protected AuditTrailEntryListImpl |
ates
List of audit trail entries contained in this process instance. |
protected AuditTrailEntriesProxy |
atesProxy
Proxy providing the AuditTrailEntries legacy
interface to plugins that have not been updated yet. |
protected java.util.HashMap<java.lang.String,java.lang.String> |
attributes
Map of string-based data attributes (key-value pairs) |
protected java.lang.String |
description
Human-readable description string |
protected LightweightModelElements |
modelElements
Lightweight model elements container. |
protected java.lang.String |
name
ID of the process instance |
protected java.lang.String |
process
Holds the name, or ID, of this process instance. |
Fields inherited from class org.processmining.framework.log.ProcessInstance |
---|
ATT_ATE_ID, ATT_ATE_POST, ATT_ATE_PRE, ATT_PI_PO |
Constructor Summary | |
---|---|
ProcessInstanceImpl(ProcessInstanceImpl template)
Creates a clone of the given process instance. |
|
ProcessInstanceImpl(java.lang.String processName)
Creates a new empty process instance. |
|
ProcessInstanceImpl(java.lang.String processName,
ATERandomFileBuffer ateBuffer,
int maxFragment,
LogReader log)
Creates a new process instance. |
|
ProcessInstanceImpl(java.lang.String processName,
AuditTrailEntryListImpl ateList)
Creates a new process instance. |
Method Summary | |
---|---|
void |
cleanup()
|
ProcessInstance |
cloneInstance()
Returns a deep copy of this instance. |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Returns the meta-data, as map of key-value pairs, associated to this entity. |
AuditTrailEntries |
getAuditTrailEntries()
Returns the sequential set of audit trail entries, as found in this process instance. |
AuditTrailEntryList |
getAuditTrailEntryList()
Returns the sequential set of audit trail entries, as found in this process instance. |
java.lang.String |
getDescription()
Returns the description of this entity. |
ModelElements |
getModelElements()
Returns the set of model elements contained in this process instance. |
java.lang.String |
getName()
Returns the name of this entity. |
java.lang.String |
getProcess()
Returns the identifier / name of the process of this object is an instance. |
boolean |
isEmpty()
Returns true, if this process instance contains no audit trail entries to read. |
void |
removeAttribute(java.lang.String key)
Removes the attribute with the given key from the set of attributes of this entity. |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Sets an attribute of this entity as a key-value pair. |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> data)
Sets the set of attributes, given as key-value pairs, for this entity. |
void |
setDescription(java.lang.String nDescription)
Sets the description of this entity |
void |
setName(java.lang.String nName)
Sets the name, or ID, of this entity |
java.lang.String |
toString()
Returns a string representation of this entity. |
Methods inherited from class org.processmining.framework.log.ProcessInstance |
---|
getData, getListOfATEs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected java.lang.String description
protected java.util.HashMap<java.lang.String,java.lang.String> attributes
protected java.lang.String process
Process
container.
protected AuditTrailEntryListImpl ates
protected LightweightModelElements modelElements
protected AuditTrailEntriesProxy atesProxy
AuditTrailEntries
legacy
interface to plugins that have not been updated yet.
This field is subject to removal!
Constructor Detail |
---|
public ProcessInstanceImpl(java.lang.String processName, AuditTrailEntryListImpl ateList)
processName
- Name of the process of which this is to be an instance.ateList
- List of audit trail entries contained in this process instance.public ProcessInstanceImpl(java.lang.String processName, ATERandomFileBuffer ateBuffer, int maxFragment, LogReader log)
processName
- Name of the process of which this is to be an instance.ateBuffer
- Random File Buffer containing the audit trail entries of
this instance.maxFragment
- Maximal fragmentation count of the transparently created
AuditTrailEntryList managing read/write access to the set of audit trail entries.public ProcessInstanceImpl(java.lang.String processName) throws java.io.IOException
processName
- Name of the process of which this is to be an instance.
java.io.IOException
public ProcessInstanceImpl(ProcessInstanceImpl template) throws java.io.IOException
template
- The instance to be cloned.
java.io.IOException
Method Detail |
---|
public java.lang.String getProcess()
ProcessInstance
getProcess
in class ProcessInstance
public boolean isEmpty()
ProcessInstance
isEmpty
in class ProcessInstance
public java.lang.String toString()
LogEntity
toString
in class LogEntity
public AuditTrailEntryList getAuditTrailEntryList()
ProcessInstance
getAuditTrailEntryList
in class ProcessInstance
public ModelElements getModelElements()
ProcessInstance
getModelElements
in class ProcessInstance
public ProcessInstance cloneInstance()
Warning: Can return null
if a
serious error has been encountered! Check for this
return value in your using code!
cloneInstance
in class ProcessInstance
public void cleanup() throws java.io.IOException
java.io.IOException
public AuditTrailEntries getAuditTrailEntries()
ProcessInstance
getAuditTrailEntries
in class ProcessInstance
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
LogEntity
getAttributes
in class LogEntity
public java.lang.String getDescription()
LogEntity
getDescription
in class LogEntity
public java.lang.String getName()
LogEntity
getName
in class LogEntity
public void removeAttribute(java.lang.String key)
LogEntity
removeAttribute
in class LogEntity
public void setAttribute(java.lang.String key, java.lang.String value)
LogEntity
setAttribute
in class LogEntity
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> data)
LogEntity
setAttributes
in class LogEntity
public void setDescription(java.lang.String nDescription)
LogEntity
setDescription
in class LogEntity
public void setName(java.lang.String nName)
LogEntity
setName
in class LogEntity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |