diff --git a/format/mechanisms/sync/pull/pull.pdf b/format/mechanisms/sync/pull/pull.pdf new file mode 100644 index 000000000..8a574e598 Binary files /dev/null and b/format/mechanisms/sync/pull/pull.pdf differ diff --git a/format/mechanisms/sync/pull/pull.png b/format/mechanisms/sync/pull/pull.png new file mode 100644 index 000000000..b09567c24 Binary files /dev/null and b/format/mechanisms/sync/pull/pull.png differ diff --git a/format/mechanisms/sync/pull/pull.svg b/format/mechanisms/sync/pull/pull.svg new file mode 100644 index 000000000..38028dedb --- /dev/null +++ b/format/mechanisms/sync/pull/pull.svg @@ -0,0 +1,2 @@ + +
Get event uuids
Get event uuids
Pull
Pull
Create external org
Create external org
event index json
event index json
Filter json on timestamp
Filter json on timestamp
Events 
left to 
pull?
[Not supported by viewer]
Event Distribution = SG?
<span>Event Distribution = SG?</span>
Pull event
Pull event
/events/index
/events/index
Yes
Yes
event json
event json
/events/view/uuid
/events/view/uuid
Start capture procedure
Start capture procedure
Org exists?
Org exists?
Search for org uuid locally
Search for org uuid locally
No
No
Yes
Yes
Call:
CaptureObjects
(event)
Call:<br>CaptureObjects<br>(event)
Capture Org
Capture Org
No
No
Capture Objects
Capture Objects
Event Distribution = SG?
Event Distribution = SG?
Call:
Capture SG
(event SG)
[Not supported by viewer]
Attributes left to capture?
Attributes left to capture?
Attribute
Distribution = 
SG?
[Not supported by viewer]
Call:
Capture SG
(attribute SG)
[Not supported by viewer]
Tags left to capture?
Tags left to capture?
Call:
Capture Tag
(event Tag)
[Not supported by viewer]
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No
No
Call:
Capture Org
(Event Orgc)
[Not supported by viewer]
Update event
Update event
Create passive SG
Create passive SG
SG exists?
SG exists?
Search for SG uuid locally
Search for SG uuid locally
No
No
Capture SG
Capture SG
Local
SG out of
date?
[Not supported by viewer]
Update SG metadata
Update SG metadata
SG
Orgs left to
capture?
[Not supported by viewer]
Call:
Capture org
(SG Org)
[Not supported by viewer]
SG
Servers left to capture
SG <br>Servers left to capture
Call:
Capture Server
(SG Server)
[Not supported by viewer]
Update
SG ID
Update <br>SG ID
No
No
No
No
Yes
Yes
Yes
Yes
Yes
Yes
No
No
Server exists?
Server exists?
Search for Server url locally
Search for Server url locally
No
No
Yes
Yes
Capture Server
Capture Server
Return Server ID
Return Server ID
Return false
Return false
Return
Org ID
[Not supported by viewer]
Is Return False?
Is Return False?
Remove Server from SG locally
Remove Server from SG locally
No
No
Yes
Yes
Create Tag
Create Tag
Tag exists?
Tag exists?
Search for Tag name locally
Search for Tag name locally
No
No
Yes
Yes
Capture Tag
Capture Tag
Return
Tag ID
[Not supported by viewer]
Save event
Save event
Event
UUID exists already?
Event <br>UUID exists already?
No
No
Set Attribute ID = old ID
Set Attribute ID = old ID
Call:
Capture SG
(event SG)
[Not supported by viewer]
New
Attributes left to capture?
New<br>Attributes left to capture?
Attribute
Distribution = 
SG?
[Not supported by viewer]
Call:
Capture SG
(attribute SG)
[Not supported by viewer]
Tags left to capture?
Tags left to capture?
Call:
Capture Tag
(event Tag)
[Not supported by viewer]
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No
No
Call:
Capture Org
(Event Orgc)
[Not supported by viewer]
Save Attribute
Save Attribute
Attribute UUID exists?
Attribute UUID exists?
Old Attribute in same event?
Old Attribute in same event?
No
No
Yes
Yes
Yes
Yes
No
No
No
No
Yes
Yes
Get proposals sorted by event UUID
Get proposals sorted by event UUID
Proposal list by event UUID
Proposal list by event UUID
/shadow_attributes/getProposalsByUuidList
/shadow_attributes/getProposalsByUuidList
Proposals
left to
check?
[Not supported by viewer]
Find proposal locally by proposal UUID
Find proposal locally by proposal UUID
If proposal
found and not outdated
If proposal <br>found and not outdated
If proposal
found
If proposal <br>found
Delete old proposal
Delete old proposal
Proposal is
edit to
attribute?
[Not supported by viewer]
Yes
Yes
Yes
Yes
No
No
No
No
Pull finished
Pull finished
Search for attribute with proposal Uuid
Search for attribute with proposal Uuid
Attribute UUID exists?
Attribute UUID exists?
Yes
Yes
Assign proposal to attribute
Assign proposal to attribute
Proposal is a new attribute proposal
Proposal is a new attribute proposal
Call:
Capture Org
(Proposal Org)
[Not supported by viewer]
Yes
Yes
No
No
Yes
Yes
No
No
MISP 1
MISP 1
MISP 2
MISP 2
\ No newline at end of file