17-08-2016 11:35 AM - edited 17-08-2016 11:37 AM
Dear Community Members ,
Analyzed the vb macro for scheduling our jobs to automate that described in the Hopex studio Scheduler documents , it executes without any error ,but not reflect on scheduler.
Appreciated if you will help us on the configuration!
Dim mgRoot Dim objSchedulerClient Dim mgobjScheduling Dim mgobjScheduledTrigger Dim mgobjScheduledJob Set mgRoot = GetRoot() ' Get the SchedulerClient API object Set objSchedulerClient = mgRoot.SchedulerClient ' Allocate a "System Trigger" MegaObject to be configured Set mgobjScheduledTrigger = objSchedulerClient.NewTrigger() ' Get the Scheduling and "System Job" MegaObject to be configured Set mgobjScheduling = mgobjScheduledTrigger.GetCollection("~e)PMRueCFbLR[Scheduling]").Item(1) Set mgobjScheduledJob = mgobjScheduledTrigger.GetCollection("~pWuUJAATF5mD[SystemJob]").Item(1) ' Configure the Scheduling mgobjScheduling.SetProp "~azPMryeCFfRR[Scheduling.IsRelative]", "A" mgobjScheduling.SetProp "~h)PMS5fCFTXR[Scheduling.RepeatKind]", "S" ' Set the start at Now + 30 seconds mgobjScheduling.SetProp "~CaW0Vl0PG1pC[Scheduling.Start.AbsDateTime]",DateAdd("s",30,Now) ' Configure the System Job (with dumy macro and contextstring, just for example) mgobjScheduledJob.GetProp("~210000000900[Name]") = "My Job" mgobjScheduledJob.GetProp("~MXuU7x9TFLlD[Implementation Macro]") = "~oHDN0jc0I1p4[Geneation]" mgobjScheduledJob.CallMethod "~zdj0fUG4GXRM[SetContextString]", "my informations" ' Register the System Trigger into the Scheduler instance objSchedulerClient.AddTrigger mgobjScheduledTrigger, "UPDATEMODE=TRANSACTIONAL"
Solved! Go to Solution.
19-12-2018 12:43 PM
oh thanks anyway
17-10-2018 12:09 PM
17-10-2018 12:03 PM
Hi have you resolved this problem?
I have the same problem too, if you have resolved it, can you say me how, please?
thanks
Egidio
23-08-2016 04:08 AM
Hello imrankhatyanm //,
Does the Scheduler VB Script code works for you ? if yes, please share if any necessary settings needs to be change on the system.
Thanks//
22-08-2016 07:20 AM
Hello imrankhatyanm //
Yes , Its enabled !!
Regards,
Arunas
22-08-2016 07:17 AM
Is your SSP service is Operational?