classdef CompareVerificationHandler < fxptui.Web.CallbackService.ActionsHandler
    % Class to handle the work for Collect Callback in FPT.
    
    % Copyright 2019 The MathWorks, Inc.
    
    properties(Constant)
        ActionID = fxptui.internal.ActionFactory.CompareID;
    end
    
    methods(Hidden)
        
        function prepare(~, varargin)
            workflowSetting = varargin{2};
            clientData = varargin{3};
            
            verificationRun = clientData.verifyRun;
            
            verificationSettings = workflowSetting.getSettingValue('VerificationSetting');
            verificationSettings.RunName = verificationRun;
            
        end
        
        function handleSuccess(~, varargin)
            % no op
        end
        
        function handleError(~, varargin)
            e = varargin{1};
            
            fxptui.showdialog('', e);
        end
        
        function cleanup(~, varargin)
            % no op
        end
        
    end
    
end