Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intent Resolution Should Contain selected Intent #284

Closed
sgd2z opened this issue Nov 17, 2020 · 0 comments · Fixed by #507
Closed

Intent Resolution Should Contain selected Intent #284

sgd2z opened this issue Nov 17, 2020 · 0 comments · Fixed by #507
Labels
api FDC3 API Working Group enhancement New feature or request
Milestone

Comments

@sgd2z
Copy link
Contributor

sgd2z commented Nov 17, 2020

Enhancement Request

Based on various discussions related to #268 (raiseIntentForContext) it was suggested that a new issue be made for Intent Resolution to also include the selected Intent

Use Case:

An app that calls raiseIntentForContext, when it receives an IntentResolution would like to know what the chosen Intent was.

Workflow Description

const resolution = await desktopAgent.raiseIntentForContext(context);
switch (resolution.intent) {
    case "a":
        // do something with resolution.data
        break;
     case "b":
        // do something different with resolution.data
        break;
}
@sgd2z sgd2z added the enhancement New feature or request label Nov 17, 2020
@rikoe rikoe added the api FDC3 API Working Group label Jan 28, 2021
@rikoe rikoe added this to the 2.0 milestone Mar 25, 2021
@kriswest kriswest modified the milestones: 2.0-candidates, 2.0 Nov 1, 2021
@kriswest kriswest removed the needs-pr label Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api FDC3 API Working Group enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants