lib/workflow-in-memory-backend.js
function createWorkflow(workflow, meta, callback) {
            if (typeof (meta) === 'function') {
                callback = meta;
                meta = {};
            }
            if (_wfNames().indexOf(workflow.name) !== -1) {
                return callback(new e.BackendInvalidArgumentError(
                  'Workflow.name must be unique. A workflow with name "' +
                  workflow.name + '" already exists'));
            } else {
                workflows[workflow.uuid] = clone(workflow);
                return callback(null, workflow);
            }
        }
function createWorkflow(workflow, meta, callback) {
            if (typeof (meta) === 'function') {
                callback = meta;
                meta = {};
            }
            if (_wfNames().indexOf(workflow.name) !== -1) {
                return callback(new e.BackendInvalidArgumentError(
                  'Workflow.name must be unique. A workflow with name "' +
                  workflow.name + '" already exists'));
            } else {
                workflows[workflow.uuid] = clone(workflow);
                return callback(null, workflow);
            }
        }
workflow - Workflow object meta - Any additional information to pass to the backend which is not workflow properties callback - f(err, workflow)