Forum Discussion
Former_Member
8 years agoAccelerator III
Innovator inn = this.getInnovator();
string type = this.getProperty("classification", "");
this.setProperty("item_number", inn.getNextSequence("Design Document"));
if (type != null && type.Equals("Design Document")) {
this.setProperty("item_number", inn.getNextSequence("Design Document"));
} else if (type != null && type.Equals("Engineering Document")) {
this.setProperty("item_number", inn.getNextSequence("Engineering Document"));
} else if (type != null && type.Equals("Specification Document")) {
this.setProperty("item_number", inn.getNextSequence("Specification Document"));
}
return this;
this is working and I made "item_number" attribute to string and removed required property.