Share all details related to your problem, including any error messages you may have received.
I am trying to create a custom workflow form where i am trying to set the task result name using the follwoing code
wfcontext.getWorkflowCase().getTaskResult().setName("Logical Application Request :"+newApplicationName);
if there is a already a task result with the same name, it is throwing a unique key constraint error, which i understand,
but if i remember correctly this is used to work in older version by appending numbers at the end, such as “Logical Application Request :Temp -1” automatically without additional logic.
Is that deprecated or am i missing something ?
It will take care of the problem, unless and until they are unlucky enough to happen to have two instances of that workflow run in the same millisecond…
Finally figured out the issue.
if the workflow case rename step is right next to form launch step it works, otherwise it throws error. if it is right next to form step the task results gets updated with number automatically.
not sure why though.