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

In This Topic
    RunSteps Method
    In This Topic
    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
    Sub RunSteps( _
       ByVal jobId As String, _
       Optional ByVal stepIds As List(Of String) _
    ) 
    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); });
    Run steps on a job
    {
      var jobManager = WorkflowClientModule.JobsManager;
      jobManager.RunSteps(jobId);
    }
    Run specific steps on a job
    {
      var jobManager = WorkflowClientModule.JobsManager;
      // Specify specific current steps in a job to run
      var stepIds = new List<string> { "step12345", "step67890" };
      jobManager.RunSteps(jobId, stepIds);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.2 or higher.
    See Also