Skip to content

Exception when passing a previous TaskResult to a Task #522

Description

@tapparello

Hello,

I am using the updated develop branch and getting the following error when trying to populate a FormStep with results from the last run of the task:

rx.exceptions.OnErrorNotImplementedException: StepResult must be StepResult<StepResult>,

which is thrown by the function

protected void validateStepAndResult(Step step, StepResult stepResult)

in FormStepLayout.java when checking if the stepResult is an instance of StepResult. I am getting to this point by getting the latest task result from my appDatabase and then adding it to the intent with intent.putExtra(EXTRA_TASK_RESULT, taskResult).

The function protected void validateStepAndResult(Step step, StepResult stepResult) is getting the values of the results from the stepResult as follows:

for (Object resultObj : stepResult.getResults().values())

therefore making resultObj a LinkedHashMap.

Am I missing something here? Is there a different way of populating steps with results from previous runs of the same task?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions