*

Reading a single workorder.

@param {string} workorderId - The ID of the workorder to read
5037
function read(workorderId) {
  var donePromise = mediator.promise(workorderSyncSubscribers.getTopic(CONSTANTS.TOPICS.READ, CONSTANTS.DONE_PREFIX, workorderId));

  var errorPromise = mediator.promise(workorderSyncSubscribers.getTopic(CONSTANTS.TOPICS.READ, CONSTANTS.ERROR_PREFIX, workorderId));

  mediator.publish(workorderSyncSubscribers.getTopic(CONSTANTS.TOPICS.READ), {id: workorderId, topicUid: workorderId});

  return getTopicPromises(donePromise, errorPromise);
}
1246257
private boolean isRecordAlreadyRead(
      final PartitionIdType recordPartition,
      final SequenceOffsetType recordSequenceNumber
  )
  {
    final SequenceOffsetType lastReadOffset = lastReadOffsets.get(recordPartition);

    if (lastReadOffset == null) {
      return false;
    } else {
      return createSequenceNumber(recordSequenceNumber).compareTo(createSequenceNumber(lastReadOffset)) <= 0;
    }
  }
781900
@Override
    public void readFragmentFrom(MwsReader r) {
        nextToken = r.read("NextToken", String.class);
        createdBefore = r.read("CreatedBefore", XMLGregorianCalendar.class);
        lastUpdatedBefore = r.read("LastUpdatedBefore", XMLGregorianCalendar.class);
        orders = r.readList("Orders", "Order", Order.class);
    }
1057210
function readEntries (directoryReader, oldEntries, callback) {
  directoryReader.readEntries(
    (entries) => {
      const newEntries = [...oldEntries, ...entries]
      // According to the FileSystem API spec, readEntries() must be called until it calls the callback with an empty array.
      if (entries.length) {
        setTimeout(() => {
          readEntries(directoryReader, newEntries, callback)
        }, 0)
      // Done iterating this particular directory
      } else {
        callback(newEntries)
      }
    },
    // Make sure we resolve on error anyway
    () =>
      callback(oldEntries)
  )
}
1187913
@Override
    public ResourceSet<HostedNumberOrder> read(final TwilioRestClient client) {
        return new ResourceSet<>(this, client, firstPage(client));
    }
