In this SailPoint tutorial example, we will see how to create sequence number manually in SailPoint.
There may come situation, where you have to create sequence number manually. Here we see how we can create sequence number manually.
import sailpoint.persistence.Sequencer; import sailpoint.object.WorkItem; //create object of workitem WorkItem item = new WorkItem(); //create object of Sequence class Sequencer seq=new Sequencer(); return seq.generateId(context,item);
sequence is created through Sequencer. Sequencer class is present inside
New object of Sequencer is created by using new Sequencer().
generateId method of Sequencer class is used to generate the new sequence.