Unable to save plugin CSA's published state to database

I think you can use a triggerEvent, then use that publishState from that event in the workflow. It works for me.

Read my thread: Help me finish my plugin - #7 by locnguyen1312