ibm_ilog.diagram.widget.DataConnector (version 1.1-SNAPSHOT)
Based on information provided through setters, the Data Connector reads in information from one or two data stores, then builds a model of the relationship between the items. When the model is complete, the Data Connector creates Subgraphs, Nodes and Links as appropriate. There may be up to two stores involved. - A nodesStore whose items represent subgraphs or nodes. - A linksStore whose items describe the relationship between nodeStore items. Both stores must, at least, support both dojo.data.api.Read and dojo.data.api.Identity data store features, as defined at http://docs.dojocampus.org/dojo/data The basic flow is as follows: 1.Based on the nodesStore query and queryOptions provided, load all matching items into the model. 2.If defined, load in items from the linksStore. Each item will then be examined for attributes "start" and "end". The values of these attributes are the identities of items in the nodesStore. This inter-item relationship information is added to the model. If any the items referred to has not already been loaded from the nodesStore it is done so now. 3.Based on any to/from relationship functions or fields defined, add inter-item relationship information to the model.If any the items referred to has not already been loaded from the nodesStore it is done so now. Repeat step 3 until all items that have been loaded have had there inter-item relationships resolved. 4.Now the model is fully populated, any final information needed can be deduced directly from the model. 5.Based on information in the model, and options provided to the class instance, Subgraphs Nodes and links are created. unit test: The associated unit testcase is ibm_diagram/tests/widget/DataConnector.html
Property Summary
Event Summary
- onLinksStoreFetchError(error, request)
- onNodesStoreFetchError(error, request)
- onStoreFetchError(error, request)