public class MBpmnModel extends MAnnotationElement implements ICacheableModel
Modifier and Type | Field and Description |
---|---|
static String |
EVENT_END_EMPTY
Constant for event end empty.
|
static String |
EVENT_END_ERROR
Constant for event end error.
|
static String |
EVENT_END_MESSAGE
Constant for event end message.
|
static String |
EVENT_END_SIGNAL
Constant for event end signal.
|
static String |
EVENT_INTERMEDIATE_EMPTY
Constant for event start empty.
|
static String |
EVENT_INTERMEDIATE_ERROR
Constant for event intermediate error.
|
static String |
EVENT_INTERMEDIATE_MESSAGE
Constant for event intermediate message.
|
static String |
EVENT_INTERMEDIATE_MULTIPLE
Constant for event intermediate multiple.
|
static String |
EVENT_INTERMEDIATE_RULE
Constant for event intermediate rule.
|
static String |
EVENT_INTERMEDIATE_SIGNAL
Constant for event intermediate signal.
|
static String |
EVENT_INTERMEDIATE_TIMER
Constant for event intermediate timer.
|
static String |
EVENT_START_EMPTY
Constant for event start empty.
|
static String |
EVENT_START_MESSAGE
Constant for event start message.
|
static String |
EVENT_START_MULTIPLE
Constant for event start multiple.
|
static String |
EVENT_START_RULE
Constant for event start rule.
|
static String |
EVENT_START_SIGNAL
Constant for event start signal.
|
static String |
EVENT_START_TIMER
Constant for event start timer.
|
static String |
GATEWAY_DATABASED_EXCLUSIVE
Constant for gateway data based exclusive.
|
static String |
GATEWAY_DATABASED_INCLUSIVE
Constant for gateway data based exclusive.
|
static String |
GATEWAY_PARALLEL
Constant for gateway parallel.
|
static String |
SUBPROCESS
Constant for sub process.
|
static String |
TASK
Constant for task.
|
Constructor and Description |
---|
MBpmnModel()
Create a new model.
|
Modifier and Type | Method and Description |
---|---|
void |
addAllSubActivities(MSubProcess proc,
Map activities)
Add all subactivities.
|
void |
addArgument(IArgument argument)
Add an argument.
|
void |
addArtifact(MArtifact artifact)
Add an artifact.
|
void |
addContextVariable(String name,
Class clazz,
IParsedExpression exp,
Map inivals)
Add a context variable declaration.
|
void |
addImport(String imp)
Add an import.
|
void |
addMessagingEdge(MMessagingEdge message)
Add a message edge.
|
static void |
addMethodInfos(Map props,
String type,
String[] names)
Add method info.
|
void |
addPool(MPool pool)
Add a pool.
|
void |
addPoolLane(String config,
String poollane)
Add a pool/lane activation for a configurations.
|
void |
addProperty(String name,
Object value)
Add a property.
|
void |
addResult(IArgument result)
Add a result.
|
Map |
getAllActivities()
Get all activities.
|
Map |
getAllAssociationSources()
Get all association sources.
|
Map |
getAllAssociationTargets()
Get all association targets.
|
Map |
getAllMessagingEdges()
Get all message edges.
|
Map |
getAllSequenceEdges()
Get all sequence edges.
|
List |
getArtifacts()
Get the artifacts.
|
ClassLoader |
getClassLoader()
Get the classloader.
|
Class |
getContextVariableClass(String name)
Get the class of a declared context variable.
|
IParsedExpression |
getContextVariableExpression(String name,
String config)
Get the initialization expression of a declared context variable.
|
Set |
getContextVariables()
Get the declared context variables.
|
String |
getFilename()
Get the filename.
|
long |
getLastChecked()
Get the last checked date.
|
long |
getLastModified()
Get the lastmodified date.
|
List |
getMessagingEdges()
Get the message edges.
|
IModelInfo |
getModelInfo()
Get the model info.
|
String |
getName()
Get the name of the model.
|
MPool |
getPool(String name)
Get the pools.
|
String |
getPoolLane(String config)
Get the pool lane.
|
List |
getPools()
Get the pools.
|
IResourceIdentifier |
getResourceIdentifier()
Get the resource identifier.
|
static List<MActivity> |
getStartActivities(List<MActivity> activities)
Get all start activities form the supplied set of activities.
|
List<MActivity> |
getStartActivities(String poolname,
String lanename)
Get all start activities of the model.
|
void |
initModelInfo()
Init the model info.
|
boolean |
isKeepAlive()
Get the keepalive.
|
void |
removeArtifact(MArtifact artifact)
Remove an artifact.
|
void |
removeContextVariable(String name)
Remove a context variable declaration.
|
void |
removeMessagingEdge(MMessagingEdge message)
Remove a message edge.
|
void |
removePool(MPool pool)
Remove a pool.
|
void |
setClassLoader(ClassLoader classloader)
Set the classloader.
|
void |
setFilename(String filename)
Set the filename.
|
void |
setKeepAlive(boolean keepalive)
Set the keepalive.
|
void |
setLastChecked(long lastchecked)
Set the last checked date.
|
void |
setLastModified(long lastmodified)
Set the lastmodified date.
|
void |
setName(String name)
Set the name of the model.
|
void |
setPackage(String packagename)
Set the package name.
|
void |
setResourceIdentifier(IResourceIdentifier rid)
Set the resource identifier.
|
String |
toString()
Get a string representation of this AGR space type.
|
addAnnotation, getAnnotations
getId, setId
public static final String TASK
public static final String SUBPROCESS
public static final String GATEWAY_PARALLEL
public static final String GATEWAY_DATABASED_EXCLUSIVE
public static final String GATEWAY_DATABASED_INCLUSIVE
public static final String EVENT_START_EMPTY
public static final String EVENT_START_MESSAGE
public static final String EVENT_START_TIMER
public static final String EVENT_START_RULE
public static final String EVENT_START_SIGNAL
public static final String EVENT_START_MULTIPLE
public static final String EVENT_END_EMPTY
public static final String EVENT_END_ERROR
public static final String EVENT_END_MESSAGE
public static final String EVENT_END_SIGNAL
public static final String EVENT_INTERMEDIATE_EMPTY
public static final String EVENT_INTERMEDIATE_ERROR
public static final String EVENT_INTERMEDIATE_RULE
public static final String EVENT_INTERMEDIATE_SIGNAL
public static final String EVENT_INTERMEDIATE_MESSAGE
public static final String EVENT_INTERMEDIATE_TIMER
public static final String EVENT_INTERMEDIATE_MULTIPLE
public void initModelInfo()
public static void addMethodInfos(Map props, String type, String[] names)
public List getPools()
public void addPool(MPool pool)
pool
- The pool.public void removePool(MPool pool)
pool
- The pool.public List getArtifacts()
public void addArtifact(MArtifact artifact)
artifact
- The artifact.public void removeArtifact(MArtifact artifact)
artifact
- The artifact.public List getMessagingEdges()
public void addMessagingEdge(MMessagingEdge message)
message
- The message edfe.public void removeMessagingEdge(MMessagingEdge message)
message
- The message.public Map getAllMessagingEdges()
public Map getAllSequenceEdges()
public Map getAllActivities()
public void addAllSubActivities(MSubProcess proc, Map activities)
public Map getAllAssociationTargets()
public Map getAllAssociationSources()
public String getName()
public void setName(String name)
name
- The name to set.public List<MActivity> getStartActivities(String poolname, String lanename)
public void addPoolLane(String config, String poollane)
config
- The configuration name.poollane
- The poollane name (dot separated).public String getPoolLane(String config)
config
- The configurations.public void addImport(String imp)
imp
- The import statement.public void setPackage(String packagename)
packagename
- The package name to set.public String toString()
public static List<MActivity> getStartActivities(List<MActivity> activities)
public void addContextVariable(String name, Class clazz, IParsedExpression exp, Map inivals)
name
- The variable name.clazz
- The type of the variableexp
- Default initialization expression (if any).inivals
- Initialization expressions for configurations.public void removeContextVariable(String name)
name
- The variable name.public Set getContextVariables()
public Class getContextVariableClass(String name)
name
- The variable name.public IParsedExpression getContextVariableExpression(String name, String config)
name
- The variable name.public void setFilename(String filename)
filename
- The filename to set.public long getLastModified()
getLastModified
in interface ICacheableModel
public void setLastModified(long lastmodified)
lastmodified
- The lastmodified date to set.public long getLastChecked()
getLastChecked
in interface ICacheableModel
public void setLastChecked(long lastchecked)
setLastChecked
in interface ICacheableModel
lastchecked
- The last checked date to set.public void addArgument(IArgument argument)
argument
- The argument.public void addResult(IArgument result)
result
- The result.public IModelInfo getModelInfo()
public boolean isKeepAlive()
public void setKeepAlive(boolean keepalive)
keepalive
- The keepalive to set.public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classloader)
classloader
- The classloader to set.public void setResourceIdentifier(IResourceIdentifier rid)
rid
- The resource identifier.public IResourceIdentifier getResourceIdentifier()
public String getFilename()
getFilename
in interface ICacheableModel
Copyright © 2012. All Rights Reserved.