Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 2.18 KB

code-structure.md

File metadata and controls

28 lines (23 loc) · 2.18 KB

Code Structure

Clef-Workflow-Single Direction Action

Main Modules

  • Shared Module

    • Development Shared:
      • Shared Exceptions
      • Some functions like (Creator, Updater, Process and ....etc)
      • Identity definition (uuid, identityStatus and creation date)
    • Development Store:
      • Store definition (save, creator, updater and store-query)
      • Store Query main available query based on Identity, like findByUuid, findAll, exist and more.
      • Store Identity Creator Based on structure, you need somewhere to create your identity like user, All business code use interface, so you don't need to define anonymous implementation for each identity, Only use yourStoreInstance.identityCreator() provided from store instance to create your identity based on your definition.
      • Store Identity Updater Like Store Identity Creator, but in updater case only you need to define the properties to be update, and you can use it from store instance
      yourStoreInstance.run{ 
          yourIdentity.identityUpdater() 
      } 
    • Development UseCase
      • There is two type of usecase:
        • CommandUseCase: Used to execute some commands based on your request definition, and don't give me back anything.
        • FunctionalUseCase: Used to process some business based on your request definition, and it will be back to you with response based on its definition.
  • TODO