Package jadex.bpmn.model
Class MActivity
- java.lang.Object
- 
- Direct Known Subclasses:
- MSubProcess,- MTask
 
 public class MActivity extends MAssociationTarget Base class for all kinds of activities.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringactivitytypeThe activity type.protected java.util.Map<java.lang.String,java.util.List<FieldInfo>>argumentinjectionsThe argument injection targets.protected MethodInfobodymethodThe body method cached for speed.protected MethodInfocancelmethodThe body method cached for speed.protected ClassInfoclazzThe class.protected java.util.List<FieldInfo>componentinjectionsThe component injection targets.protected booleaneventhandlerThe flag if this activity is an event handler.protected java.util.List<MActivity>eventhandlersThe event handlers.static java.lang.StringIFACEThe interface name.protected java.util.List<java.lang.Object>incomingmessagesdescriptionsThe incoming messages description.protected java.lang.StringincomingsequenceedgesdescriptionThe incoming sequence edges description.protected java.util.List<MDataEdge>indataedgesThe incoming data edges.protected java.util.List<MMessagingEdge>inmsgedgesThe incoming message edges.protected java.util.List<MSequenceEdge>inseqedgesThe incoming sequence edges.static java.lang.StringISSEQUENTIALConstant for the sequential result execution mode .static java.lang.StringISSERVICEIs service constant.protected MLanelaneThe lane (if any).protected java.lang.StringlanedescriptionThe lane description.protected booleanloopingThe looping flag.static java.lang.StringMETHODThe method name.protected static MethodInfoMI_NOTFOUNDprotected java.util.List<MDataEdge>outdataedgesThe outgoing data edges.protected java.util.List<java.lang.Object>outgoingmessagesdescriptionsThe outgoing messages description.protected java.lang.StringoutgoingsequenceedgesdescriptionThe outgoing sequence edges description.protected java.util.List<MMessagingEdge>outmsgedgesThe outgoing message edges.protected java.util.List<MSequenceEdge>outseqedgesThe outgoing sequence edges.protected IndexMap<java.lang.String,MParameter>parametersThe parameters (name -> MParameter).protected MPoolpoolThe pool.protected IndexMap<java.lang.String,MProperty>propertiesThe properties (name -> MProperty).protected java.util.Map<java.lang.String,FieldInfo>resultinjectionsThe result injection targets.static java.lang.StringRESULTNAMEConstant for the result param name.static java.lang.StringRESULTTYPEConstant for the result param type (needed for distinguishing collection results from single values).static java.lang.StringRETURNPARAMConstant for the return parameter name.protected booleanthrowingThe throwing flag.protected java.lang.StringtypeThe type.- 
Fields inherited from class jadex.bpmn.model.MAssociationTargetassociations, associationsdescription
 - 
Fields inherited from class jadex.bpmn.model.MNamedIdElementdescription, name
 - 
Fields inherited from class jadex.bpmn.model.MAnnotationElementannotations
 - 
Fields inherited from class jadex.bpmn.model.MIdElementid, ID_GENERATOR
 
- 
 - 
