CLOUDIFY-2431 modify state workflow