Interface ExecutionContext

  • All Superinterfaces:
    PluginDataContainer, Serializable, UserAttributeContainer

    public interface ExecutionContext
    extends Serializable, UserAttributeContainer, PluginDataContainer
    This interface provides methods to get all the information necessary for the execution of an activity by the runtime client. In detail these are the information about
    • the user who requested the execution of the activity
    • the position in the organisation he had occupied when he requested the execution
    • the activity that should be executed with all the necessary execution properties
    • the valid data context for that activity.
    • Field Detail

      • serialVersionUID

        static final long serialVersionUID
        Generated ID for serialisation.
        See Also:
        Constant Field Values
    • Method Detail

      • getAgent

        QualifiedAgent getAgent()
        Returns the user that requested the execution of the activity.
        Returns:
        the user
      • getDataContainer

        DataContainer getDataContainer()
        Returns the data context valid for the requested activity.
        Returns:
        the data container
      • resume

        boolean resume()
        Gets whether the execution of the activity is resumed. The corresponding savepoint is last savepoint as provided by the data container in the execution context.
        Returns:
        Whether the execution of the activity is resumed or started normally.
      • getCurrentEnquiry

        Enquiry getCurrentEnquiry()
        Gets the current enquiry in case the activity is executed as enquiry. An enquiry allows an agent to request further information or even assistance from another agent. Since enquiries can be nested, there may be two different enquiries for an activity: the current activity which is the question to answer for the current user and a replied enquiry which answers the question the current user has made an enquiry for (if so).

        If the activity is not executed as enquiry, the returned Enquiry will be null. The reply will obviously always be null.

        Returns:
        The enquiry set for assistance by the current agent.
      • getRepliedEnquiry

        Enquiry getRepliedEnquiry()
        Gets the replied enquiry in case the activity has been made an enquiry for (by the current user) and this has been replied now. The reply of the enquiry recipient is contained in the returned enquiry.

        If the activity has not been made an enquiry for, the returned Enquiry will be null.

        Returns:
        The enquiry set by the current agent needing assistance.