Constructor SummaryConstructors Constructor Description MActivity()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventHandler(MActivity eventhandler)Add an event handler.voidaddIncomingDataEdge(MDataEdge edge)Add an incoming edge.voidaddIncomingMessageDescription(java.lang.Object desc)Add an incoming message description.voidaddIncomingMessagingEdge(MMessagingEdge edge)Add an incoming message edge.voidaddIncomingSequenceEdge(MSequenceEdge edge)Add an incoming edge.voidaddOutgoingDataEdge(MDataEdge edge)Add an outgoing edge.voidaddOutgoingMessageDescription(java.lang.Object desc)Add an outgoing message description.voidaddOutgoingMessagingEdge(MMessagingEdge edge)Add an outgoing message edge.voidaddOutgoingSequenceEdge(MSequenceEdge edge)Add an outgoing edge.voidaddParameter(MParameter param)Add a parameter.voidaddProperty(MProperty prop)Add a property.voidaddProperty(java.lang.String name, java.lang.String value)Add a simple string-based property.voidaddProperty(java.lang.String name, java.lang.String value, boolean string)Add a simple string-based property.java.lang.StringgetActivityType()Get the activity type.IndexMap<java.lang.String,MParameter>getAllParameters(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String[] imports, java.lang.ClassLoader cl)Get the parameters.java.util.Map<java.lang.String,java.util.List<FieldInfo>>getArgumentInjections(java.lang.ClassLoader cl)Get and save the body method info.MethodInfogetBodyMethod(java.lang.ClassLoader cl)Get and save the body method info.MethodInfogetCancelMethod(java.lang.ClassLoader cl)Get and save the cancel method info.ClassInfogetClazz()Get the class.java.util.List<FieldInfo>getComponentInjections(java.lang.ClassLoader cl)Get and save the body method info.java.util.List<MActivity>getEventHandlers()Get the event handlers.static java.util.List<FieldInfo>getFields(java.lang.Class<?> body, java.lang.Class<? extends java.lang.annotation.Annotation> type)Get method with an annotation.java.util.List<MDataEdge>getIncomingDataEdges()Get the incoming data edges.java.util.List<java.lang.Object>getIncomingMessagesDescriptions()Get the incoming messages description.java.util.List<MMessagingEdge>getIncomingMessagingEdges()Get the incoming message edges.java.util.List<MSequenceEdge>getIncomingSequenceEdges()Get the incoming edges.voidgetIncomingSequenceEdges(java.util.List<MSequenceEdge> inseqedges)Set the incoming edges.java.lang.StringgetIncomingSequenceEdgesDescription()Get the xml incoming edges description.MLanegetLane()Get the lane of the activity.java.lang.StringgetLaneDescription()Get the xml lane description.static MethodInfogetMethod(java.lang.Class<?> body, java.lang.Class<? extends java.lang.annotation.Annotation> type)Get method with an annotation.java.util.List<MDataEdge>getOutgoingDataEdges()Get the outgoing data edges.java.util.List<java.lang.Object>getOutgoingMessagesDescriptions()Get the xml outgoing messages descriptions.java.util.List<MMessagingEdge>getOutgoingMessagingEdges()Get the outgoing message edges.voidgetOutgoingMessagingEdges(java.util.List<MMessagingEdge> outmsgedges)Set the outgoing message edges.java.util.List<MSequenceEdge>getOutgoingSequenceEdges()Get the outgoing sequence edges.java.lang.StringgetOutgoingSequenceEdgesDescription()Get the xml outgoing sequence edges desription.MParametergetParameter(java.lang.String name)Get a parameter by name.IndexMap<java.lang.String,MParameter>getParameters()Get the parameters.java.util.List<MParameter>getParameters(java.lang.String[] dirs)Get parameters of specific direction(s).java.lang.ObjectgetParsedPropertyValue(java.lang.String name)Get a property value from the model.MPoolgetPool()Get the pool of the activity.IndexMap<java.lang.String,MProperty>getProperties()Get the properties.java.lang.String[]getPropertyNames()Returns the property names.UnparsedExpressiongetPropertyValue(java.lang.String name)Get a property value from the model.java.lang.StringgetPropertyValueString(java.lang.String name)Get a property value string from the model.java.util.Map<java.lang.String,FieldInfo>getResultInjections(java.lang.ClassLoader cl)Get and save the body method info.java.lang.StringgetType()Get the type.booleanhasInitialPropertyValue(java.lang.String name)Test, if a property is declared and has nonull unparsed expression.booleanhasParameter(java.lang.String name)Test if a prop exists.booleanhasProperty(java.lang.String name)Test if a property exists.booleanhasPropertyValue(java.lang.String name)Test, if a property is declared and has nonull unparsed expression.booleanisEndEvent()Test if activity is a end event.booleanisEvent()Test if activity is event.booleanisEventHandler()Get the eventhandler.booleanisGateway()Test if activity is gateway.booleanisIntermediateEvent()Test if activity is an intermediate event.booleanisLooping()Test if the activity is looping.booleanisMessageEvent()Test if activity is event.booleanisSignalEvent()Test if activity is event.booleanisStartEvent()Test if activity is a start event.booleanisThrowing()Test if the activity is throwing.voidremoveEventHandler(MActivity eventhandler)Remove an event handler.voidremoveIncomingDataEdge(MDataEdge edge)Remove an outgoing edge.voidremoveIncomingMessageDescription(java.lang.Object desc)Remove an incoming message description.voidremoveIncomingMessagingEdge(MMessagingEdge edge)Remove an incoming message edge.voidremoveIncomingSequenceEdge(MSequenceEdge edge)Remove an incoming edge.voidremoveOutgoingDataEdge(MDataEdge edge)Remove an outgoing edge.voidremoveOutgoingMessageDescription(java.lang.Object desc)Remove an outgoing message description.voidremoveOutgoingMessagingEdge(MMessagingEdge edge)Remove an outgoing message edge.voidremoveOutgoingSequenceEdge(MSequenceEdge edge)Remove an outgoing edge.voidremoveParameter(MParameter param)Remove a parameter.voidremoveParameter(java.lang.String name)Remove a parameter.voidremoveParameters()Remove a parameter.voidremoveProperty(MProperty prop)Remove a property.voidremoveProperty(java.lang.String propname)Remove a property.voidsetActivityType(java.lang.String activitytype)Set the activity type.voidsetClazz(ClassInfo clazz)Set the class.voidsetEventHandler(boolean eventhandler)Set the eventhandler.voidsetIncomingDataEdges(java.util.List<MDataEdge> indataedges)Set the incoming data edges.voidsetIncomingMessagingEdges(java.util.List<MMessagingEdge> inmsgedges)Set the incoming message edges.voidsetIncomingSequenceEdgesDescription(java.lang.String incomingedges)Set the xml incoming edges description.voidsetLane(MLane lane)Set the lane of the activity.voidsetLaneDescription(java.lang.String lanedescription)Set the xml lane description.voidsetLooping(boolean looping)Set the looping state.voidsetOutgoingDataEdges(java.util.List<MDataEdge> outdataedges)Set the outgoing data edges.voidsetOutgoingSequenceEdges(java.util.List<MSequenceEdge> outseqedges)Set the outgoing sequence edges.voidsetOutgoingSequenceEdgesDescription(java.lang.String outgoingedges)Set the xml outgoing edges desription.voidsetParameter(java.lang.String name, java.lang.String value, java.lang.Class<?> type, boolean string, java.lang.String direction)Set a parameter value: a) val==null -> remove property b) val!=null && !hasProp(name) -> addProp(name, val) c) val!=null && hasProp(name) -> setInitialVal(val)voidsetParameters(IndexMap<java.lang.String,MParameter> parameters)Sets the parameters.voidsetPool(MPool pool)Set the pool of the activity.voidsetProperties(IndexMap<java.lang.String,MProperty> properties)Set the properties.voidsetProperty(java.lang.String name, java.lang.String value, boolean string)Set a property value: a) val==null -> remove property b) val!=null && !hasProp(name) -> addProp(name, val) c) val!=null && hasProp(name) -> setInitialVal(val)voidsetPropertyValue(java.lang.String name, UnparsedExpression exp)Legacy conversion from unparsed expression.voidsetPropertyValue(java.lang.String name, IParsedExpression exp)Legacy conversion to unparsed expression.voidsetThrowing(boolean throwing)Set the throwing state.voidsetType(java.lang.String type)Set the type.java.lang.StringtoString()Create a string representation of this activity.- 
Methods inherited from class jadex.bpmn.model.MAssociationTargetaddAssociation, getAssociations, getAssociationsDescription, removeAssociation, setAssociationsDescription
 - 
