function diagnostic = refreshSimulationInput(clientData, model)
    % REFRESHSIMULATIONINPUT refresh simulation input object
    
    % Copyright 2019-2020 The MathWorks, Inc.
    
    diagnostic = MException.empty();
    
    % strip the clientData for only the simulation input field
    simInField = fxptui.message('simulationScenariosWidgetKey');
    if isfield(clientData, simInField)
        clientDataSubset = struct(simInField, clientData.(simInField));
        
        % get the current Workflow from DataLayer
        dataLayer = fxptds.DataLayerInterface.getInstance();
        workflow = dataLayer.getCurrentWorkflow(model);
        
        % update the workflow setting with the latest value in base
        % workspace
        [~, diagnostic] = fxptui.internal.updateWorkflowSetting(workflow, clientDataSubset);
    end
end

