code: function Fragment(name) {
    if (!(this instanceof Fragment)) {
      return new Fragment(name);
    }
  
    events.EventEmitter.call(this);
  
    if (!_.isString(name)) {
      throw new Error('A `name` is required');
    }
  
    this.name = name;
    this.activityOptions = {};
  
    /** @private */
    this._tasks = [];
    this._sequencedTasks = [];
  }
docs: Represents a single, named workflow, where all activities and decisions are defined.
  @constructor
  @param {string} name - The name of the workflow.
  @param {string} domain - The AWS SWF domain name to execute this workflow in.
  @param {string} [tasklist=<name>-tasklist] - The name of the tasklist to listen for tasks on.