It is impossible to provide default parameters to flow constructor and invoke it by startFlowDynamic

Description

This issue affects token-sdk but also any cordapp developer, additionally it throws serialization exception masking real issue, which requires from our users to debug corda internals (there is a ticket for that as well).
OK, back to what's happening.
Let's define flow that has default parameter in the constructor (notice `JvmOverloads` annotation).

and

it throws <drums!>:

Aha...
Anyway, this beauty comes from `net/corda/node/services/statemachine/FlowLogicRefFactoryImpl.kt:71`:

 

So, the default param is not visible...

Assignee

Nick Dunstone

Reporter

Katarzyna Streich

Sprint

None

Epic Link

None

Priority

Medium

Engineering Teams

Kernel

Fix versions

Affects versions

Ported to...

Corda 4.3
Corda Enterprise 4.3 RC01

Story Points / Dev Days

3

Build cut

None
Configure