ArcGIS Pro 2.7 API Reference Guide
CanExecuteStep Method

ArcGIS.Desktop.Workflow.Models.JobModels Namespace > Job Class : CanExecuteStep Method
The ID of the step to execute. If no step is specified, the current step will be used
Determines whether a step can be executed by the current user
Syntax
public Tuple<bool,string> CanExecuteStep( 
   string stepID
)
Public Function CanExecuteStep( _
   Optional ByVal stepID As String _
) As Tuple(Of Boolean,String)

Parameters

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

Return Value

Tuple containing whether it can be executed and if not the reason why the step cannot be executed*
Remarks
A step can be executed 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