Get all the workflows: - params - JSON Object (Optional). Can include the value of the workflow's "name", and any other key/value pair to search for into workflow's definition. - callback - f(err, workflows)
function getWorkflows(params, callback) {

            if (typeof (params) === 'function') {
                callback = params;
                params = {};
            }

            var wfs = [];
            var rWorkflows = Object.keys(workflows).map(function (uuid) {
                return clone(workflows[uuid]);
            });

            rWorkflows.forEach(function (wf) {
                if (hasPropsAndVals(wf, params)) {
                    wfs.push(wf);
                }
            });
            return callback(null, wfs);
        }