672756
@Override
	public List<CommerceOrderNote> findByCommerceOrderId(long commerceOrderId) {
		return findByCommerceOrderId(commerceOrderId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
682795
func (s *CreateWorkerBlockInput) SetWorkerId(v string) *CreateWorkerBlockInput {
	s.WorkerId = &v
	return s
}
905529
function onRead( error, data ) {
		if ( error ) {
			return done( error );
		}
		data = parse( data, opts.reviver );
		if ( data instanceof Error ) {
			return done( data );
		}
		done( null, data );
	}
374420
private void readTasks()
   {
      Integer rootID = Integer.valueOf(1);
      readWBS(m_projectFile, rootID);
      readTasks(rootID);
      m_projectFile.getTasks().synchronizeTaskIDToHierarchy();
   }
240801
@Override
    public void readFragmentFrom(MwsReader r) {
        sellerId = r.read("SellerId", String.class);
        createdAfter = r.read("CreatedAfter", XMLGregorianCalendar.class);
        createdBefore = r.read("CreatedBefore", XMLGregorianCalendar.class);
        lastUpdatedAfter = r.read("LastUpdatedAfter", XMLGregorianCalendar.class);
        lastUpdatedBefore = r.read("LastUpdatedBefore", XMLGregorianCalendar.class);
        orderStatus = r.readList("OrderStatus", "Status", String.class);
        marketplaceId = r.readList("MarketplaceId", "Id", String.class);
        fulfillmentChannel = r.readList("FulfillmentChannel", "Channel", String.class);
        paymentMethod = r.readList("PaymentMethod", "Method", String.class);
        buyerEmail = r.read("BuyerEmail", String.class);
        sellerOrderId = r.read("SellerOrderId", String.class);
        maxResultsPerPage = r.read("MaxResultsPerPage", Integer.class);
        tfmShipmentStatus = r.readList("TFMShipmentStatus", "Status", String.class);
    }
130610
public void captureOrderings(OrderingList<?> ordering) {
        try {
            if (ordering != null) {
                for (OrderedProperty<?> orderedProperty : ordering) {
                    ChainedProperty<?> chained = orderedProperty.getChainedProperty();
                    if (!chained.isDerived()) {
                        mRootJoinNode.addJoin(mRepository, chained, mAliasGenerator);
                    }
                }
            }
        } catch (RepositoryException e) {
            throw new UndeclaredThrowableException(e);
        }
    }
103071
@Override
    public void readFragmentFrom(MwsReader r) {
        asin = r.read("ASIN", String.class);
        sellerSKU = r.read("SellerSKU", String.class);
        orderItemId = r.read("OrderItemId", String.class);
        title = r.read("Title", String.class);
        quantityOrdered = r.read("QuantityOrdered", int.class);
        quantityShipped = r.read("QuantityShipped", Integer.class);
        itemPrice = r.read("ItemPrice", Money.class);
        shippingPrice = r.read("ShippingPrice", Money.class);
        giftWrapPrice = r.read("GiftWrapPrice", Money.class);
        itemTax = r.read("ItemTax", Money.class);
        shippingTax = r.read("ShippingTax", Money.class);
        giftWrapTax = r.read("GiftWrapTax", Money.class);
        shippingDiscount = r.read("ShippingDiscount", Money.class);
        promotionDiscount = r.read("PromotionDiscount", Money.class);
        promotionIds = r.readList("PromotionIds", "PromotionId", String.class);
        codFee = r.read("CODFee", Money.class);
        codFeeDiscount = r.read("CODFeeDiscount", Money.class);
        giftMessageText = r.read("GiftMessageText", String.class);
        giftWrapLevel = r.read("GiftWrapLevel", String.class);
        invoiceData = r.read("InvoiceData", InvoiceData.class);
        conditionNote = r.read("ConditionNote", String.class);
        conditionId = r.read("ConditionId", String.class);
        conditionSubtypeId = r.read("ConditionSubtypeId", String.class);
        scheduledDeliveryStartDate = r.read("ScheduledDeliveryStartDate", String.class);
        scheduledDeliveryEndDate = r.read("ScheduledDeliveryEndDate", String.class);
    }
356184
public void retryLastFailedTask(String workflowId) {
        Preconditions.checkArgument(StringUtils.isNotBlank(workflowId), "workflow id cannot be blank");
        postForEntityWithUriVariablesOnly("workflow/{workflowId}/retry", workflowId);
    }
624282
public Excel03SaxReader read(POIFSFileSystem fs, int sheetIndex) throws POIException {
		this.sheetIndex = sheetIndex;

		formatListener = new FormatTrackingHSSFListener(new MissingRecordAwareHSSFListener(this));
		final HSSFRequest request = new HSSFRequest();
		if (isOutputFormulaValues) {
			request.addListenerForAllRecords(formatListener);
		} else {
			workbookBuildingListener = new SheetRecordCollectingListener(formatListener);
			request.addListenerForAllRecords(workbookBuildingListener);
		}
		final HSSFEventFactory factory = new HSSFEventFactory();
		try {
			factory.processWorkbookEvents(request, fs);
		} catch (IOException e) {
			throw new POIException(e);
		}
		return this;
	}
1052532
public static byte[] intToNetworkByteOrder(int num, int count) {
        byte[] buf = new byte[count];
        intToNetworkByteOrder(num, buf, 0, count);
        
        return buf;
    }
30126
function(data, sortOrder) {
  if(sortOrder){
    data = _.sortBy(data, sortOrder.substr(1));
    if(sortOrder[0] === '-'){
      data.reverse();
    }
  }
  return data;
}
147482
function(asyncRes, callback) {
			var jobId = asyncRes.jobID

			if (!jobId) return callback(null, asyncRes)
			else if (IODOpts.getResults) {
				IOD.result({
					jobId: jobId,
					majorVersion: IODOpts.majorVersion,
					retries: 3
				}, callback)
			}
			else {
				callback(null, asyncRes)
				pollUntilDone(jobId)
			}

		}