|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.bam.model.EntitySupport org.apache.camel.bam.model.TemporalEntity org.apache.camel.bam.model.ActivityState
@Entity public class ActivityState
The default state for a specific activity within a process
Constructor Summary | |
---|---|
ActivityState()
|
Method Summary | |
---|---|
protected Date |
currentTime()
|
ActivityDefinition |
getActivityDefinition()
|
String |
getCorrelationKey()
|
Integer |
getEscalationLevel()
|
ProcessInstance |
getProcessInstance()
|
Integer |
getReceivedMessageCount()
|
Date |
getTimeExpected()
|
Date |
getTimeOverdue()
|
boolean |
isActivity(ActivityRules activityRules)
Returns true if this state is for the given activity |
protected void |
onExcessMessage(ProcessContext context)
Called when an excess message (after the expected number of messages) are received |
protected void |
onExpectedMessage(ProcessContext context)
Called when the expected number of messages are is reached |
protected void |
onFirstMessage(ProcessContext context)
Called when the first message is reached |
void |
processExchange(ActivityRules activityRules,
ProcessContext context)
|
void |
setActivityDefinition(ActivityDefinition activityDefinition)
|
void |
setEscalationLevel(Integer escalationLevel)
|
void |
setProcessInstance(ProcessInstance processInstance)
|
void |
setReceivedMessageCount(Integer receivedMessageCount)
|
void |
setTimeCompleted(Date timeCompleted)
|
void |
setTimeExpected(Date timeExpected)
|
void |
setTimeOverdue(Date timeOverdue)
|
String |
toString()
|
Methods inherited from class org.apache.camel.bam.model.TemporalEntity |
---|
getTimeCompleted, getTimeStarted, isCompleted, isStarted, setTimeStarted |
Methods inherited from class org.apache.camel.bam.model.EntitySupport |
---|
getId, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ActivityState()
Method Detail |
---|
public String toString()
toString
in class EntitySupport
public void processExchange(ActivityRules activityRules, ProcessContext context) throws Exception
Exception
public boolean isActivity(ActivityRules activityRules)
public ProcessInstance getProcessInstance()
public void setProcessInstance(ProcessInstance processInstance)
public ActivityDefinition getActivityDefinition()
public void setActivityDefinition(ActivityDefinition activityDefinition)
public Integer getEscalationLevel()
public void setEscalationLevel(Integer escalationLevel)
public Integer getReceivedMessageCount()
public void setReceivedMessageCount(Integer receivedMessageCount)
public Date getTimeExpected()
public void setTimeExpected(Date timeExpected)
public Date getTimeOverdue()
public void setTimeOverdue(Date timeOverdue)
public void setTimeCompleted(Date timeCompleted)
setTimeCompleted
in class TemporalEntity
public String getCorrelationKey()
protected void onFirstMessage(ProcessContext context)
protected void onExpectedMessage(ProcessContext context)
protected void onExcessMessage(ProcessContext context)
protected Date currentTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |