Interface UpdateContext

All Superinterfaces:
LogContext, RuleContext

public interface UpdateContext extends RuleContext
UpdateContext represents the context used in an Update-Rule, Update and UpdateFinal

It contains the BusinessObject that has been changed at runtime and several functions like caching

Author:
Matthias Reichart
See Also:
  • Method Details

    • getBusinessObject

      <T extends BusinessObject> T getBusinessObject(Class<T> t)
      This method returns the BusinessObject containing the entry-data that has been changed during runtime.
      Parameters:
      t - Classtype being a BusinessObject
      Returns:
      BusinessObject
    • getGenericBusinessObject

      <T extends GenericBusinessObject> T getGenericBusinessObject(Class<T> t) throws BusinessException
      This method returns the GenericBusinessObject containing the entry-data that has been changed during runtime.
      Parameters:
      t - Classtype being a GenericBusinessObject
      Returns:
      GenericBusinessObject extending GenericBusinessObject
      Throws:
      BusinessException
    • isCollectiveProcessing

      boolean isCollectiveProcessing()
      Returns true if update is called from a collective process ("Sammelbearbeitung").
      Returns:
      true if update is called from a collective process ("Sammelbearbeitung")
    • notify

      void notify(String message, Priority prio)
      Creates a message with a Priority. The message is displayed in the notification dialog in nuclos. Please check class Priority to get more information about the priority-handling.
      Parameters:
      message -
      prio -
    • notify

      void notify(String message)
      Creates a message with a Priority. The message is displayed in the notification dialog in nuclos as a message with priority 'normal'. Please check class Priority to get more information about the priority-handling.
      Parameters:
      message -