public void run() throws SmartServiceException { ServiceContext sc = null; ProcessExecutionService pes = null; ProcessDetails pd = null; ProcessDesignService pds = null; ProcessModel pm = null; ProcessVariable[] pvVariables; List objNameList = new ArrayList(); List objValueList = new ArrayList(); try { sc = WebServiceContextFactory.getServiceContext(smartServiceCtx.getUsername()); pes = ServiceLocator.getProcessExecutionService(sc); pds = ServiceLocator.getProcessDesignService(sc); pd = pes.getProcessDetails(processid); pm = pds.getProcessModel(pd.getProcessModelId()); pvVariables = pm.getVariables(); LOG.error("PV names : "+pvVariables); //processModelVariables = new String[pvVariables.length]; // pvDataType = new Long[pvVariables.length]; //pvValue = new String[pvVariables.length]; for(int i = 0; i < pvVariables.length; i++){ LOG.error("For loop start"); ProcessVariableInstance pvi = new ProcessVariableInstance(pvVariables[i]); LOG.error("Process Instance"+pvi); objNameList.add(pvVariables[i].toString()); LOG.error("variable names:"+objNameList); //processVariableNames[i] = pvVariables[i].toString(); // pvType.add(pvi.getInstanceType()); // pvDataType[i] = pvi.getInstanceType(); //pvValueList.add(pvi.getRunningValue()); objValueList.add(pvi.getRunningValue().toString()); LOG.error("variable values:"+objValueList); //processVariableValues[i]=pvi.getRunningValue().toString();