Metadata
- Source
- FLUID-5883
- Type
- Improvement
- Priority
- Major
- Status
- Open
- Resolution
- N/A
- Assignee
- Colin Clark
- Reporter
- Antranig Basman
- Created
2016-04-01T12:02:50.032-0400 - Updated
2024-07-22T09:27:33.027-0400 - Versions
- N/A
- Fixed Versions
- N/A
- Component
-
- IoC System
Description
Writing our "Onward" paper exposed a hole in our "convenience" encoding methods for the ContextAwareness API. There needs to be an "adaptationPriority" field accepted by the fluid.contextAware.makeAdaptation field to feed into the "true field" named priority attached to an adaptation record. The paper example reads:
fluid.contextAware.makeAdaptation({
distributionName: "onward.adaptations.antarcticDoubling",
targetName: "onward.imageRenderer",
adaptationName: "scaleDoubling",
adaptationPriority: "before:yInversion", // no effect - just for priority demonstration
checkName: "antarctic",
record: {
contextValue: "{onward.contexts.antarctic}",
gradeNames: "onward.rendererAdaptation.doubleScale"
}
});