Methods inherited from class jadex.bpmn.model.MNamedIdElementgetDescription, getName, setDescription, setName
 - 
Methods inherited from class jadex.bpmn.model.MAnnotationElementaddAnnotation, getAnnotations
 - 
Methods inherited from class jadex.bpmn.model.MIdElementequals, getId, hashCode, setId
 
- 
 
- 
- 
- 
Field Detail- 
MI_NOTFOUNDprotected static final MethodInfo MI_NOTFOUND 
 - 
RETURNPARAMpublic static final java.lang.String RETURNPARAM Constant for the return parameter name.- See Also:
- Constant Field Values
 
 - 
IFACEpublic static final java.lang.String IFACE The interface name.- See Also:
- Constant Field Values
 
 - 
METHODpublic static final java.lang.String METHOD The method name.- See Also:
- Constant Field Values
 
 - 
ISSERVICEpublic static final java.lang.String ISSERVICE Is service constant.- See Also:
- Constant Field Values
 
 - 
ISSEQUENTIALpublic static final java.lang.String ISSEQUENTIAL Constant for the sequential result execution mode .- See Also:
- Constant Field Values
 
 - 
RESULTNAMEpublic static final java.lang.String RESULTNAME Constant for the result param name.- See Also:
- Constant Field Values
 
 - 
