The Default State Record must be built as an SQL Table. This is not documented (I think).
You can then use the Run Control by binding as in the following example. If it is a Derived Work table, not an SQL Table, the %Bind value will be Null.
This blog is a scrap book of code snippets and tricks that I find interesting or reusable. One day I may find enough time to format it all in a more presentable manner but for now it serves as a useful, searchable reference point. Feel free to use whatever you find.