...
draw.io Diagram |
---|
border | true |
---|
diagramName | DMI v Client Subscriptions |
---|
simpleViewer | false |
---|
links | auto |
---|
tbstyle | top |
---|
lbox | true |
---|
diagramWidth | 521 |
---|
revision | 3 |
---|
|
Create Combinations
Below examples demonstrate what should happen when two separate subscriptions operations are performed:
- an operation on subscription 'A' for client id '10
- an operation on subscription 'B' for client id '52'
# | Existing Subscription A-10 | Client Create Subscription B-52 Request | DMI Create Request | Data Model Before (2nd) Create | Data Model After Create |
---|
1 | CH-1, [ /p/c1, /p/c2 ] | CH-1, [ /p/c1 ] | None |
Expand |
---|
|
Client Subscription |
| DMI Subscription | name | client-id | cm-handle | xpath | subscribers | A | 10 | CH-1 | /p/c1 | [ A-10 ] |
|
| CH-1 | /p/c2 | [ A-10 ] |
|
|
Expand |
---|
|
Client Subscription |
| DMI Subscription | name | client-id | cm-handle | xpath | subscribers | A | 10 | CH-1 | /p/c1 | [ A-10, B-35 ] | B | 52 | CH-1 | /p/c2 | [ A-10 ] |
|
|
2 | CH-1, [ /p/c1, p/c2 ] | CH-1, [ /p/c2, /p/c3 ] | CH-1, [ /p/c3 ] |
Expand |
---|
|
Client Subscription |
| DMI Subscription | name | client-id | cm-handle | xpath | subscribers | A | 10 | CH-1 | /p/c1 | [ A-10 ] |
| CH-1 | /p/c2 | [ A-10 ] |
|
|
Expand |
---|
|
Client Subscription |
| DMI Subscription | name | client-id | cm-handle | xpath | subscribers | A | 10 | CH-1 | /p/c1 | [ A-10 ] | B | 52 | CH-1 | /p/c2 | [ A-10, B-35 ] |
| CH-1 | /p/c3 | [ B-35 ] |
|
|
3 | CH-1, [ /p/c1] CH-2, [ /p/c1] | CH-2, [ /p/c1] CH-3, [ /p/c1] | CH-3, [ /p/c1] |
Expand |
---|
|
Client Subscription |
| DMI Subscription | name | client-id | cm-handle | xpath | subscribers | A | 10 | CH-1 | /p/c1 | [ A-10 ] |
| CH-2 | /p/c1 | [ A-10 ] |
|
|
Expand |
---|
|
Client Subscription |
| DMI Subscription | name | client-id | cm-handle | xpath | subscribers | A | 10 | CH-1 | /p/c1 | [ A-10 ] | B | 52 | CH-2 | /p/c1 | [ A-10, B-35 ] |
| CH-3 | /p/c1 | [ B-35 ] |
|
|
4 | CH-1, [ /p/c1] | CH-1, [ /p/c1/gc1 ] | CH-1, [ /p/c1/gc1 ] (see issue #1) |
Expand |
---|
|
Client Subscription |
| DMI Subscription | name | client-id | cm-handle | xpath | subscribers | A | 10 | CH-1 | /p/c1 | [ A-10 ] |
|
|
Expand |
---|
|
Client Subscription |
| DMI Subscription | name | client-id | cm-handle | xpath | subscribers | A | 10 | CH-1 | /p/c1 | [ A-10 ] | B | 52 | CH-1 | /p/c1/gc1 | [ B-35 ] |
|
|
...
Gliffy Diagram |
---|
macroId | 5140c401-0d13-44d2-8e83-0f485d3ef9d3 |
---|
displayName | Subscription Merge Example |
---|
name | Subscription Merge Example |
---|
pagePin | 46 |
---|
|
* Note: given the possible combinations the message to DMI needs to be able to specify different xpaths per cm-handle. So a more complex structure is needed for this even ie. an array of CM Handles objects each having their own list of (target) xpaths!
...