ArcGIS Pro 2.9 API Reference Guide
FinishSplitExecutionStep(String,IReadOnlyList<String>) Method
Example 

ArcGIS.Desktop.Workflow.Models.JobModels Namespace > Job Class > FinishSplitExecutionStep Method : FinishSplitExecutionStep(String,IReadOnlyList<String>) Method
The ID of the step to finish executing. If no step is specified, the current step will be marked as complete
Array of string arguments to pass to the step
Finishes executing a step that supports split execution
Syntax
public WorkflowExecutionResult FinishSplitExecutionStep( 
   string stepID,
   IReadOnlyList<string> args
)
Public Overloads Function FinishSplitExecutionStep( _
   ByVal stepID As String, _
   ByVal args As IReadOnlyList(Of String) _
) As WorkflowExecutionResult

Parameters

stepID
The ID of the step to finish executing. If no step is specified, the current step will be marked as complete
args
Array of string arguments to pass to the step

Return Value

Information on the return code and errors during execution
Example
Finish split execution of step and check for an exception
string[] args = new string[] { "/ReturnCode:3"}
WorkflowExecutionResult result = job.FinishSplitExecutionStep(5, args);
// 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;
}
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

Job Class
Job Members
Overload List