We need to publish the workflow to site first, after that we will
associate it with content types successfully. Otherwise, we will get System.NullReferenceException: Object reference not set to an instance of an object error. And in your
video, I saw you just saved the workflow but
haven’t published it yet.