ArcGIS Pro 2.8 API Reference Guide
CanCompleteStep Method

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
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 10, Windows 8.1

See Also

Reference

Job Class
Job Members