|
Server Component Class: CRFramework.VISControls.VISServerControl
ResetJob(JobName As System.String, AppDomainName As System.String)
Returns System.Boolean
The ResetJob method sends a request to the BlueSky Integration Studio Server to Reset the specified job, but only if it is NOT currently running. The reset method should be used only in the instance where the job aborted or was stopped during processing to reset the job to a Ready status.
[VB]
Imports CRFramework.VISControls
Dim VIS As VISServerControl |
Dim js As JobStatus |
|
VIS = New VISServerControl() |
|
VIS.UserName = "administrator" |
VIS.Password = "manager" |
VIS.ServerName = "localhost" |
|
VIS.Connect() |
|
js = VIS.GetJobStatus("myJob", "SharedDomain") |
If js.JobStatus = JobStatus.JobStatusTypes.Aborted Then |
VIS.ResetJob("myJob", "SharedDomain") |
End If |
[C#]
using CRFramework.VISControls;
VISServerControl VIS; |
JobStatus js; |
|
VIS = new VISServerControl(); |
|
VIS.UserName = "administrator"; |
VIS.Password = "manager"; |
VIS.ServerName = "localhost"; |
|
VIS.Connect(); |
|
|
js = VIS.GetJobStatus("myJob", "SharedDomain"); |
if (js.JobStatus == JobStatus.JobStatusTypes.Aborted) |
{ |
VIS.ResetJob("myJob", "SharedDomain"); |
} |
|
© 2003 - 2007 Relational Solutions, Inc. - All rights reserved