Interface IProcessExtension

All Known Subinterfaces:
IUserProcessExtension
All Known Implementing Classes:
AbstractProcessExtension, AbstractUserProcessExtension

public interface IProcessExtension
Base interface of the process extension interfaces
Since:
November 2006
API:
This is a public API.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    abort(IRequestId requestId)
    The request with the request id must be aborted Called if a timeout exception occurs.
    Gets addition log info.
    void
    This method is called before this process extension is thrown away by the process engine.
    default void
     
    default void
    setConfiguration(String configuration)
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    On the designer this method is called if the simulation starts.
    void
    On the designer this method is called if the simulation stops.
  • Method Details

    • abort

      void abort(IRequestId requestId)
      The request with the request id must be aborted Called if a timeout exception occurs.
      Parameters:
      requestId - the identifier of the request to stop
      API:
      This public API is available in Java.
    • start

      void start() throws Exception
      On the designer this method is called if the simulation starts. On the server this method is called after the process is loaded and before the process handles the first request. Implementors can use this method to prepare the bean to handle requests (e.g. start threads, allocate resources etc.)
      Throws:
      Exception - if bean can not be started
      API:
      This public API is available in Java.
    • stop

      void stop() throws Exception
      On the designer this method is called if the simulation stops. On the server this method is called before the process is unloaded, this can happened if the process model version, the process model or the web application is deactivated. Implementors must use this method to abort all running request.
      Throws:
      Exception - if bean can not be stopped
      API:
      This public API is available in Java.
    • release

      void release() throws Exception
      This method is called before this process extension is thrown away by the process engine. Implementers should release all resource they have allocated in this method, so that the process extension can be garbage collected (Stop all created threads, close all opened files, etc.)
      Throws:
      Exception - if bean can not be released
      API:
      This public API is available in Java.
    • setConfiguration

      @Deprecated(forRemoval=true, since="11.2") default void setConfiguration(String configuration)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the configuration of the process extension
      Parameters:
      configuration - the process extension configuration
      API:
      This public API is available in Java.
    • setConfiguration

      default void setConfiguration(ProgramConfig config)
      API:
      This public API is available in Java.
    • getAdditionalLogInfo

      String getAdditionalLogInfo(IRequestId requestId)
      Gets addition log info. This information will be added to all log messages.
      Parameters:
      requestId - the identifier of the request
      Returns:
      additional log info
      API:
      This public API is available in Java.