Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Org.eclipse.higgins.js.pds.client API usage example"
(→getAttributes() flow) |
|||
Line 3: | Line 3: | ||
Example call to .pds.client.getAttributes(domain, audience, attributes[], where[], future) | Example call to .pds.client.getAttributes(domain, audience, attributes[], where[], future) | ||
− | * atts[] := (http://staples.com/office/supplies/StaplescheckoutFlow# | + | * atts[0] := (http://staples.com/office/supplies/StaplescheckoutFlow#phone, false, nil) // a phone number |
− | + | * atts[1] := (http://staples.com/office/supplies/StaplescheckoutFlow#bFirstName, false, nil) // "billing first name" | |
* getAttributes (''"staples.com", nil, atts, nil, nil'') | * getAttributes (''"staples.com", nil, atts, nil, nil'') | ||
==Initial State== | ==Initial State== | ||
+ | ===Contexts=== | ||
[[Image:Pds.client.example 2.0.100a.png]] | [[Image:Pds.client.example 2.0.100a.png]] | ||
+ | |||
+ | ===Staples template=== | ||
+ | http://azigo.com/sys/templates/staples.com | ||
+ | |||
== getAttributes() flow == | == getAttributes() flow == | ||
− | * | + | * Derive the name of the "connection" context (result: http://azigo.com/ptrevithick/staples.com) |
+ | * Compute rolesAtts[] (result: (( | ||
* We would now try to read attributes from the branch of person nodes rooted at its #me person | * We would now try to read attributes from the branch of person nodes rooted at its #me person | ||
− | * However, since this doesn't exist we try to read attributes from the root #me node (and on down) | + | * However, since this doesn't exist we try to read attributes (call '''findAttributeValues'''()) from the root #me node (and on down) |
+ | * | ||
TODO: complete this | TODO: complete this |
Revision as of 13:37, 19 September 2011
{{#eclipseproject:technology.higgins|eclipse_custom_style.css}}
Example call to .pds.client.getAttributes(domain, audience, attributes[], where[], future)
- atts[0] := (http://staples.com/office/supplies/StaplescheckoutFlow#phone, false, nil) // a phone number
- atts[1] := (http://staples.com/office/supplies/StaplescheckoutFlow#bFirstName, false, nil) // "billing first name"
- getAttributes ("staples.com", nil, atts, nil, nil)
Initial State
Contexts
Staples template
http://azigo.com/sys/templates/staples.com
getAttributes() flow
- Derive the name of the "connection" context (result: http://azigo.com/ptrevithick/staples.com)
- Compute rolesAtts[] (result: ((
- We would now try to read attributes from the branch of person nodes rooted at its #me person
- However, since this doesn't exist we try to read attributes (call findAttributeValues()) from the root #me node (and on down)
TODO: complete this