readState & fetchStates

ReadState uses the pp.StateManager.Directory process property to find the state files in the right directory. ReadState reads all files from the directory and returns each file's content as currentData (documents), as well as, DDP_State and DDP_UserId.

Main process set DDP_ReqState to fetch all records with a specific state.

A second process sub.FetchStates( DPP_ReqState)"on-top" of ReadState filters those records which meet a specific state: DPP_ReqState is used as the filter to read only records with that specific state.

Last updated