RTC default value proivder JAVA API problem
Hello all,
I developed server side extension, that provides default value for attribute and I'm facing one problem. Because it should generate unique sequential number, I'm using file to store last used number. But default value provider plug-in is run few times before workitem editor is shown in WebUI, and when I'm testing it, first time attribute has value 1, second time 6. How I can avoid this problem?
One answer
Yes, value provider can run multiple times. So you would have to look at the value if it is not already there and only generate a new value if it is not yet set. Or, better, use a follow up action to generate the unique value only once, when the save happens like it is done here: https://github.com/jazz-community/rtc-workitem-numbering
Comments
Ian Wark
Oct 29 '19, 12:51 a.m.