From 1be01e8432859b4f4db68fe9c00df2a603f9b0b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Ramos?= Date: Wed, 24 Jan 2024 11:39:51 +0000 Subject: [PATCH] CORE-19330: FlowTimeout Reason (#1451) Add new 'reason' property to the 'FlowTimeout' schema so that the platform can fully report to usser why a particular flow was timed out. --- .../resources/avro/net/corda/data/flow/FlowTimeout.avsc | 6 ++++++ gradle.properties | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/flow/FlowTimeout.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/flow/FlowTimeout.avsc index e11c023042..cab6bf7efd 100644 --- a/data/avro-schema/src/main/resources/avro/net/corda/data/flow/FlowTimeout.avsc +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/flow/FlowTimeout.avsc @@ -9,6 +9,12 @@ "type": "string", "doc": "Key for the state record that is storing the checkpoint." }, + { + "name": "reason", + "type": "string", + "default": "", + "doc": "Optional message indicating the underlying reason about why the flow is being timed out; used as the 'errorMessage' when marking the flow as 'FAILED'." + }, { "name": "timeoutDateTime", "type": { diff --git a/gradle.properties b/gradle.properties index ed95abb1af..7ea39e04e4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ cordaProductVersion = 5.2.0 # NOTE: update this each time this module contains a breaking change ## NOTE: currently this is a top level revision, so all API versions will line up, but this could be moved to ## a per module property in which case module versions can change independently. -cordaApiRevision = 30 +cordaApiRevision = 31 # Main kotlin.stdlib.default.dependency = false