code: def create(cls, data, **kwargs):
          
          with db.session.begin_nested():
              model = cls.dbmodel(**kwargs)
              model.data = data
              obj = cls(model)
              db.session.add(obj.model)
          return obj
docs: Create a new Workflow Object with given content.