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

In This Topic
    FinishSteps Method
    In This Topic
    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.
    Syntax
    void FinishSteps( 
       string jobId,
       List<string> stepIds
    )
    Sub FinishSteps( _
       ByVal jobId As String, _
       Optional ByVal stepIds As List(Of String) _
    ) 

    Parameters

    jobId
    stepIds
    Example
    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);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also