Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The ProcessState  model should be relatively straightforward. This model will be accessible via some sort of API/Task SDK. It will almost act as a sort of key-value store. One of the things that’s important to me is making sure that there is uniqueness outside of just specifying a “key”. i.e. some sort of “hash” or "process_name". This model will very closely mimic the Variable  model.

Code Block
languagepy
themeConfluence
titleProcessState Model
class ProcessState(Base):
    id = ...
    
	# Automatically created
    created_date = ...
    update_date = ...
	
	process_name = ...
    key = ...
    value = ...
	
	# Implement set, update, delete, get methods to store and retrieve state
    def set(): ...
	def update(): ...
	def delete(): ...
    def get(): ...

...