Workflow Customization - Java API Questions
I am trying to customize the email notifications being sent from a workflow but I'm having trouble finding the right Java API calls to use for certain pieces of information. Here are the calls I'm using so far:
wt.maturity.StandardMaturityService p = new wt.maturity.StandardMaturityService();
wt.maturity.PromotionNotice pn =(wt.maturity.PromotionNotice)primaryBusinessObject;
wt.fc.QueryResult pn_targets;
pn_targets = (wt.fc.QueryResult) p.getBaselineItems(pn);
wt.epm.EPMDocument epmDoc = new wt.epm.EPMDocument();
while (pn_targets.hasMoreElements())
{
Object obj =pn_targets.nextElement();
String objType =obj.getClass().getName();
if (objType.equals("wt.epm.EPMDocument"))
{
epmDoc = (wt.epm.EPMDocument)obj;
System.out.println("state = " + epmDoc.getState().toString());
System.out.println("number = " + epmDoc.getNumber().toString());
System.out.println("cadname = " + epmDoc.getCADName());
}
}
These are working great, but I need more. What are the calls to get the following:
- Revision
- Iteration
- URL to object's detail page
I'm assuming there is some other method the EPM Document object has to be passed through, but I have no idea what it is. I've done some looking through the Java Doc, but it is pretty overwhelming. Any suggestions?
Thanks!

