RPTaskResult.withParams constructor

RPTaskResult.withParams(String identifier)

Returns an RPTaskResult with a given identifier and an empty map of results.

identifier should always be the identifier of the "parent" task. It sets startDate to the DateTime.now(). Since these objects are instantiated together with the Task it belongs to so it can be used for measuring how much time the participant spent the given Task.

Implementation

RPTaskResult.withParams(String identifier) : super.withIdentifier(identifier) {
  this.results = Map<String, RPStepResult>();
  startDate = DateTime.now();
}