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 Summary
Modifier and TypeMethodDescriptionvoid
changeStatus
(State status) Changes Status.void
deleteAttachment
(NuclosFile nuclosFile) Deletes the given file if attached to this businessobjectReturns all generic documents attached to this businessobjectReturns the id of the current statusvoid
insertAttachment
(NuclosFile nuclosFile, String comment) Inserts the given file as generic document with the given comment
-
Method Details
-
getNuclosStateId
UID getNuclosStateId()Returns the id of the current status- Returns:
-
changeStatus
Changes Status.- Parameters:
status
- : The target status.- Throws:
BusinessException
-
insertAttachment
Inserts the given file as generic document with the given comment- Parameters:
nuclosFile
- file to insertcomment
-
-
getAttachments
List<NuclosFile> getAttachments()Returns all generic documents attached to this businessobject- Returns:
- all generic documents attached to this businessobject
-
deleteAttachment
Deletes the given file if attached to this businessobject- Parameters:
nuclosFile
- the file to be deleted
-