Hi,
If you already have the Capability object you can use something like:
{m:capability.preCondition.name}
or
{m:capability.postCondition.name}
To get the capability in the first place if you are on a System object and want capabilitys from the SystemAnalysis you can use:
{m:system.ownedArchitectures->filter(ctx::SystemAnalysis)->at(1).ownedAbstractCapabilityPkg.oclAsType(ctx::CapabilityPkg).ownedCapabilities.postCondition.name}
Note there are other places where you can find Capabilities:
{m:system.ownedArchitectures->filter(la::LogicalArchitecture)->at(1).ownedAbstractCapabilityPkg.oclAsType(la::CapabilityRealizationPkg).ownedCapabilityRealizations}
{m:system.ownedArchitectures->filter(pa::PhysicalArchitecture)->at(1).ownedAbstractCapabilityPkg.oclAsType(la::CapabilityRealizationPkg).ownedCapabilityRealizations}
{m:system.ownedArchitectures->filter(epbs::EPBSArchitecture)->at(1).ownedAbstractCapabilityPkg.oclAsType(la::CapabilityRealizationPkg).ownedCapabilityRealizations}
Yvan.