CompleteStep(String) Method
Parameters
- stepID
- The ID of the step to mark as complete. If no step is specified, the current step will be marked as complete
Return Value
Information on the return code and errors during completion
Complete the current step and check for an exception
WorkflowExecutionResult result = job.CompleteStep();
// Check if the step threw an exception
if (result.Exception != null)
{
// Throw it for a higher level to deal with
throw result.Exception;
}
if (result.HasReturnCode)
{
return result.ReturnCode;
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.