Package jadex.bpmn.model
Class MSequenceEdge
A sequence edge is a control flow edge between activities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jadex.common.UnparsedExpression
The condition.protected boolean
The default flag.protected jadex.collection.IndexMap
<String, jadex.common.Tuple2<jadex.common.UnparsedExpression, jadex.common.UnparsedExpression>> The parameter mappings.protected String
The type.Fields inherited from class jadex.bpmn.model.MAssociationTarget
associations, associationsdescription
Fields inherited from class jadex.bpmn.model.MNamedIdElement
description, name
Fields inherited from class jadex.bpmn.model.MAnnotationElement
annotations
Fields inherited from class jadex.bpmn.model.MIdElement
id, ID_GENERATOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameterMapping
(String name, jadex.common.UnparsedExpression exp, jadex.common.UnparsedExpression iexp) Add a parameter mapping.void
Helper method connecting two activities using this edge.void
Helper method disconnecting this edge.jadex.common.UnparsedExpression
Get the condition.jadex.collection.IndexMap
<String, jadex.common.Tuple2<jadex.common.UnparsedExpression, jadex.common.UnparsedExpression>> Get the parameter mappings map.jadex.javaparser.IParsedExpression
Get the parsed condition.getType()
Get the type.boolean
Get the default flag.void
setCondition
(jadex.common.UnparsedExpression condition) Set the condition.void
setDefault
(boolean def) Set the default flag.void
Set the type.Methods inherited from class jadex.bpmn.model.MAssociationTarget
addAssociation, getAssociations, getAssociationsDescription, removeAssociation, setAssociationsDescription
Methods inherited from class jadex.bpmn.model.MNamedIdElement
getDescription, getName, setDescription, setName
Methods inherited from class jadex.bpmn.model.MAnnotationElement
addAnnotation, getAnnotations
Methods inherited from class jadex.bpmn.model.MIdElement
equals, getId, hashCode, setId
-
Field Details
-
type
The type. -
def
protected boolean defThe default flag. -
condition
protected jadex.common.UnparsedExpression conditionThe condition. -
parametermappings
protected jadex.collection.IndexMap<String,jadex.common.Tuple2<jadex.common.UnparsedExpression, parametermappingsjadex.common.UnparsedExpression>> The parameter mappings.
-
-
Constructor Details
-
MSequenceEdge
public MSequenceEdge()
-
-
Method Details
-
connect
Helper method connecting two activities using this edge. The previous connection is removed.- Parameters:
source
- New source of the edge.target
- New target of the edge.
-
disconnect
public void disconnect()Helper method disconnecting this edge. -
getType
Get the type.- Returns:
- The type.
-
setType
Set the type.- Parameters:
type
- The type to set.
-
isDefault
public boolean isDefault()Get the default flag.- Returns:
- The default flag.
-
setDefault
public void setDefault(boolean def) Set the default flag.- Parameters:
def
- The default flag.
-
setCondition
public void setCondition(jadex.common.UnparsedExpression condition) Set the condition.- Parameters:
condition
- The condition.
-
getCondition
public jadex.common.UnparsedExpression getCondition()Get the condition.- Returns:
- The condition.
-
getParsedCondition
public jadex.javaparser.IParsedExpression getParsedCondition()Get the parsed condition.- Returns:
- The parsed condition.
-
addParameterMapping
public void addParameterMapping(String name, jadex.common.UnparsedExpression exp, jadex.common.UnparsedExpression iexp) Add a parameter mapping.- Parameters:
name
- The parameter name.exp
- The expression.iexp
- The index expression, when setting a entry of an array parameter.
-
getParameterMappings
public jadex.collection.IndexMap<String,jadex.common.Tuple2<jadex.common.UnparsedExpression, getParameterMappings()jadex.common.UnparsedExpression>> Get the parameter mappings map.- Returns:
- The parameter mappings.
-