<%@ include file="/portal/include/include_java.jsp" %> <%@ include file="/portal/include/TypedVariable.jsp" %> <%@ page import="com.appiancorp.process.analytics2.util.ProcessAnalyticsUtil"%> <%@ page import="com.appiancorp.suiteapi.process.ProcessVariable"%> <%@ page import="com.appiancorp.asi.components.display.Token"%> <%@page import="com.appiancorp.services.WebServiceContextFactory"%> <%@page import="com.appiancorp.services.ServiceContext"%> <%@page import="com.appiancorp.suiteapi.common.ServiceLocator"%> <%@page import="com.appiancorp.suiteapi.type.TypeService"%> <%@page import="com.appiancorp.suiteapi.type.Datatype"%> <%@page import="com.appiancorp.suiteapi.type.AppianType"%> <%@page import="com.appiancorp.type.util.DatatypeUtils"%> <% Token t = new Token(); t.setValue("runningValue"); ProcessVariable pv = (ProcessVariable)request.getAttribute("displayObject"); String displayString = ProcessAnalyticsUtil.processVarsToString(pv, t, pv.getType().intValue(),false, request,response).toString(); pageContext.setAttribute("displayString", displayString); ServiceContext sc = WebServiceContextFactory.getServiceContext(request); TypeService ts = ServiceLocator.getTypeService(sc); Datatype datatype = ts.getType(pv.getInstanceType()); if (datatype.isListType()) { datatype = ts.getType(datatype.getTypeof()); } boolean isNonRecordSystemType = DatatypeUtils.isNonRecordSystemType(datatype); pageContext.setAttribute("isNonRecordSystemType", Boolean.valueOf(isNonRecordSystemType)); pageContext.setAttribute("isVariant", Boolean.valueOf(pv.getInstanceType().intValue() == AppianType.VARIANT)); pageContext.setAttribute("isEncrypted", Boolean.valueOf(pv.getInstanceType().intValue() == AppianType.ENCRYPTED_TEXT)); pageContext.setAttribute("isMap", Boolean.valueOf(datatype.getBase() == AppianType.MAP)); %>