X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=mod%2Fruntimeapi%2Fruntime-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fdcae%2Fruntime%2Fcore%2FFlowGraphParser.java;fp=mod%2Fruntimeapi%2Fruntime-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fdcae%2Fruntime%2Fcore%2FFlowGraphParser.java;h=0d7838209563b0c1d9b09fc2feb46ba8042259f2;hb=460c1c55994b1fa4d0f02573e4cfc6dfb26b2b30;hp=7154caee28a8457e063e074c6ae37eefb90240d1;hpb=7cabd09bc1530ca725a7af40200a4c6568616b04;p=dcaegen2%2Fplatform.git diff --git a/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java b/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java index 7154cae..0d78382 100644 --- a/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java +++ b/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java @@ -1,6 +1,6 @@ /*- * ============LICENSE_START======================================================= - * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2019-2022 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,7 +50,9 @@ public class FlowGraphParser { } private static int createBlueprintVersion() { - DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyMMddHHmm").withZone(ZoneId.of("UTC")); + // Generated version must be unique for each flow-graph distribution + // Removed year from the text to fix invalid integer issue (DCAEGEN2-3028) + DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MMddHHmm").withZone(ZoneId.of("UTC")); Instant instant = Instant.now(); String timestamp = formatter.format(instant); return Integer.parseInt(timestamp);