org.apache.camel.bam.model
Class ProcessInstance

java.lang.Object
  extended by org.apache.camel.bam.model.ProcessInstance

public class ProcessInstance
extends Object

Represents a single business process

Version:

Constructor Summary
ProcessInstance()
           
 
Method Summary
protected  ActivityState createActivityState()
           
 ActivityState getActivityState(ActivityRules activityRules)
          Returns the activity state for the given activity
 Collection<ActivityState> getActivityStates()
           
 String getCorrelationKey()
           
 ActivityState getOrCreateActivityState(ActivityRules activityRules)
           
 ProcessDefinition getProcessDefinition()
           
 Date getTimeCompleted()
           
 Date getTimeStarted()
           
 boolean isCompleted()
           
 boolean isStarted()
           
 void setActivityStates(Collection<ActivityState> activityStates)
           
 void setCorrelationKey(String correlationKey)
           
 void setProcessDefinition(ProcessDefinition processDefinition)
           
 void setTimeCompleted(Date timeCompleted)
           
 void setTimeStarted(Date timeStarted)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessInstance

public ProcessInstance()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getCorrelationKey

public String getCorrelationKey()

setCorrelationKey

public void setCorrelationKey(String correlationKey)

getProcessDefinition

public ProcessDefinition getProcessDefinition()

setProcessDefinition

public void setProcessDefinition(ProcessDefinition processDefinition)

getActivityStates

public Collection<ActivityState> getActivityStates()

setActivityStates

public void setActivityStates(Collection<ActivityState> activityStates)

isStarted

public boolean isStarted()

isCompleted

public boolean isCompleted()

getTimeStarted

public Date getTimeStarted()

setTimeStarted

public void setTimeStarted(Date timeStarted)

getTimeCompleted

public Date getTimeCompleted()

setTimeCompleted

public void setTimeCompleted(Date timeCompleted)

getActivityState

public ActivityState getActivityState(ActivityRules activityRules)
Returns the activity state for the given activity

Parameters:
activityRules - the activity to find the state for
Returns:
the activity state or null if no state could be found for the given activity

getOrCreateActivityState

public ActivityState getOrCreateActivityState(ActivityRules activityRules)

createActivityState

protected ActivityState createActivityState()


Apache CAMEL