springml / salesforce-wave-api

Java client for Salesforce Wave API
Apache License 2.0
12 stars 9 forks source link

Bug: BulkAPI isCompleted does not interpret all Batch States #9

Closed k4jiang closed 6 years ago

k4jiang commented 6 years ago

Reference: https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_batches_interpret_status.htm

BulkAPI#isCompleted only considers the Complete and Failed state. It does not consider the other states (Queued, InProgress, Not Processed).

This PR adds logic to interpret all the batch states.

mengxr commented 6 years ago

LGTM cc: @samuel-pt