ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Workflow.Models.JobModels Namespace / Job Class / CanCompleteStep Method
The ID of the step to complete. If no step is specified, the current step will be used

In This Topic
    CanCompleteStep Method
    In This Topic
    Determines whether a step can be completed by the current user
    Syntax
    public Tuple<bool,string> CanCompleteStep( 
       string stepID
    )
    Public Function CanCompleteStep( _
       Optional ByVal stepID As String _
    ) As Tuple(Of Boolean,String)

    Parameters

    stepID
    The ID of the step to complete. If no step is specified, the current step will be used

    Return Value

    Tuple containing whether it can be completed and if not the reason why the step cannot be completed*
    Remarks
    A step can be completed if the job is assigned to the current user, it doesn't have an active hold, and it isn't closed.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also