RESULTTYPEpublic static final java.lang.String RESULTTYPE Constant for the result param type (needed for distinguishing collection results from single values).- See Also:
- Constant Field Values
 
 - 
lanedescriptionprotected java.lang.String lanedescription The lane description.
 - 
outgoingsequenceedgesdescriptionprotected java.lang.String outgoingsequenceedgesdescription The outgoing sequence edges description.
 - 
incomingsequenceedgesdescriptionprotected java.lang.String incomingsequenceedgesdescription The incoming sequence edges description.
 - 
incomingmessagesdescriptionsprotected java.util.List<java.lang.Object> incomingmessagesdescriptions The incoming messages description.
 - 
outgoingmessagesdescriptionsprotected java.util.List<java.lang.Object> outgoingmessagesdescriptions The outgoing messages description.
 - 
outseqedgesprotected java.util.List<MSequenceEdge> outseqedges The outgoing sequence edges.
 - 
inseqedgesprotected java.util.List<MSequenceEdge> inseqedges The incoming sequence edges.
 - 
outmsgedgesprotected java.util.List<MMessagingEdge> outmsgedges The outgoing message edges.
 - 
inmsgedgesprotected java.util.List<MMessagingEdge> inmsgedges The incoming message edges.
 - 
outdataedgesprotected java.util.List<MDataEdge> outdataedges The outgoing data edges.
 - 
indataedgesprotected java.util.List<MDataEdge> indataedges The incoming data edges.
 - 
typeprotected java.lang.String type The type.
 - 
activitytypeprotected java.lang.String activitytype The activity type.
 - 
loopingprotected boolean looping The looping flag.
 - 
throwingprotected boolean throwing The throwing flag.
 - 
eventhandlersprotected java.util.List<MActivity> eventhandlers The event handlers.
 - 
poolprotected MPool pool The pool.
 - 
laneprotected MLane lane The lane (if any).
 - 
eventhandlerprotected boolean eventhandler The flag if this activity is an event handler.
 - 
parametersprotected IndexMap<java.lang.String,MParameter> parameters The parameters (name -> MParameter).
 - 
propertiesprotected IndexMap<java.lang.String,MProperty> properties The properties (name -> MProperty).
 - 
clazzprotected ClassInfo clazz The class.
 - 
bodymethodprotected volatile MethodInfo bodymethod The body method cached for speed.
 - 
cancelmethodprotected volatile MethodInfo cancelmethod The body method cached for speed.
 - 
componentinjectionsprotected volatile java.util.List<FieldInfo> componentinjections The component injection targets.
 - 
argumentinjectionsprotected volatile java.util.Map<java.lang.String,java.util.List<FieldInfo>> argumentinjections The argument injection targets.
 - 
resultinjectionsprotected volatile java.util.Map<java.lang.String,FieldInfo> resultinjections The result injection targets.
 
- 
 - 
Method Detail- 
getLaneDescriptionpublic java.lang.String getLaneDescription() Get the xml lane description.- Returns:
- The lane description.
 
 - 
