Thanks for the reply and yes it’s working for me.
Also, Need to know how can I submit a custom post type’s post programmatically for workflow review? I am generating post dynamically want that post goes to the workflow. Is there hook for sending a particular post to workflow?