70 likes | 83 Views
Robots at the beginning of the workflow create the links as well as any discussion topics or postings.
E N D
Robots at the beginning of the workflow create the links as well as any discussion topics or postings. Depending on your process, you may also need to update the link to the details page with the start and complete transitions for each activity. The reason being that as the object is revised, the link may get out of date.
Two process level variables are necessary to store the links to the details page and the discussion forum.
The first robot creates the link to the details page. String pboid = primaryBusinessObject.toString(); wt.httpgw.URLFactory urlFactory = new wt.httpgw.URLFactory(); PBOLink = wt.httpgw.GatewayServletHelper.buildAuthenticatedHREF(urlFactory,"wt.enterprise.URLProcessor","URLTemplateAction","action=ObjProps&appId=PDMLink&oid="+pboid); System.out.println("Resolved the link: \n"+PBOLink);
The second robot creates the link to the discussion forum. wt.util.WTProperties wtProperties = wt.util.WTProperties.getLocalProperties(); String wtCodebase = wtProperties.getProperty("wt.server.codebase", ""); DiscussURL = wtCodebase+"/netmarkets/jsp/forum/discuss.jsp?oid=object~"+primaryBusinessObject;
Our process requires that certain topics and postings get created automatically. This is one example of an expression we use to accomplish this.
The variables must also be created at the activity level and must be initialized from the process level variable as shown.
Once you have your variables setup correctly, you can throw those variables into an IFrame in the Instructions of the activity as shown here.