ENT-3496 Add the checkpointed flow's simple name to the json file name

This commit is contained in:
LankyDan 2019-06-11 09:38:48 +01:00
parent a60d657c7c
commit 143499f6fd

View File

@ -97,7 +97,7 @@ class CheckpointDumper(private val checkpointStorage: CheckpointStorage, private
val checkpoint = serialisedCheckpoint.checkpointDeserialize(context = checkpointSerializationContext)
val json = checkpoint.toJson(runId.uuid)
val jsonBytes = writer.writeValueAsBytes(json)
zip.putNextEntry(ZipEntry("${runId.uuid}.json"))
zip.putNextEntry(ZipEntry("${json.flowLogicClass.simpleName}-${runId.uuid}.json"))
zip.write(jsonBytes)
zip.closeEntry()
}