ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Workflow.Client.Models Namespace / INotificationManager Interface / SendStepResponse Method
The response message to be sent.
Example

In This Topic
    SendStepResponse Method
    In This Topic
    Send a response to Workflow Manager Server pertaining to a job's current step. The response must include the jobId, stepId, and other information pertinent to the step.
    Syntax
    void SendStepResponse( 
       StepResponse response
    )
    Sub SendStepResponse( _
       ByVal response As StepResponse _
    ) 

    Parameters

    response
    The response message to be sent.
    Example
    // Response for a question step QueuedTask.Run(() => { StepResponse msg = new StepResponse() { Message = new QuestionStepInfoResponseMessage() { JobId = "jobid_123abc", StepId = "step_5", QuestionResponse = 2 } }; WorkflowClientModule.NotificationManager.SendStepResponse(msg) });
    Send a response to Workflow Manager Server pertaining to a job's current step
    // Send a step response to Workflow Manager Server with additional information required for the step to continue.
    // In this example, provide an answer response to a QuestionStepInfoRequiredMessage so that the Question step can complete.
    // The response must include the jobId, stepId, and other information pertinent to the step.
    var stepInfoResponseMessage = new QuestionStepInfoResponseMessage()
    {
      JobId = jobId,
      StepId = stepId,
      QuestionResponse = 1,
      Comment = "Selected question response option 1"
    };
    var stepResponse = new StepResponse()
    {
      Message = stepInfoResponseMessage
    };
    
    var notifManager = WorkflowClientModule.NotificationManager;
    notifManager.SendStepResponse(stepResponse);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also