Usually, it is used in a non-finite clause to indicate that something happened to the subject in the past relative to the tense of the main clause.
Five days later, having been promised a stable supply, they resumed production. Her husband Dan, having been made redundant, is floundering and turning bitter. More examples