setLaneDescriptionpublic void setLaneDescription(java.lang.String lanedescription) Set the xml lane description.- Parameters:
- lanedescription- The lane description to set.
 
 - 
getOutgoingSequenceEdgesDescriptionpublic java.lang.String getOutgoingSequenceEdgesDescription() Get the xml outgoing sequence edges desription.- Returns:
- The outgoing sequence edges description.
 
 - 
setOutgoingSequenceEdgesDescriptionpublic void setOutgoingSequenceEdgesDescription(java.lang.String outgoingedges) Set the xml outgoing edges desription.- Parameters:
- outgoingedges- The outgoing edges to set.
 
 - 
getIncomingSequenceEdgesDescriptionpublic java.lang.String getIncomingSequenceEdgesDescription() Get the xml incoming edges description.- Returns:
- The incoming edges description.
 
 - 
setIncomingSequenceEdgesDescriptionpublic void setIncomingSequenceEdgesDescription(java.lang.String incomingedges) Set the xml incoming edges description.- Parameters:
- incomingedges- The incoming edges to set.
 
 - 
getOutgoingMessagesDescriptionspublic java.util.List<java.lang.Object> getOutgoingMessagesDescriptions() Get the xml outgoing messages descriptions.- Returns:
- The outgoing messages descriptions.
 
 - 
addOutgoingMessageDescriptionpublic void addOutgoingMessageDescription(java.lang.Object desc) Add an outgoing message description.- Parameters:
- desc- The description.
 
 - 
removeOutgoingMessageDescriptionpublic void removeOutgoingMessageDescription(java.lang.Object desc) Remove an outgoing message description.- Parameters:
- desc- The description.
 
 - 
getIncomingMessagesDescriptionspublic java.util.List<java.lang.Object> getIncomingMessagesDescriptions() Get the incoming messages description.- Returns:
- The incoming messages descriptions.
 
 - 
addIncomingMessageDescriptionpublic void addIncomingMessageDescription(java.lang.Object desc) Add an incoming message description.- Parameters:
- desc- The description.
 
 - 
removeIncomingMessageDescriptionpublic void removeIncomingMessageDescription(java.lang.Object desc) Remove an incoming message description.- Parameters:
- desc- The description.
 
 - 
getOutgoingSequenceEdgespublic java.util.List<MSequenceEdge> getOutgoingSequenceEdges() Get the outgoing sequence edges.- Returns:
- The outgoing edges.
 
 - 
setOutgoingSequenceEdgespublic void setOutgoingSequenceEdges(java.util.List<MSequenceEdge> outseqedges) Set the outgoing sequence edges.- Parameters:
- outseqedges- The outgoing sequence edges.
 
 - 
addOutgoingSequenceEdgepublic void addOutgoingSequenceEdge(MSequenceEdge edge) Add an outgoing edge.- Parameters:
- edge- The edge.
 
 - 
removeOutgoingSequenceEdgepublic void removeOutgoingSequenceEdge(MSequenceEdge edge) Remove an outgoing edge.- Parameters:
- edge- The edge.
 
 - 
getIncomingSequenceEdgespublic java.util.List<MSequenceEdge> getIncomingSequenceEdges() Get the incoming edges.- Returns:
- The incoming edges.
 
 - 
getIncomingSequenceEdgespublic void getIncomingSequenceEdges(java.util.List<MSequenceEdge> inseqedges) Set the incoming edges.- Parameters:
- inseqedges- The incoming edges.
 
 - 
addIncomingSequenceEdgepublic void addIncomingSequenceEdge(MSequenceEdge edge) Add an incoming edge.- Parameters:
- edge- The edge.
 
 - 
removeIncomingSequenceEdgepublic void removeIncomingSequenceEdge(MSequenceEdge edge) Remove an incoming edge.- Parameters:
- edge- The edge.
 
 - 
getOutgoingMessagingEdgespublic java.util.List<MMessagingEdge> getOutgoingMessagingEdges() Get the outgoing message edges.- Returns:
- The outgoing message edges.
 
 - 
