ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Workflow.Client.Models Namespace / IJobsManager Interface / RunSteps Method
Example Version

RunSteps Method
Starts running the steps provided in the array. Running a step marks it as finished, if the step is set to proceed to next. This method must be called on the MCT. Use QueuedTask.Run. If no stepIds are specified, then all the current steps will be started.
Syntax
void RunSteps( 
   string jobId,
   List<string> stepIds
)

Parameters

jobId
stepIds
Example
QueuedTask.Run(() => { var id = WorkflowClientModule.JobsManager.GetJobId(); var stepIds = new List() { "123456789", "234567890" }; WorkflowClientModule.JobsManager.RunSteps(id, stepIds); });
How to run steps on a job
var jobManager = WorkflowClientModule.JobsManager;
jobManager.RunSteps(jobId);
How to run specific steps on a job
var jobManager = WorkflowClientModule.JobsManager;
// Specify specific current steps in a job to run
stepIds = new List<string> { "step12345", "step67890" };
jobManager.RunSteps(jobId, stepIds);
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.2 or higher.
See Also