In addition to adding PROCESS_INSTANCE as a field, it should also be a Key Field, especially if the State Record is an actual database table (vs. derived record) that will store data needed for program restarts.
Additional State Record fields that are common to include are AE_APPLID and AE_SECTION. These are required on AE Programs which have dynamic Call Section Actions, as the values in these fields will control what AE Step is called next — either in the current program or something outside.