getOutgoingMessagingEdgespublic void getOutgoingMessagingEdges(java.util.List<MMessagingEdge> outmsgedges) Set the outgoing message edges.- Parameters:
- outmsgedges- The outgoing message edges.
 
 - 
addOutgoingMessagingEdgepublic void addOutgoingMessagingEdge(MMessagingEdge edge) Add an outgoing message edge.- Parameters:
- edge- The edge.
 
 - 
removeOutgoingMessagingEdgepublic void removeOutgoingMessagingEdge(MMessagingEdge edge) Remove an outgoing message edge.- Parameters:
- edge- The edge.
 
 - 
getIncomingMessagingEdgespublic java.util.List<MMessagingEdge> getIncomingMessagingEdges() Get the incoming message edges.- Returns:
- the incoming message edges.
 
 - 
setIncomingMessagingEdgespublic void setIncomingMessagingEdges(java.util.List<MMessagingEdge> inmsgedges) Set the incoming message edges.- Parameters:
- inmsgedges- The incoming message edges.
 
 - 
addIncomingMessagingEdgepublic void addIncomingMessagingEdge(MMessagingEdge edge) Add an incoming message edge.- Parameters:
- edge- The edge.
 
 - 
removeIncomingMessagingEdgepublic void removeIncomingMessagingEdge(MMessagingEdge edge) Remove an incoming message edge.- Parameters:
- edge- The edge.
 
 - 
addOutgoingDataEdgepublic void addOutgoingDataEdge(MDataEdge edge) Add an outgoing edge.- Parameters:
- edge- The edge.
 
 - 
removeOutgoingDataEdgepublic void removeOutgoingDataEdge(MDataEdge edge) Remove an outgoing edge.- Parameters:
- edge- The edge.
 
 - 
addIncomingDataEdgepublic void addIncomingDataEdge(MDataEdge edge) Add an incoming edge.- Parameters:
- edge- The edge.
 
 - 
removeIncomingDataEdgepublic void removeIncomingDataEdge(MDataEdge edge) Remove an outgoing edge.- Parameters:
- edge- The edge.
 
 - 
getIncomingDataEdgespublic java.util.List<MDataEdge> getIncomingDataEdges() Get the incoming data edges.- Returns:
- the incoming data edges.
 
 - 
setIncomingDataEdgespublic void setIncomingDataEdges(java.util.List<MDataEdge> indataedges) Set the incoming data edges.- Parameters:
- indataedges- The incoming data edges.
 
 - 
getOutgoingDataEdgespublic java.util.List<MDataEdge> getOutgoingDataEdges() Get the outgoing data edges.- Returns:
- the outgoing data edges.
 
 - 
setOutgoingDataEdgespublic void setOutgoingDataEdges(java.util.List<MDataEdge> outdataedges) Set the outgoing data edges.- Parameters:
- outdataedges- The outgoing data edges.
 
 - 
getTypepublic java.lang.String getType() Get the type.- Returns:
- The type.
 
 - 
setTypepublic void setType(java.lang.String type) Set the type.- Parameters:
- type- The type to set.
 
 - 
getActivityTypepublic java.lang.String getActivityType() Get the activity type.- Returns:
- The activity type.
 
 - 
setActivityTypepublic void setActivityType(java.lang.String activitytype) Set the activity type.- Parameters:
- activitytype- The activity type to set.
 
 - 
isLoopingpublic boolean isLooping() Test if the activity is looping.- Returns:
- True, if looping.
 
 - 
setLoopingpublic void setLooping(boolean looping) Set the looping state.- Parameters:
- looping- The looping state to set.
 
 - 
isThrowingpublic boolean isThrowing() Test if the activity is throwing.- Returns:
- True, if throwing.
 
 - 
setThrowingpublic void setThrowing(boolean throwing) Set the throwing state.- Parameters:
- throwing- The throwing state to set.
 
 - 
getEventHandlerspublic java.util.List<MActivity> getEventHandlers() Get the event handlers.- Returns:
- The event handlers.
 
 - 
