Skip to content

Missing activityDate in closedState when creating a Termination (CDM 5,6&7), affecting Terminations/Novations/Splits etc. #3969

@aantao-isda

Description

@aantao-isda

Issue Summary

When creating business events like Novations/Splits/Terminations a ClosedState object is created on the terminated TradeState.
The Create_BusinessEvent [cdm.event.common.func] function calls for the Create_TradeState [cdm.event.common.func] function to create the closed state

Image

And as we can see here the activityDate is set to empty

Image

But since the cardinality of activityDate is required (1..1)

Image

All Terminated TradeState is created with a validation error

Image

Steps to Reproduce

  1. Creating a standard Termination
    Create an Instruction → primitiveInstruction → quantityChange using func Create_TerminationInstruction
    then create a BusinessEvent using Create_BusinessEvent

  2. Creating Termination from Novation
    Create a SplitInstruction → breakdown → split → breakdown using func Create_TerminationInstruction,
    then create a BusinessEvent using Create_BusinessEvent

Expected Behaviour

Standard Termination - closedState should contain activityDate

Image

Novation - closedState should contain activityDate

Image

Actual Behaviour

Standard Termination - closedState -> activityDate is missing

Image

Novation - closedState -> activityDate is missing

Image

Compatibility

All versions of CDM 5, 6 & 7 have this incomplete mapping
[Create_TradeState in cdm.event.common.func]

Release

CDM 5x, 6x, 7x

Additional Context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

PR Ready

Relationships

None yet

Development

No branches or pull requests

Issue actions