public class ModuleInstance extends Object implements XmlEntity, Collectible, ModelInstanceAware, EntityWithId, ProcessInstanceParent
| Modifier | Constructor and Description |
|---|---|
protected |
ModuleInstance()
Creates new empty instance of
ModuleInstance. |
|
ModuleInstance(long id,
ModelInstance modelInstance,
Context context)
Creates new instance of
ModuleInstance. |
|
ModuleInstance(ModelInstance modelInstance,
Context context)
Creates new instance of
ModuleInstance. |
|
ModuleInstance(ModelInstance modelInstance,
com.whitestein.lsps.model.ProcessModel processModel)
Creates new instance of
ModuleInstance for given
ProcessModel. |
| Modifier and Type | Method and Description |
|---|---|
ProcessInstance |
addNewProcessInstance(Context context)
Adds new child process instance.
|
ProcessInstance |
addNewProcessInstance(com.whitestein.lsps.model.ContextModelElement element)
modelInstance
Adds new child process instance.
|
ProcessInstance |
addProcessInstance(ProcessInstance processInstance)
Adds a process instances as a child of this module instance.
|
void |
collect()
Removes itself from the process.
|
Context |
getContext()
Returns the context of this module.
|
com.whitestein.lsps.model.ElementWithId |
getElement(ModelProviderClientService modelProviderService)
Returns the model element.
|
String |
getElementId()
Returns the element id.
|
String |
getElementId(ModelProviderClientService modelProviderService)
Returns the model element id.
|
long |
getId()
Returns the id.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
ModuleInstance |
getModuleInstance()
Returns the enclosing module instance.
|
String |
getName()
Returns the module name.
|
String |
getPath()
Returns the full path to this element as a string.
|
QID |
getPathQID()
Returns the full path to this element as a QID.
|
Collection<ProcessInstance> |
getProcessInstances()
Returns immutable collection of child process instances.
|
Collection<Collectible> |
getReferences()
Returns collection of all referenced collectible objects.
|
ModuleInstanceState |
getState()
Returns the module instance state.
|
boolean |
isPersistent()
Returns true if this object cannot be collected.
|
boolean |
isSuspended()
Returns true if this module instance is suspended.
|
ModuleInstance |
makeCopy(ModelInstance targetModelInstance)
Returns deep copy.
|
void |
postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked after unmarshalling XML data into target.
|
void |
preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked before unmarshalling into target.
|
void |
rebind(ModelInstance modelInstance)
Re-bind to the provided model instance.
|
boolean |
removeProcessInstance(ProcessInstance processInstance)
Removes a process instance.
|
void |
setState(ModuleInstanceState state)
Sets the module instance state.
|
String |
toString() |
protected ModuleInstance()
ModuleInstance.public ModuleInstance(ModelInstance modelInstance, Context context)
ModuleInstance.modelInstance - context - NullPointerException - if modelInstance is nullpublic ModuleInstance(long id,
ModelInstance modelInstance,
Context context)
ModuleInstance.id - modelInstance - context - NullPointerException - if modelInstance is nullpublic ModuleInstance(ModelInstance modelInstance, com.whitestein.lsps.model.ProcessModel processModel)
ModuleInstance for given
ProcessModel.modelInstance - processModel - NullPointerException - if modelInstance is nullpublic long getId()
EntityWithIdgetId in interface EntityWithIdpublic ModuleInstanceState getState()
public void setState(ModuleInstanceState state)
state - public boolean isSuspended()
public String getName()
public Context getContext()
getContext in interface ProcessInstanceParentpublic com.whitestein.lsps.model.ElementWithId getElement(ModelProviderClientService modelProviderService)
ModelIdentifiablegetElement in interface ModelIdentifiablepublic String getElementId(ModelProviderClientService modelProviderService)
ModelIdentifiablegetElementId in interface ModelIdentifiablepublic String getElementId()
public ProcessInstance addProcessInstance(ProcessInstance processInstance)
addProcessInstance in interface ProcessInstanceParentprocessInstance - public boolean removeProcessInstance(ProcessInstance processInstance)
removeProcessInstance in interface ProcessInstanceParentprocessInstance - public ProcessInstance addNewProcessInstance(com.whitestein.lsps.model.ContextModelElement element)
addNewProcessInstance in interface ProcessInstanceParentelement - NullPointerException - if element is nullpublic ProcessInstance addNewProcessInstance(Context context)
addNewProcessInstance in interface ProcessInstanceParentcontext - NullPointerException - if context is nullpublic Collection<ProcessInstance> getProcessInstances()
public ModelInstance getModelInstance()
ModelInstanceAwaregetModelInstance in interface ModelInstanceAwarepublic void rebind(ModelInstance modelInstance)
ModelInstanceAwarerebind in interface ModelInstanceAwarepublic ModuleInstance getModuleInstance()
ProcessInstanceParentgetModuleInstance in interface ProcessInstanceParentpublic void preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallbackpreUnmarshal in interface UnmarshalCallbackparent - instance of JAXB mapped class that will eventually reference target.
null when target is root element.public void postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallbackpostUnmarshal in interface UnmarshalCallbackparent - instance of JAXB mapped class that will reference target.
null when target is root element.public Collection<Collectible> getReferences()
CollectiblegetReferences in interface Collectiblepublic boolean isPersistent()
CollectibleisPersistent in interface Collectiblepublic void collect()
Collectiblecollect in interface Collectiblepublic QID getPathQID()
ProcessInstanceParentgetPathQID in interface ProcessInstanceParentpublic String getPath()
ProcessInstanceParentgetPath in interface ProcessInstanceParentpublic ModuleInstance makeCopy(ModelInstance targetModelInstance)
targetModelInstance - Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.