addEventHandlerpublic void addEventHandler(MActivity eventhandler) Add an event handler.- Parameters:
- eventhandler- The event handler.
 
 - 
removeEventHandlerpublic void removeEventHandler(MActivity eventhandler) Remove an event handler.- Parameters:
- eventhandler- The event handler.
 
 - 
getParameterspublic IndexMap<java.lang.String,MParameter> getParameters() Get the parameters.- Returns:
- The parameters.
 
 - 
getParameterpublic MParameter getParameter(java.lang.String name) Get a parameter by name.
 - 
getAllParameterspublic IndexMap<java.lang.String,MParameter> getAllParameters(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String[] imports, java.lang.ClassLoader cl) Get the parameters.- Returns:
- The parameters.
 
 - 
getParameterspublic java.util.List<MParameter> getParameters(java.lang.String[] dirs) Get parameters of specific direction(s).- Returns:
- The in parameters.
 
 - 
setParameterspublic void setParameters(IndexMap<java.lang.String,MParameter> parameters) Sets the parameters.- Parameters:
- parameters- The parameters.
 
 - 
hasParameterpublic boolean hasParameter(java.lang.String name) Test if a prop exists.
 - 
addParameterpublic void addParameter(MParameter param) Add a parameter.- Parameters:
- param- The parameter.
 
 - 
removeParameterpublic void removeParameter(MParameter param) Remove a parameter.- Parameters:
- param- The parameter.
 
 - 
removeParameterpublic void removeParameter(java.lang.String name) Remove a parameter.- Parameters:
- param- The parameter.
 
 - 
removeParameterspublic void removeParameters() Remove a parameter.- Parameters:
- param- The parameter.
 
 - 
setPropertyValuepublic void setPropertyValue(java.lang.String name, UnparsedExpression exp)Legacy conversion from unparsed expression.- Parameters:
- name- Name
- exp-
 
 - 
setPropertyValuepublic void setPropertyValue(java.lang.String name, IParsedExpression exp)Legacy conversion to unparsed expression.- Parameters:
- name- Name
- exp-
 
 - 
getPropertyValueStringpublic java.lang.String getPropertyValueString(java.lang.String name) Get a property value string from the model.- Parameters:
- name- The name.
 
 - 
getPropertyValuepublic UnparsedExpression getPropertyValue(java.lang.String name) Get a property value from the model.- Parameters:
- name- The name.
 
 - 
getParsedPropertyValuepublic java.lang.Object getParsedPropertyValue(java.lang.String name) Get a property value from the model.- Parameters:
- name- The name.
 
 - 
getPropertyNamespublic java.lang.String[] getPropertyNames() Returns the property names.- Returns:
- The property names.
 
 - 
hasPropertyValuepublic boolean hasPropertyValue(java.lang.String name) Test, if a property is declared and has nonull unparsed expression.- Parameters:
- name- The property name.
- Returns:
- True, if the property is declared.
 
 - 
hasInitialPropertyValuepublic boolean hasInitialPropertyValue(java.lang.String name) Test, if a property is declared and has nonull unparsed expression.- Parameters:
- name- The property name.
- Returns:
- True, if the property is declared.
 
 - 
getPropertiespublic IndexMap<java.lang.String,MProperty> getProperties() Get the properties.- Returns:
- The properties.
 
 - 
setPropertiespublic void setProperties(IndexMap<java.lang.String,MProperty> properties) Set the properties.- Parameters:
- properties-
 
 - 
hasPropertypublic boolean hasProperty(java.lang.String name) Test if a property exists.
 - 
addPropertypublic void addProperty(MProperty prop) Add a property.- Parameters:
- prop- The property.
 
 - 
addPropertypublic void addProperty(java.lang.String name, java.lang.String value)Add a simple string-based property.- Parameters:
- name- Property name.
- value- The string value.
 
 - 
addPropertypublic void addProperty(java.lang.String name, java.lang.String value, boolean string)Add a simple string-based property.- Parameters:
- name- Property name.
- value- The string value.
 
 - 
