Please guide us on how in workflow, work item number gets generated at run time.
In Production System , we are having an issue where work item number are not getting generated in a particular sequence. This is affecting our code logic which we have implemented based on work item number of future task.
example if current work item number of task is 593862 , Then Next step generated 593863 ( Previous +1) and further to this next task should generate 593864 but it generated 593866. May be 593864 got generated for difference work flow instance of different document.
There are 6-7 such cases reported in production where workflow has generated work item number not in sequence sometime added by 2 to previous work item or by 1.
Please help as to what can be done so that it always generate work item in sequence .