groupAbstractPartyByWellKnownParty

fun groupAbstractPartyByWellKnownParty(serviceHub: ServiceHub, parties: Collection<AbstractParty>, ignoreUnrecognisedParties: Boolean): Map<Party, List<AbstractParty>>

Group each AbstractParty by the well known party using the ServiceHub.identityService, in preparation for creating FlowSessions, for example.

Return

a map of well known Party to associated AbstractPartys.

Parameters

parties

the AbstractPartys to group.

ignoreUnrecognisedParties

if this is false, throw an exception if some of the AbstractPartys cannot be mapped to a Party.


Group each AbstractParty by the well known party using the ServiceHub.identityService, in preparation for creating FlowSessions, for example. Throw an exception if some of the AbstractPartys cannot be mapped to a Party.

Return

a map of well known Party to associated AbstractPartys.

Parameters

parties

the AbstractPartys to group.