Approve Engineering Change Request is a multiple user task, there are three vote options: Approve, Research_Required and Reject.
Requirements: If user votes on “Research_Required” and “Reject”, then comment is mandatory, currently we don’t have check for this.
Technical solution Options
- Use the code in Complete transition, but his only works for Single user tasks.
- Use java script check thru UI
- Create a class extends StandardNmWorkItemService service class
Below is how I achieve this using #3.
First, add this service to wt.properties
wt.services.service.10041=com.ptc.netmarkets.work.NmWorkItemService/MyNmWorkitemService
Below is the code of the service.
package ext.hhi.services;
import java.util.HashMap;
import java.util.Iterator;
import wt.fc.ObjectReference;
import wt.fc.Persistable;
import wt.method.RemoteMethodServer;
import wt.util.WTException;
import wt.workflow.engine.Wf