removePropertypublic void removeProperty(java.lang.String propname) Remove a property.- Parameters:
- propname- Name of the property.
 
 - 
removePropertypublic void removeProperty(MProperty prop) Remove a property.- Parameters:
- prop- The property.
 
 - 
setPropertypublic void setProperty(java.lang.String name, java.lang.String value, boolean string)Set a property value: a) val==null -> remove property b) val!=null && !hasProp(name) -> addProp(name, val) c) val!=null && hasProp(name) -> setInitialVal(val)
 - 
setParameterpublic void setParameter(java.lang.String name, java.lang.String value, java.lang.Class<?> type, boolean string, java.lang.String direction)Set a parameter value: a) val==null -> remove property b) val!=null && !hasProp(name) -> addProp(name, val) c) val!=null && hasProp(name) -> setInitialVal(val)
 - 
toStringpublic java.lang.String toString() Create a string representation of this activity.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- A string representation of this activity.
 
 - 
getPoolpublic MPool getPool() Get the pool of the activity.- Returns:
- The pool of the activity.
 
 - 
setPoolpublic void setPool(MPool pool) Set the pool of the activity.- Parameters:
- pool- The pool of the activity.
 
 - 
getLanepublic MLane getLane() Get the lane of the activity.- Returns:
- The lane of the activity.
 
 - 
setLanepublic void setLane(MLane lane) Set the lane of the activity.- Parameters:
- lane- The lane of the activity.
 
 - 
isEventHandlerpublic boolean isEventHandler() Get the eventhandler.- Returns:
- The eventhandler.
 
 - 
setEventHandlerpublic void setEventHandler(boolean eventhandler) Set the eventhandler.- Parameters:
- eventhandler- The eventhandler to set.
 
 - 
getClazzpublic ClassInfo getClazz() Get the class.- Returns:
- The class.
 
 - 
setClazzpublic void setClazz(ClassInfo clazz) Set the class.- Parameters:
- clazz- The class to set.
 
 - 
isEventpublic boolean isEvent() Test if activity is event.- Returns:
- True, if is event.
 
 - 
isStartEventpublic boolean isStartEvent() Test if activity is a start event.- Returns:
- True, if is event.
 
 - 
isEndEventpublic boolean isEndEvent() Test if activity is a end event.- Returns:
- True, if is event.
 
 - 
isIntermediateEventpublic boolean isIntermediateEvent() Test if activity is an intermediate event.- Returns:
- True, if is event.
 
 - 
isMessageEventpublic boolean isMessageEvent() Test if activity is event.- Returns:
- True, if is event.
 
 - 
isSignalEventpublic boolean isSignalEvent() Test if activity is event.- Returns:
- True, if is event.
 
 - 
isGatewaypublic boolean isGateway() Test if activity is gateway.- Returns:
- True, if is gateway.
 
 - 
getBodyMethodpublic MethodInfo getBodyMethod(java.lang.ClassLoader cl) Get and save the body method info.
 - 
getCancelMethodpublic MethodInfo getCancelMethod(java.lang.ClassLoader cl) Get and save the cancel method info.
 - 
getComponentInjectionspublic java.util.List<FieldInfo> getComponentInjections(java.lang.ClassLoader cl) Get and save the body method info.
 - 
getArgumentInjectionspublic java.util.Map<java.lang.String,java.util.List<FieldInfo>> getArgumentInjections(java.lang.ClassLoader cl) Get and save the body method info.
 - 
getResultInjectionspublic java.util.Map<java.lang.String,FieldInfo> getResultInjections(java.lang.ClassLoader cl) Get and save the body method info.
 - 
getMethodpublic static MethodInfo getMethod(java.lang.Class<?> body, java.lang.Class<? extends java.lang.annotation.Annotation> type) Get method with an annotation.
 - 
getFieldspublic static java.util.List<FieldInfo> getFields(java.lang.Class<?> body, java.lang.Class<? extends java.lang.annotation.Annotation> type) Get method with an annotation.
 
- 
 
-