Unit testing different workflow versions

Is it possible to set a workflow version while unit testing the workflow? In my debugging, it seems that the static Workflow.getVersion calls will always return the max supported version.

Not until this enhancement is implemented.

One way to test this is by using execution history replay. Record a workflow history using an old version, then replay it from a JSON file using the updated code.

1 Like

Should’ve checked the github issue tab, thanks Maxim!