<%@page language="java"%> <%@page import="java.util.*,wt.adapter.*,wt.fc.*,wt.lifecycle.*,wt.query.*" %> <%@page import="com.infoengine.object.factory.*,com.infoengine.au.*,com.infoengine.jsp.*" %> <%@page import="com.infoengine.SAK.*,wt.inf.container.*,wt.util.*" %> <%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%> <%urlFactory.setRequestURL(request.getScheme(), request.getHeader("HOST"), request.getRequestURI());%> <%! public class PortalUtils{ public Persistable retrieveLocalObject(String ufid) throws WTException{ StringTokenizer tokens = new StringTokenizer(ufid, ":"); String objectObid = tokens.nextToken() + ":" + tokens.nextToken() + ":" + tokens.nextToken(); return BasicWebjectDelegate.getObjectByUfid(objectObid); } public String getReferenceString(Persistable persistable) throws WTException{ if(persistable == null){ return ""; }else{ persistable = PersistenceHelper.manager.refresh(persistable); ReferenceFactory referencefactory = new ReferenceFactory(); String s = referencefactory.getReferenceString(persistable); return s; } } } %> <% //initialize variables PortalUtils utils = new PortalUtils(); WTProperties wtprops = WTProperties.getLocalProperties(); String wtInstance = wtprops.getProperty("wt.federation.ie.VMName"); String step = request.getParameter("step"); if(step == null || step.equals("")) step = "1"; String title = "Re-Assign Lifecycle - Step "+step; %> <% if (ieService.getGroup("containers") == null){ %> <% } // pass data from java to html Group lifecyclesGroup = ieService.getGroup("lifecycles"); String outputHTML0 = new String(); for(int i=0; i"; } out.println(outputHTML0); %>
    <% if(step.equals("1")){ %>
    <%=title%>
    Select Search Criteria
    Container:
    Type: Document Part CAD Document
      Change Issue - PR Change Request - ECR Change Notice - ECN
      Change Activity Managed Baseline End Item
    Name: Number: <% } // step 1 %> <% if(step.equals("2")){ %> ">
    <%=title%>
    Select Objects to Change and new Life Cycle Template
     
    <% String[] otStg = (request.getParameterValues("objectType")); %> <% for (int i = 0; i < otStg.length; i++) { %> <% String objObid = ieService.getAttributeValue("row",0,"obid"); String objObid_cln = cleanObid(objObid); String nmStg = ieService.getAttributeValue("row",0,"name"); String numStg2 = ""; %> <%! public String cleanObid(String obid){ StringTokenizer st0 = new StringTokenizer(obid,":"); return st0.nextToken()+":"+st0.nextToken()+":"+st0.nextToken(); } %> <% Group lcnm_grp = ieService.getGroup("lcnm"); String lcnmStg = lcnm_grp.getElementAt(0).getAtt("lifeCycleName").getValue().toString(); %> <% if ( objObid_cln.indexOf("wt.epm.EPMDocument") >= 0 ) { nmStg = ieService.getAttributeValue("row",0,"CADName"); ReferenceFactory refFac = new ReferenceFactory(); WTReference sdfgh = refFac.getReference(objObid_cln); numStg = ((wt.epm.EPMDocument)sdfgh.getObject()).getNumber().toString(); } %> <% } %>
    All NameNumberVersionStatusStateLifeCycleContainerType
    <%=nmStg%> <%=numStg%> <%=lcnmStg%>
     
    New Lifecycle:
    New State:
    <% } // step 2 %> <% if(step.equals("3")){ %> <% String[] lifecyclemanagedobjs = request.getParameterValues("lifecyclemanagedobjs"); String targetLifeCycleTemplateObid = request.getParameter("lifecycle"); String targetLifeCycleState = request.getParameter("state"); String containerObid = request.getParameter("container"); LifeCycleTemplate lct = (LifeCycleTemplate) utils.retrieveLocalObject(targetLifeCycleTemplateObid); LifeCycleTemplateReference lctRef = LifeCycleTemplateReference.newLifeCycleTemplateReference(lct); for(int i=0;i<%=e.toString()%><% imgHref = imgHrefBase+"red.gif"; nowOrStill = "still"; } } }%> <% } %>
    <%= title %>
    Life Cycle Re-Assignment Status
     
    <%= lcStatus %> = <%= lcManaged.getIdentity() %> - <%= nowOrStill %> <%= lct.getName() %> (<%= lcStatus %>)
    <% } // step 3 %>