valid? (God::Task)

    # File lib/god/task.rb, line 37
        def valid?
          valid = true

          # a name must be specified
          if self.name.nil?
            valid = false
            applog(self, :error, "No name was specified")
          end

          # valid_states must be specified
          if self.valid_states.nil?
            valid = false
            applog(self, :error, "No valid_states array was specified")
          end

          # valid_states must be specified
          if self.initial_state.nil?
            valid = false
            applog(self, :error, "No initial_state was specified")
          end

          valid
        end