Help me finish my plugin

But could you explain why I cannot add a publishState from workflow (which can show in text or input) to the database ? But It’s ok when using withtriggerEvent workflow.

In my case, When I click the Add to cart button, it returns a publishState content Image url , but I can not add it to the database in the Add to cart click event. But it ok when I create triggerEvent and create an file_uploaded event (your guide above)

Thank you