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:
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 List<CmmnActivity>
activities
protected CmmnActivityBehavior
activityBehavior
protected CmmnCaseDefinition
caseDefinition
protected CmmnElement
cmmnElement
protected List<CmmnSentryDeclaration>
entryCriteria
protected List<CmmnSentryDeclaration>
exitCriteria
protected Map<String,CmmnActivity>
namedActivities
protected CmmnActivity
parent
protected Map<String,Map<String,List<VariableListener<?>>>>
resolvedBuiltInVariableListeners
protected Map<String,Map<String,List<VariableListener<?>>>>
resolvedVariableListeners
protected List<CmmnSentryDeclaration>
sentries
protected Map<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(String id, CmmnCaseDefinition caseDefinition)
-
Method Summary
-
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 List<CmmnActivity> activities
-
namedActivities
protected Map<String,CmmnActivity> namedActivities
-
cmmnElement
protected CmmnElement cmmnElement
-
activityBehavior
protected CmmnActivityBehavior activityBehavior
-
caseDefinition
protected CmmnCaseDefinition caseDefinition
-
parent
protected CmmnActivity parent
-
sentries
protected List<CmmnSentryDeclaration> sentries
-
sentryMap
protected Map<String,CmmnSentryDeclaration> sentryMap
-
entryCriteria
protected List<CmmnSentryDeclaration> entryCriteria
-
exitCriteria
protected List<CmmnSentryDeclaration> exitCriteria
-
resolvedVariableListeners
protected Map<String,Map<String,List<VariableListener<?>>>> resolvedVariableListeners
-
-
Constructor Detail
-
CmmnActivity
public CmmnActivity(String id, CmmnCaseDefinition caseDefinition)
-
-
Method Detail
-
createActivity
public CmmnActivity createActivity(String activityId)
- Specified by:
createActivity
in classCoreActivity
-
getActivities
public List<CmmnActivity> getActivities()
- Specified by:
getActivities
in classCoreActivity
-
findActivity
public CmmnActivity findActivity(String activityId)
Description copied from class:CoreActivity
searches for the activity recursively- Overrides:
findActivity
in classCoreActivity
-
getChildActivity
public CmmnActivity getChildActivity(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 List<CmmnSentryDeclaration> getSentries()
-
getSentry
public CmmnSentryDeclaration getSentry(String sentryId)
-
addSentry
public void addSentry(CmmnSentryDeclaration sentry)
-
getEntryCriteria
public List<CmmnSentryDeclaration> getEntryCriteria()
-
setEntryCriteria
public void setEntryCriteria(List<CmmnSentryDeclaration> entryCriteria)
-
addEntryCriteria
public void addEntryCriteria(CmmnSentryDeclaration entryCriteria)
-
getExitCriteria
public List<CmmnSentryDeclaration> getExitCriteria()
-
setExitCriteria
public void setExitCriteria(List<CmmnSentryDeclaration> exitCriteria)
-
addExitCriteria
public void addExitCriteria(CmmnSentryDeclaration exitCriteria)
-
getVariableListeners
public Map<String,List<VariableListener<?>>> getVariableListeners(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.
-
-