public interface SessionContext extends UserAttributeContainer
| Modifier and Type | Method and Description |
|---|---|
ClientSessionFactory |
getClientSessionFactory()
Returns the client session factory which allows to retrieve the executing
agent as well as session tokens which are needed to access ADEPT2-interface-methods.
|
Enquiry |
getCurrentEnquiry()
Gets the current enquiry that was caused when executing this component.
|
DataContext |
getDataContext()
Gets the data context, that is, an interface to get and set the
values of all input and output parameters of an application.
|
EBPInstanceReference |
getEBPInstanceReference()
Returns the reference to the corresponding process step which contains all
information to identify the process step.
|
GUIContext |
getGUIContext()
Gets the GUI context which contains the parent GUI for the
application.
|
ProgressMonitor |
getProgressMonitor()
Returns the assigned progress monitor which should be notified about
the progress of the run.
|
Enquiry |
getRepliedEnquiry()
Gets the replied enquiry in case the activity has been made an enquiry for
(by the current user for execution of the current component) and this has
been replied now.
|
RuntimeEnvironment |
getRuntimeEnvironment()
Returns a reference to the appropriate RuntimeEnvironment.
|
java.lang.String |
getSessionID()
Returns the the session id that makes possible to identify the
application instance the session context belongs to.
|
boolean |
isTestMode()
Enables the component to inform itself if it is executed in the test
mode.
|
boolean |
isViewOnly()
Instructs the component to use the view only mode, that is, the values of
the input and output parameters are just displayed but can not be changed.
|
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValuejava.lang.String getSessionID()
EBPInstanceReference getEBPInstanceReference()
DataContext getDataContext()
GUIContext getGUIContext()
RuntimeEnvironment getRuntimeEnvironment()
ProgressMonitor getProgressMonitor()
ClientSessionFactory getClientSessionFactory()
boolean isTestMode()
isTestMode() and isViewOnly() are mutual exclusive just
one of this flag is set if any.
ExecutionContext,
ProcessConstants.ExecutionModeboolean isViewOnly()
getDataContext() returns a read-only
data context which allows to retrieve the values of output parameters.
isTestMode() and isViewOnly() are mutual exclusive just
one of this flag is set if any. But isViewOnly() can be mixed
together with getCurrentEnquiry() and/or
getRepliedEnquiry() which means that there is an enquiry or a
reply for the execution but the component has already been completely
finished.
ProcessConstants.ExecutionModeEnquiry getCurrentEnquiry()
If the activity is not executed as enquiry, the returned
Enquiry will be null. The reply
will obviously always be null since it has not been replied to yet.
Important: In case there is an enquiry for the current execution the
component should not allow to close it but just to suspend it. Otherwise
the agent sending the enquiry will only receive the reply but without the
data the activity! Please note that the enquiry mode can be mixed
together with isViewOnly(), this means, the component is executed
in view-only mode and has an open enquiry that needs to be replied.
ExecutionContext.getCurrentEnquiry()Enquiry getRepliedEnquiry()
If the activity has not been made an enquiry for, the returned
Enquiry will be null.
Unlike getCurrentEnquiry() this enquiry is reply to a previous
enquiry. If there is no current enquiry (getCurrentEnquiry()
returns null), the application can be closed. Please note that the replied
enquiry mode can be mixed together with isViewOnly(), this means,
the component is executed in view-only mode and has a reply for an enquiry.
ExecutionContext.getRepliedEnquiry()