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...

Status

Assignee

Nick Dunstone

Reporter

Katarzyna Streich

Priority

Medium

Fix versions

Ported to...

Corda 4.3
Corda Enterprise 4.3 RC01

Feature Team

Kernel Group

CVSS Vector

None

Severity

Critical

Story Points

3

Sprint

None

Affects versions

Configure