<%@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:
    Name:
    <% } // step 1 %> <% if(step.equals("2")){ %> ">
    <%=title%>
    Select Objects to Change and new Life Cycle Template
     
    <% String objObid = ieService.getAttributeValue("row",0,"obid"); %>
    All NameNumberVersionStatusStateContainer
     
    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
     
    <%= lcManaged.getIdentity() %> - <%= nowOrStill %> <%= lct.getName() %> (<%= lcStatus %>)
    <% } // step 3 %>