Interface Stateful

All Known Subinterfaces:
Stateful

public interface Stateful
Stateful is the interface a BusinessObject must implement to be used in StateChangeRule and StateChangeFinalRule rules
Since:
Nuclos 4.11 Use the new 'thin' property for your business object to improve the performance!
  • Method Details

    • getNuclosStateId

      UID getNuclosStateId()
      Returns the id of the current status
      Returns:
    • changeStatus

      void changeStatus(State status) throws BusinessException
      Changes Status.
      Parameters:
      status - : The target status.
      Throws:
      BusinessException
    • insertAttachment

      void insertAttachment(NuclosFile nuclosFile, String comment)
      Inserts the given file as generic document with the given comment
      Parameters:
      nuclosFile - file to insert
      comment -
    • getAttachments

      List<NuclosFile> getAttachments()
      Returns all generic documents attached to this businessobject
      Returns:
      all generic documents attached to this businessobject
    • deleteAttachment

      void deleteAttachment(NuclosFile nuclosFile)
      Deletes the given file if attached to this businessobject
      Parameters:
      nuclosFile - the file to be deleted