Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

1.3.0

Compare
Choose a tag to compare
@dhagberg-sf dhagberg-sf released this 01 Jul 21:05
a21c3b7

Improved UnitOfWork development experience

  • UnitOfWorkResult.success property to identify successful vs. unsuccessful responses
  • Subclasses returned by UnitOfWork.commit() differentiated by new .success property: UnitOfWorkSuccessResponse & UnitOfWorkErrorResponse
  • New UnitOfWorkErrorResponse.rootCause: UnitOfWorkResult property that should have a useful root-cause error .message, also logged at warn level automatically if unsuccessful
  • UoW .registerNew(...), .registerModified(...), and .registerDeleted(...) now return this to allow for method chaining.
  • SObject.withValue(k,v) returns this to allow for method chaining.