cancel
Showing results for 
Search instead for 
Did you mean: 

macro -Hopex studio Scheduler

SOLVED
Highlighted
Frequent Contributor

macro -Hopex studio Scheduler

 

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"
5 REPLIES
Contributor

Re: macro -Hopex studio Scheduler

Is your SSP service is Operational?

Frequent Contributor

Re: macro -Hopex studio Scheduler

Hello imrankhatyanm //

 

Yes , Its enabled !!

 

Regards,

Arunas

Frequent Contributor

Re: macro -Hopex studio Scheduler

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//

MEGA

Re: macro -Hopex studio Scheduler

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

Frequent Contributor

Re: macro -Hopex studio Scheduler

Sorry , Nope . We started use the external VB script API to connect MEGA and run that particular job. This task has been auto scheduled every day basis in the Windows task scheduler.