Creates a job using the specified XML file.
HRESULT CreateJobFromXmlFile( [in] BSTR xmlDocument, [out] IJob **pRetVal );
The absolute path to the XML file that defines the job to create. The file name should include the .xml extension. If the job contains tasks, the tasks are also created. For information about writing the XML string, see Job Schema.
An IJob interface that represents the job.
If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code. To get a description of the error, call the ICluster::get_ErrorMessage method.
The initial state of the job is JobStatus_NotSubmitted. After creating the job, call the ICluster::AddJob method to add the job to the cluster. If the XML did not contain tasks, you can then call the ICluster::AddTasks method to add one or more tasks to the job. When the job is ready (you have added all the tasks and set all the job terms), call the ICluster::SubmitJob method to add the job to the scheduling queue.
Compute Cluster Pack Client Utilities