Class CmmnActivity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.core.model.CoreModelElement
-
- org.camunda.bpm.engine.impl.core.model.CoreActivity
-
- org.camunda.bpm.engine.impl.cmmn.model.CmmnActivity
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CmmnCaseDefinition
public class CmmnActivity extends CoreActivity
- Author:
- Roman Smirnov
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<CmmnActivity>
activities
protected CmmnActivityBehavior
activityBehavior
protected CmmnCaseDefinition
caseDefinition
protected CmmnElement
cmmnElement
protected java.util.List<CmmnSentryDeclaration>
entryCriteria
protected java.util.List<CmmnSentryDeclaration>
exitCriteria
protected java.util.Map<java.lang.String,CmmnActivity>
namedActivities
protected CmmnActivity
parent
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<VariableListener<?>>>>
resolvedBuiltInVariableListeners
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<VariableListener<?>>>>
resolvedVariableListeners
protected java.util.List<CmmnSentryDeclaration>
sentries
protected java.util.Map<java.lang.String,CmmnSentryDeclaration>
sentryMap
-
Fields inherited from class org.camunda.bpm.engine.impl.core.model.CoreActivity
ioMapping
-
Fields inherited from class org.camunda.bpm.engine.impl.core.model.CoreModelElement
builtInListeners, builtInVariableListeners, id, listeners, name, properties, variableListeners
-
-
Constructor Summary
Constructors Constructor Description CmmnActivity(java.lang.String id, CmmnCaseDefinition caseDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEntryCriteria(CmmnSentryDeclaration entryCriteria)
void
addExitCriteria(CmmnSentryDeclaration exitCriteria)
void
addSentry(CmmnSentryDeclaration sentry)
CmmnActivity
createActivity(java.lang.String activityId)
CmmnActivity
findActivity(java.lang.String activityId)
searches for the activity recursivelyjava.util.List<CmmnActivity>
getActivities()
CmmnActivityBehavior
getActivityBehavior()
CmmnCaseDefinition
getCaseDefinition()
CmmnActivity
getChildActivity(java.lang.String activityId)
searches for the activity locallyCmmnElement
getCmmnElement()
java.util.List<CmmnSentryDeclaration>
getEntryCriteria()
java.util.List<CmmnSentryDeclaration>
getExitCriteria()
CmmnActivity
getParent()
java.util.List<CmmnSentryDeclaration>
getSentries()
CmmnSentryDeclaration
getSentry(java.lang.String sentryId)
java.util.Map<java.lang.String,java.util.List<VariableListener<?>>>
getVariableListeners(java.lang.String eventName, boolean includeCustomListeners)
Returns a map of all variable listeners defined on this activity or any of its parents activities.void
setActivityBehavior(CmmnActivityBehavior behavior)
void
setCaseDefinition(CmmnCaseDefinition caseDefinition)
void
setCmmnElement(CmmnElement cmmnElement)
void
setEntryCriteria(java.util.List<CmmnSentryDeclaration> entryCriteria)
void
setExitCriteria(java.util.List<CmmnSentryDeclaration> exitCriteria)
void
setParent(CmmnActivity parent)
-
Methods inherited from class org.camunda.bpm.engine.impl.core.model.CoreActivity
createActivity, getIoMapping, setIoMapping, toString
-
Methods inherited from class org.camunda.bpm.engine.impl.core.model.CoreModelElement
addBuiltInListener, addBuiltInListener, addBuiltInVariableListener, addBuiltInVariableListener, addListener, addListener, addListenerToMap, addVariableListener, addVariableListener, getBuiltInListeners, getBuiltInListeners, getBuiltInVariableListeners, getBuiltInVariableListenersLocal, getId, getListeners, getListeners, getName, getProperties, getProperty, getVariableListeners, getVariableListenersLocal, setId, setName, setProperties, setProperty
-
-
-
-
Field Detail
-
activities
protected java.util.List<CmmnActivity> activities
-
namedActivities
protected java.util.Map<java.lang.String,CmmnActivity> namedActivities
-
cmmnElement
protected CmmnElement cmmnElement
-
activityBehavior
protected CmmnActivityBehavior activityBehavior
-
caseDefinition
protected CmmnCaseDefinition caseDefinition
-
parent
protected CmmnActivity parent
-
sentries
protected java.util.List<CmmnSentryDeclaration> sentries
-
sentryMap
protected java.util.Map<java.lang.String,CmmnSentryDeclaration> sentryMap
-
entryCriteria
protected java.util.List<CmmnSentryDeclaration> entryCriteria
-
exitCriteria
protected java.util.List<CmmnSentryDeclaration> exitCriteria
-
resolvedVariableListeners
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<VariableListener<?>>>> resolvedVariableListeners
-
resolvedBuiltInVariableListeners
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List<VariableListener<?>>>> resolvedBuiltInVariableListeners
-
-
Constructor Detail
-
CmmnActivity
public CmmnActivity(java.lang.String id, CmmnCaseDefinition caseDefinition)
-
-
Method Detail
-
createActivity
public CmmnActivity createActivity(java.lang.String activityId)
- Specified by:
createActivity
in classCoreActivity
-
getActivities
public java.util.List<CmmnActivity> getActivities()
- Specified by:
getActivities
in classCoreActivity
-
findActivity
public CmmnActivity findActivity(java.lang.String activityId)
Description copied from class:CoreActivity
searches for the activity recursively- Overrides:
findActivity
in classCoreActivity
-
getChildActivity
public CmmnActivity getChildActivity(java.lang.String activityId)
Description copied from class:CoreActivity
searches for the activity locally- Specified by:
getChildActivity
in classCoreActivity
-
getActivityBehavior
public CmmnActivityBehavior getActivityBehavior()
- Specified by:
getActivityBehavior
in classCoreActivity
-
setActivityBehavior
public void setActivityBehavior(CmmnActivityBehavior behavior)
-
getParent
public CmmnActivity getParent()
-
setParent
public void setParent(CmmnActivity parent)
-
getCaseDefinition
public CmmnCaseDefinition getCaseDefinition()
-
setCaseDefinition
public void setCaseDefinition(CmmnCaseDefinition caseDefinition)
-
getCmmnElement
public CmmnElement getCmmnElement()
-
setCmmnElement
public void setCmmnElement(CmmnElement cmmnElement)
-
getSentries
public java.util.List<CmmnSentryDeclaration> getSentries()
-
getSentry
public CmmnSentryDeclaration getSentry(java.lang.String sentryId)
-
addSentry
public void addSentry(CmmnSentryDeclaration sentry)
-
getEntryCriteria
public java.util.List<CmmnSentryDeclaration> getEntryCriteria()
-
setEntryCriteria
public void setEntryCriteria(java.util.List<CmmnSentryDeclaration> entryCriteria)
-
addEntryCriteria
public void addEntryCriteria(CmmnSentryDeclaration entryCriteria)
-
getExitCriteria
public java.util.List<CmmnSentryDeclaration> getExitCriteria()
-
setExitCriteria
public void setExitCriteria(java.util.List<CmmnSentryDeclaration> exitCriteria)
-
addExitCriteria
public void addExitCriteria(CmmnSentryDeclaration exitCriteria)
-
getVariableListeners
public java.util.Map<java.lang.String,java.util.List<VariableListener<?>>> getVariableListeners(java.lang.String eventName, boolean includeCustomListeners)
Returns a map of all variable listeners defined on this activity or any of its parents activities. The map's key is the id of the respective activity the listener is defined on.
-
-