You can write code that reads values from job info sheets.
To find the latest job info sheet:
' InSite stores the multiple versions of the JobInfoSheet in the Controlfile DirDim JobInfoSheetHome As String =System.IO.Path.Combine(triggerEvent.Job.JobHome, _"Control\VersionedJobInformationSheets")' Get a string array with the directory names of all the versionedJobInfoSheetsDim VerInfoSheets As String() =System.IO.Directory.GetDirectories(JobInfoSheetHome)' The directory names are date and time (for example,2005.06.29.15.29.43), so sort themArray.Sort(VerInfoSheets)' The most recent JobInfoSheet should be in the last folder of the sortedarrayDim LatestInfoSheet As String = _System.IO.Path.Combine(VerInfoSheets(VerInfoSheets.Length -1),"JobInfoSheet.xml")
To read values from a job info sheet:
' Create an XML document objectDim myXmlDocument As System.Xml.XmlDataDocument = NewSystem.Xml.XmlDataDocument' Load the object with the XML filemyXmlDocument.Load(xmlFile)' Search for the first node in the document that matches an Xpath queryDim node As System.Xml.XmlNode = myXmlDocument.SelectSingleNode("/JobSpec/JobOnSpoke")' If the search was successful, copy the XML node contents into a stringDim myXmlResult As String = NothingIf (Not node Is Nothing) ThenmyXmlResult = node.InnerText.Trim()End If