接下来如何使用可观察的并在角度7中完成for循环
for (const invoice of activityInstance.dataEntries['invoices'].value) {
var eciObjectIdentifier = {
'id': invoice.identifier.id,
'sourceName': 'dss-default-source'
};
this.eciContentService.getDocumentContentParts(this.sessionService.getPrincipal(), eciObjectIdentifier).subscribe((contentParts) => {
invoice.contentParts = contentParts;
eciObjectObservable.next(this.activityInstance);
eciObjectObservable.complete();
});
}