workflow is transformed into hash and submitted as string.

Last 6 steps are removed from workflow if it is not a production workflow.