Package jadex.bpmn.model
Class MSubProcess
- java.lang.Object
-
public class MSubProcess extends MActivity
A sub process represents an activity with and a sub activity flow.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<MActivity>
activities
The vertices.protected java.util.List<MArtifact>
artifacts
The artifacts.static java.lang.String
MULTIINSTANCE_ITERATOR
The name of the parameter identifying the multi instance iterator.protected java.lang.String
subprocesstype
The subprocess type (e.g. looping).static java.lang.String
SUBPROCESSTYPE_EVENT
The event subprocess type.static java.lang.String
SUBPROCESSTYPE_NONE
The default subprocess type.static java.lang.String
SUBPROCESSTYPE_PARALLEL
The parallel subprocess type.static java.lang.String
SUBPROCESSTYPE_SEQUENTIAL
The looping subprocess type.-
Fields inherited from class jadex.bpmn.model.MActivity
activitytype, argumentinjections, bodymethod, cancelmethod, clazz, componentinjections, eventhandler, eventhandlers, IFACE, incomingmessagesdescriptions, incomingsequenceedgesdescription, indataedges, inmsgedges, inseqedges, ISSEQUENTIAL, ISSERVICE, lane, lanedescription, looping, METHOD, MI_NOTFOUND, outdataedges, outgoingmessagesdescriptions, outgoingsequenceedgesdescription, outmsgedges, outseqedges, parameters, pool, properties, resultinjections, RESULTNAME, RESULTTYPE, RETURNPARAM, throwing, 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 Constructor Description MSubProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addActivity(MActivity activity)
Add an activity.void
addArtifact(MArtifact artifact)
Add an artifact.java.util.List<MActivity>
getActivities()
Get the activities.MActivity
getActivity(java.lang.String id)
Get an activity per id.java.util.List<MArtifact>
getArtifacts()
Get the artifacts.java.util.List<MEdge>
getEdges()
Get the edges.java.util.List<MActivity>
getStartActivities()
Get all start activities of the pool.java.lang.String
getSubprocessType()
Get the subprocess type.void
removeActivity(MActivity vertex)
Remove an activity.void
removeArtifact(MArtifact artifact)
Remove an artifact.void
setActivities(java.util.List<MActivity> activities)
Set the activities.void
setSubprocessType(java.lang.String subprocesstype)
Set the subprocess type.-
Methods inherited from class jadex.bpmn.model.MActivity
addEventHandler, addIncomingDataEdge, addIncomingMessageDescription, addIncomingMessagingEdge, addIncomingSequenceEdge, addOutgoingDataEdge, addOutgoingMessageDescription, addOutgoingMessagingEdge, addOutgoingSequenceEdge, addParameter, addProperty, addProperty, addProperty, getActivityType, getAllParameters, getArgumentInjections, getBodyMethod, getCancelMethod, getClazz, getComponentInjections, getEventHandlers, getFields, getIncomingDataEdges, getIncomingMessagesDescriptions, getIncomingMessagingEdges, getIncomingSequenceEdges, getIncomingSequenceEdges, getIncomingSequenceEdgesDescription, getLane, getLaneDescription, getMethod, getOutgoingDataEdges, getOutgoingMessagesDescriptions, getOutgoingMessagingEdges, getOutgoingMessagingEdges, getOutgoingSequenceEdges, getOutgoingSequenceEdgesDescription, getParameter, getParameters, getParameters, getParsedPropertyValue, getPool, getProperties, getPropertyNames, getPropertyValue, getPropertyValueString, getResultInjections, getType, hasInitialPropertyValue, hasParameter, hasProperty, hasPropertyValue, isEndEvent, isEvent, isEventHandler, isGateway, isIntermediateEvent, isLooping, isMessageEvent, isSignalEvent, isStartEvent, isThrowing, removeEventHandler, removeIncomingDataEdge, removeIncomingMessageDescription, removeIncomingMessagingEdge, removeIncomingSequenceEdge, removeOutgoingDataEdge, removeOutgoingMessageDescription, removeOutgoingMessagingEdge, removeOutgoingSequenceEdge, removeParameter, removeParameter, removeParameters, removeProperty, removeProperty, setActivityType, setClazz, setEventHandler, setIncomingDataEdges, setIncomingMessagingEdges, setIncomingSequenceEdgesDescription, setLane, setLaneDescription, setLooping, setOutgoingDataEdges, setOutgoingSequenceEdges, setOutgoingSequenceEdgesDescription, setParameter, setParameters, setPool, setProperties, setProperty, setPropertyValue, setPropertyValue, setThrowing, setType, toString
-
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 Detail
-
SUBPROCESSTYPE_NONE
public static final java.lang.String SUBPROCESSTYPE_NONE
The default subprocess type.- See Also:
- Constant Field Values
-
SUBPROCESSTYPE_PARALLEL
public static final java.lang.String SUBPROCESSTYPE_PARALLEL
The parallel subprocess type.- See Also:
- Constant Field Values
-
SUBPROCESSTYPE_SEQUENTIAL
public static final java.lang.String SUBPROCESSTYPE_SEQUENTIAL
The looping subprocess type.- See Also:
- Constant Field Values
-
SUBPROCESSTYPE_EVENT
public static final java.lang.String SUBPROCESSTYPE_EVENT
The event subprocess type.- See Also:
- Constant Field Values
-
MULTIINSTANCE_ITERATOR
public static final java.lang.String MULTIINSTANCE_ITERATOR
The name of the parameter identifying the multi instance iterator.- See Also:
- Constant Field Values
-
activities
protected java.util.List<MActivity> activities
The vertices.
-
artifacts
protected java.util.List<MArtifact> artifacts
The artifacts.
-
subprocesstype
protected java.lang.String subprocesstype
The subprocess type (e.g. looping).
-
-
Method Detail
-
getActivities
public java.util.List<MActivity> getActivities()
Get the activities.- Returns:
- The activities.
-
setActivities
public void setActivities(java.util.List<MActivity> activities)
Set the activities.- Parameters:
activities
- The activities.
-
getEdges
public java.util.List<MEdge> getEdges()
Get the edges.- Returns:
- The edges.
-
addActivity
public void addActivity(MActivity activity)
Add an activity.- Parameters:
activity
- The activity.
-
removeActivity
public void removeActivity(MActivity vertex)
Remove an activity.- Parameters:
activity
- The activity.
-
getActivity
public MActivity getActivity(java.lang.String id)
Get an activity per id.
-
getStartActivities
public java.util.List<MActivity> getStartActivities()
Get all start activities of the pool.- Returns:
- A non-empty List of start activities or null, if none.
-
getArtifacts
public java.util.List<MArtifact> getArtifacts()
Get the artifacts.- Returns:
- The artifacts.
-
addArtifact
public void addArtifact(MArtifact artifact)
Add an artifact.- Parameters:
artifact
- The artifact.
-
removeArtifact
public void removeArtifact(MArtifact artifact)
Remove an artifact.- Parameters:
artifact
- The artifact.
-
getSubprocessType
public java.lang.String getSubprocessType()
Get the subprocess type.
-
setSubprocessType
public void setSubprocessType(java.lang.String subprocesstype)
Set the subprocess type.
-
-