start a job from a script

Azathoth (13 posts)
September 14, 2004 07:13 AM
Accepted Answer

Hi,

Is it possible to start an adTempus job from an adTempus (shared) script?

If it is then how should I do it?

thanks,
Jeroen

 

Administrator Staff (65 posts)
September 14, 2004 03:26 PM
Accepted Answer

This can be done using the adTempus API. I have posted sample code in the following Knowledge Base article: www.arcanadev.com/support/article.asp?a=K00000180

Azathoth (13 posts)
September 20, 2004 05:23 AM
Accepted Answer

Thanks,

It's working....

But now I have 2 more questions about this subject:
_ Is there any more information about the options you can use? h8 = IngoreHeld, h10 = Run on Other Agents, What are the other values?
_ Are there any more examples available? like: "Wait while a job is still running"?

thanks,
Jeroen

 

Azathoth (13 posts)
September 20, 2004 06:01 AM
Accepted Answer

I Got it already!...

While job.GetStatus(true).ActiveInstances > 0
     adTempus.sleep 1000
wend

Administrator Staff (65 posts)
September 20, 2004 06:41 AM
Accepted Answer

That's a good way to wait for the job to finish.

The constants are documented in the API documentation (www.arcanadev.com/adtempus/api/documentation/).

Replies are disabled for this topic.