Class ItemHandler
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cmmn.handler.CmmnElementHandler<CmmnElement,CmmnActivity>
-
- org.camunda.bpm.engine.impl.cmmn.handler.ItemHandler
-
- All Implemented Interfaces:
ModelElementHandler<CmmnElement,CmmnHandlerContext,CmmnActivity>
- Direct Known Subclasses:
EventListenerItemHandler
,MilestoneItemHandler
,StageItemHandler
,TaskItemHandler
public abstract class ItemHandler extends CmmnElementHandler<CmmnElement,CmmnActivity>
- Author:
- Roman Smirnov
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ItemHandler()
-
Method Summary
-
-
-
Field Detail
-
PROPERTY_AUTO_COMPLETE
public static final String PROPERTY_AUTO_COMPLETE
- See Also:
- Constant Field Values
-
PROPERTY_REQUIRED_RULE
public static final String PROPERTY_REQUIRED_RULE
- See Also:
- Constant Field Values
-
PROPERTY_MANUAL_ACTIVATION_RULE
public static final String PROPERTY_MANUAL_ACTIVATION_RULE
- See Also:
- Constant Field Values
-
PROPERTY_REPETITION_RULE
public static final String PROPERTY_REPETITION_RULE
- See Also:
- Constant Field Values
-
PROPERTY_IS_BLOCKING
public static final String PROPERTY_IS_BLOCKING
- See Also:
- Constant Field Values
-
PROPERTY_DISCRETIONARY
public static final String PROPERTY_DISCRETIONARY
- See Also:
- Constant Field Values
-
PROPERTY_ACTIVITY_TYPE
public static final String PROPERTY_ACTIVITY_TYPE
- See Also:
- Constant Field Values
-
PROPERTY_ACTIVITY_DESCRIPTION
public static final String PROPERTY_ACTIVITY_DESCRIPTION
- See Also:
- Constant Field Values
-
PARENT_COMPLETE
protected static final String PARENT_COMPLETE
- See Also:
- Constant Field Values
-
EVENT_LISTENER_OR_MILESTONE_CREATE_EVENTS
public static List<String> EVENT_LISTENER_OR_MILESTONE_CREATE_EVENTS
-
EVENT_LISTENER_OR_MILESTONE_UPDATE_EVENTS
public static List<String> EVENT_LISTENER_OR_MILESTONE_UPDATE_EVENTS
-
EVENT_LISTENER_OR_MILESTONE_END_EVENTS
public static List<String> EVENT_LISTENER_OR_MILESTONE_END_EVENTS
-
-
Method Detail
-
createActivity
protected CmmnActivity createActivity(CmmnElement element, CmmnHandlerContext context)
-
getActivityBehavior
protected CmmnActivityBehavior getActivityBehavior()
-
handleElement
public CmmnActivity handleElement(CmmnElement element, CmmnHandlerContext context)
Description copied from interface:ModelElementHandler
This method handles a element to create a new element.
- Specified by:
handleElement
in interfaceModelElementHandler<CmmnElement,CmmnHandlerContext,CmmnActivity>
- Specified by:
handleElement
in classCmmnElementHandler<CmmnElement,CmmnActivity>
- Parameters:
element
- theModelElementInstance
to be handled.context
- theHandlerContext
which holds necessary information.- Returns:
- a new element.
-
initializeActivity
protected void initializeActivity(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context)
-
initializeActivityType
protected void initializeActivityType(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context)
-
initializeDescription
protected void initializeDescription(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context)
-
initializeAutoComplete
protected void initializeAutoComplete(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context)
-
initializeRequiredRule
protected void initializeRequiredRule(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context)
-
initializeManualActivationRule
protected void initializeManualActivationRule(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context)
-
initializeRepetitionRule
protected void initializeRepetitionRule(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context)
-
initializeCaseControlRule
protected CaseControlRule initializeCaseControlRule(ConditionExpression condition, CmmnHandlerContext context)
-
initializeCaseExecutionListeners
protected void initializeCaseExecutionListeners(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context)
-
initializeCaseExecutionListener
protected CaseExecutionListener initializeCaseExecutionListener(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, CamundaCaseExecutionListener listener)
-
initializeVariableListeners
protected void initializeVariableListeners(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context)
-
initializeVariableListener
protected CaseVariableListener initializeVariableListener(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, CamundaVariableListener listener)
-
initializeScript
protected ExecutableScript initializeScript(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, CamundaScript script)
-
initializeFieldDeclarations
protected List<FieldDeclaration> initializeFieldDeclarations(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, Collection<CamundaField> fields)
-
initializeFieldDeclaration
protected FieldDeclaration initializeFieldDeclaration(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, CamundaField field)
-
getFixedValue
protected FixedValue getFixedValue(CamundaField field)
-
getExpressionValue
protected Expression getExpressionValue(CamundaField field, ExpressionManager expressionManager)
-
initializeEntryCriterias
protected void initializeEntryCriterias(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context)
-
initializeExitCriterias
protected void initializeExitCriterias(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context)
-
getDefaultControl
protected PlanItemControl getDefaultControl(CmmnElement element)
-
queryExtensionElementsByClass
protected <V extends ModelElementInstance> List<V> queryExtensionElementsByClass(CmmnElement element, Class<V> cls)
-
getExtensionElements
protected ExtensionElements getExtensionElements(CmmnElement element)
-
getItemControl
protected PlanItemControl getItemControl(CmmnElement element)
-
getName
protected String getName(CmmnElement element)
-
getDefinition
protected PlanItemDefinition getDefinition(CmmnElement element)
-
getEntryCriterias
protected Collection<Sentry> getEntryCriterias(CmmnElement element)
-
getExitCriterias
protected Collection<Sentry> getExitCriterias(CmmnElement element)
-
getDesciption
protected String getDesciption(CmmnElement element)
-
getDocumentation
protected String getDocumentation(CmmnElement element)
-
isPlanItem
protected boolean isPlanItem(CmmnElement element)
-
isDiscretionaryItem
protected boolean isDiscretionaryItem(CmmnElement element)
-
getStandardEvents
protected abstract List<String> getStandardEvents(CmmnElement element)
-
-