I think the problem is simpler and no code is needed.
Simply add a field to your form called my:Status and set its value (via rules) when the user clicks Save or Submit. Promote this field, i.e. make it a promoted property.
Then, in the SharePoint form library, you can use the value of Status to determine whether the workflow starts or not. If Status = Submitted, start the workflow. Otherwise, don't start the workflow.
Hope this helps.