Life ConnectLife Connect
Table of contents
Architecture
Services
Swagger Docs
GitHub
Table of contents
Architecture
Services
Swagger Docs
GitHub

I can have the Rental Contract state machine

Event Description Table

EventDescription
UPDATEUpdates the contract without changing its state.
FINALIZE_OFFERFinalizes the offer and transitions the contract to READY_TO_SIGN.
CANCELCancels the contract, transitioning it to the CANCELLED state.
SIGNThe contract is signed, transitioning it to SIGNED.
NOTIFYNotification sent, moving the contract to the NOTICED state.
REVOKE_NOTICERevokes the notice, transitioning the contract back to SIGNED.
ENDMarks the contract as ended, transitioning it to ENDED.
TERMINATETerminates the contract, transitioning it to TERMINATED.

State and Transition Matrix

Current \ EventUPDATEFINALIZE_OFFERCANCELSIGNNOTIFYREVOKE_NOTICEENDTERMINATE
DRAFTDRAFTREADY_TO_SIGNCANCELLED-----
READY_TO_SIGNREADY_TO_SIGN-CANCELLEDSIGNED----
SIGNED----NOTICEDREVOKE_NOTICE-TERMINATED
NOTICED---SIGN--ENDEDTERMINATED
ENDED-------TERMINATED
CANCELLED--------
TERMINATED--------

Full process diagram

class

Edit this page
Last Updated:
Contributors: gregory