Finishes running the steps in the array, and proceeds to the next step(s). This method must be called on the MCT. Use QueuedTask.Run.
If no stepIds are specified, then all the current steps will be finished.
QueuedTask.Run(() =>
{
var id = WorkflowClientModule.JobsManager.GetJobId();
var stepIds = new List() { "123456789", "234567890" };
WorkflowClientModule.JobsManager.FinishSteps(id, stepIds);
});
How to finish steps on a job
var jobManager = WorkflowClientModule.JobsManager;
// Finish the current steps in the job with the given id.
jobManager.FinishSteps(jobId);
How to finish specific steps on a job
var jobManager = WorkflowClientModule.JobsManager;
stepIds = new List<string> { "step12345", "step67890" };
jobManager.FinishSteps(jobId, stepIds);
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.2 or higher.