Fix recurrent data

This commit is contained in:
Kostya Struga 2022-03-24 13:09:56 +03:00
parent 0d907650a3
commit d8f49b9e5d
2 changed files with 5 additions and 3 deletions

View File

@ -13,7 +13,7 @@
</parent> </parent>
<artifactId>adapter-flow-lib</artifactId> <artifactId>adapter-flow-lib</artifactId>
<version>0.1.0</version> <version>0.1.1</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>adapter-flow-lib</name> <name>adapter-flow-lib</name>

View File

@ -38,8 +38,10 @@ public class SuccessFinishProcessor
saveData = new HashMap<>(); saveData = new HashMap<>();
} }
String recToken = initRecurrentToken(response, entryStateModel); String recToken = initRecurrentToken(response, entryStateModel);
saveData.put(MetaData.META_REC_TOKEN, recToken); if (StringUtils.hasText(recToken)) {
exitStateModel.setRecToken(recToken); saveData.put(MetaData.META_REC_TOKEN, recToken);
exitStateModel.setRecToken(recToken);
}
} }
exitStateModel.setTrxExtra(saveData); exitStateModel.setTrxExtra(saveData);
log.debug("Finish success process response: {} entryStateModel: {}", response, entryStateModel); log.debug("Finish success process response: {} entryStateModel: {}", response, entryStateModel);