Get a customized tour of VisualCron’s automation, integration, and task scheduling capabilities.
Explore VisualCron’s full power at your own pace with a free, all-access trial for 30 days.
.... Dim Job = New VisualCron.JobClass Job.Name = "Job name" Job.Group = "Group" Job.Description = "Description" Dim task As VisualCron.TaskClass task = Job.AddTask(VisualCron.TaskClass.TaskT.VariableSet) task.Name = "TaskName" task.VariableSet.UserVariable.Name = "VarName" task.VariableSet.UserVariable.Description = "VarDESC" task.VariableSet.UserVariable.ObjectType = TypeCode.String 🅱task.VariableSet.UserVariable.ValueObject = ?????[/b] ....
Or you can use jv.ValueObject = serverObj.Encrypt()
.... Dim Job = New VisualCron.JobClass Job.Name = "Job name" Job.Group = "Group" Job.Description = "Description" Dim task As VisualCron.TaskClass task = Job.AddTask(VisualCron.TaskClass.TaskT.VariableSet) task.Name = "TaskName" task.VariableSet.UserVariable.Name = "VarName" task.VariableSet.UserVariable.Description = "VarDESC" task.VariableSet.UserVariable.ObjectType = TypeCode.String task.VariableSet.UserVariable.ValueObject = ClientObj.Encrypt("TEST") ....
Unhandled error in SetVariable: System.InvalidOperationException: Errore nel documento XML (1, 1). ---> System.Xml.XmlException: Rilevati dati non validi al livello radice. Riga 1, posizione 1. in System.Xml.XmlTextReaderImpl.Throw(String res, String arg) in System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() in System.Xml.XmlTextReaderImpl.ParseDocumentContent() in System.Xml.XmlReader.MoveToContent() in System.Xml.Serialization.XmlSerializationPrimitiveReader.Read_string() in System.Xml.Serialization.XmlSerializer.DeserializePrimitive(XmlReader xmlReader, XmlDeserializationEvents events) in System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) --- Fine della traccia dello stack dell'eccezione interna --- in System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) in OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.MGLNHPPKDCCKDPNBCENHDMEIPAGBOLKEHNGM.OLDBBAHMBPBAIBLDHMIAPKPIOLBIJBKLKJHD.HOJMMAIEMGIHFJDPBILPDGDDIAKLLLFFJFKA(String , Type , Boolean ) in C:\sourcefiles\code\VisualCronService\Main\modXML.vb:riga 129 in VisualCronService.VariablesAPI.GetVariableValue(Byte[] ValueObject, TypeCode ObjectType, VariableReplacerClass VR) in C:\sourcefiles\code\VisualCronService\Variables\apiVariables.vb:riga 259 in VisualCronService.VariablesAPI.GetVariableValue(UserVariableClass uv, VariableReplacerClass VR) in C:\sourcefiles\code\VisualCronService\Variables\apiVariables.vb:riga 244 in OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.MBMHNJEFPGOMLCDMANINOFKHALKKLMPEFBJA.IDFIKEDJHGPCEDDEDCLJBKGCEIMGBDHAKLHH() in C:\sourcefiles\code\VisualCronService\Jobs\TaskProcesses\Internal\clsProcessTaskVariableSet.vb:riga 55
task.VariableSet.UserVariable.ValueObject = ClientObj.Encrypt(SerializationHelper.XmlSerialize("TEST"))
To prevent misunderstanding we made this simplier by creating a method for this:serverObj.Variables.SetVariableValue(TypeCode, value)You need to upgrade to this version:http://www.visualcron.co....aspx?g=posts&t=5231
© SMA Technologies. All Rights Reserved, 2024 Version: 11.1.26.176dac7