classdef WorkflowContextFactory < handle
    % WORKFLOWCONTEXTFACTORY is a factory to obtain a fxptds.WorkflowTopology.WorkflowContext
    
    % Copyright 2019 The MathWorks, Inc.
    
    
    methods (Static)
        function context = getContext(intent, varargin)
            if nargin == 0 || isempty(intent)
                intentString = "Null";
            else
                intentString = string(intent);
            end
            className = intentString + "WorkflowContext";
            context = fxptds.WorkflowTopology.workflowcontext.(className);
            context.build(varargin{:});
        end
    end
end

