public class AbstractTransferableGUIContext
extends java.lang.Object
implements de.aristaflow.adept2.model.runtimeenvironment.guicontext.TransferableGUIContext
TransferableGUIContext just
enough to satisfy the interface. Subclasses should provide more information
to allow for creating a local GUI context for a remote execution. This
information also needs to be provided via getGUIContextAttributes()
so subclasses should override this method.| Modifier and Type | Field and Description |
|---|---|
protected EBPInstanceReference |
activity
The
EBPInstanceReference identifying the process instance node
this GUI context has been created for. |
protected ActivityInstance |
activityInstance
The activity instance this GUI context has been created for.
|
protected ExecutionContext |
executionContext
The execution context of the activity for which this GUI context has been
created for.
|
protected java.util.Locale |
locale
The locale of the agent requesting this GUI context.
|
protected java.lang.String |
sessionID
The ID of the execution session this GUI context has been created for
uniquely identifying the component execution on the (remote) runtime
manager).
|
protected java.lang.String |
transfrdGUIContextID
The ID of transferred GUI context which may differ from that provided and
requested by the activity instance.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTransferableGUIContext(AbstractTransferableGUIContext context)
Creates a new instance of the base implementation of a
TransferableGUIContext
having the fields of the designated GUI context. |
protected |
AbstractTransferableGUIContext(ActivityInstance activityInstance,
EBPInstanceReference activity,
java.lang.String sessionID,
ExecutionContext executionContext,
java.lang.String transfrdGUIContextID)
Creates a new instance of the base implementation of a
TransferableGUIContext having the designated fields. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the GUI for this context.
|
ActivityInstance |
getActivityInstance() |
EBPInstanceReference |
getEBPInstanceReference() |
ExecutionContext |
getExecutionContext() |
java.util.Map<java.lang.String,java.lang.String> |
getGUIContextAttributes()
Always returns the empty map.
|
java.util.Locale |
getLocale()
Gets the
Locale that should be used or that is used for localisation of this
object or a related object. |
java.lang.String |
getSessionID() |
java.lang.String |
getTransferredGUIContextID() |
protected final ActivityInstance activityInstance
protected final java.util.Locale locale
null if the
activity instance should not be localised.protected final EBPInstanceReference activity
EBPInstanceReference identifying the process instance node
this GUI context has been created for.protected final java.lang.String sessionID
protected final ExecutionContext executionContext
protected final java.lang.String transfrdGUIContextID
protected AbstractTransferableGUIContext(ActivityInstance activityInstance, EBPInstanceReference activity, java.lang.String sessionID, ExecutionContext executionContext, java.lang.String transfrdGUIContextID)
TransferableGUIContext having the designated fields.activityInstance - The activity instance this GUI context has been
created for.activity - The EBPInstanceReference identifying the
process instance node this GUI context has been created for.sessionID - The ID of the execution session this GUI context has been
created for uniquely identifying the component execution on the
(remote) runtime manager).executionContext - The execution context of the activity for which
this GUI context has been created for.transfrdGUIContextID - The ID of transferred GUI context which may
differ from that
provided and requested by the activity instance.protected AbstractTransferableGUIContext(AbstractTransferableGUIContext context)
TransferableGUIContext
having the fields of the designated GUI context.context - The GUI context from which to retrieve the fields.public ActivityInstance getActivityInstance()
getActivityInstance in interface de.aristaflow.adept2.model.runtimeenvironment.guicontext.TransferableGUIContextpublic java.util.Locale getLocale()
LocaliserLocale that should be used or that is used for localisation of this
object or a related object.public EBPInstanceReference getEBPInstanceReference()
getEBPInstanceReference in interface de.aristaflow.adept2.model.runtimeenvironment.guicontext.TransferableGUIContextpublic java.lang.String getSessionID()
getSessionID in interface de.aristaflow.adept2.model.runtimeenvironment.guicontext.TransferableGUIContextpublic ExecutionContext getExecutionContext()
getExecutionContext in interface de.aristaflow.adept2.model.runtimeenvironment.guicontext.TransferableGUIContextpublic java.lang.String getTransferredGUIContextID()
getTransferredGUIContextID in interface de.aristaflow.adept2.model.runtimeenvironment.guicontext.TransferableGUIContextpublic java.util.Map<java.lang.String,java.lang.String> getGUIContextAttributes()
getGUIContextAttributes in interface de.aristaflow.adept2.model.runtimeenvironment.guicontext.TransferableGUIContextpublic void close()
close in interface GUIContext