JobsManager manager = WorkflowModule.GetManager<JobsManager>(connectionPath); Job jobInfo = await manager.GetJob(123); jobInfo.Name = "test"; await jobInfo.Save();
// GetJob returns an existing job // it is passed a valid job ID as an integer var wfCon = await WorkflowModule.ConnectAsync(); var jobManager = wfCon.GetManager<JobsManager>(); var job = jobManager.GetJob(jobID);
// Get a job associated with the map var wfCon = await WorkflowModule.ConnectAsync(); var jobManager = wfCon.GetManager<JobsManager>(); var job = jobManager.GetJob(map); if (job != null) { // Job found, do something with the job var jobId = job.ID; }
System.Object
ArcGIS.Desktop.Workflow.Models.JobModels.Job
Target Platforms: Windows 11, Windows 10