1+ <pipeline-properties xmlns =" http://marklogic.com/manage/pipeline/properties" >
2+ <pipeline-id >6600933789859022149</pipeline-id >
3+ <pipeline-name >Flexible Replication</pipeline-name >
4+ <pipeline-description >
5+ Attempts push replication if possible, otherwise updates document properties so that push or poll will occur later.
6+ </pipeline-description >
7+ <success-action >
8+ <module >/MarkLogic/cpf/actions/success-action.xqy</module >
9+ </success-action >
10+ <failure-action >
11+ <module >/MarkLogic/cpf/actions/failure-action.xqy</module >
12+ </failure-action >
13+ <state-transition >
14+ <annotation >
15+ Replicate a document and transition to state "replicated".
16+ </annotation >
17+ <state >http://marklogic.com/states/converted</state >
18+ <on-success >http://marklogic.com/states/replicated</on-success >
19+ <on-failure >http://marklogic.com/states/error</on-failure >
20+ <priority >9100</priority >
21+ <execute >
22+ <condition >
23+ <module >
24+ /MarkLogic/conversion/actions/conversion-source-condition.xqy
25+ </module >
26+ </condition >
27+ <action >
28+ <module >/MarkLogic/flexrep/actions/replication-action.xqy</module >
29+ </action >
30+ </execute >
31+ </state-transition >
32+ <state-transition >
33+ <annotation >
34+ Replicate a document and transition to state "replicated".
35+ </annotation >
36+ <state >http://marklogic.com/states/structured-xhtml</state >
37+ <on-success >http://marklogic.com/states/replicated</on-success >
38+ <on-failure >http://marklogic.com/states/error</on-failure >
39+ <priority >5000</priority >
40+ <default-action >
41+ <module >/MarkLogic/flexrep/actions/replication-action.xqy</module >
42+ </default-action >
43+ </state-transition >
44+ <state-transition >
45+ <annotation >
46+ Replicate a document and transition to state "replicated".
47+ </annotation >
48+ <state >http://marklogic.com/states/initial</state >
49+ <on-success >http://marklogic.com/states/replicated</on-success >
50+ <on-failure >http://marklogic.com/states/error</on-failure >
51+ <priority >5000</priority >
52+ <default-action >
53+ <module >/MarkLogic/flexrep/actions/replication-action.xqy</module >
54+ </default-action >
55+ </state-transition >
56+ <state-transition >
57+ <annotation >
58+ Replicate a document and transition to state "replicated".
59+ </annotation >
60+ <state >http://marklogic.com/states/entities/enriched</state >
61+ <on-success >http://marklogic.com/states/replicated</on-success >
62+ <on-failure >http://marklogic.com/states/error</on-failure >
63+ <priority >5000</priority >
64+ <default-action >
65+ <module >/MarkLogic/flexrep/actions/replication-action.xqy</module >
66+ </default-action >
67+ </state-transition >
68+ <state-transition >
69+ <annotation >
70+ Replicate a document and transition to state "replicated".
71+ </annotation >
72+ <state >http://marklogic.com/states/xinclude/expanded</state >
73+ <on-success >http://marklogic.com/states/replicated</on-success >
74+ <on-failure >http://marklogic.com/states/error</on-failure >
75+ <priority >5000</priority >
76+ <default-action >
77+ <module >/MarkLogic/flexrep/actions/replication-action.xqy</module >
78+ </default-action >
79+ </state-transition >
80+ <state-transition >
81+ <annotation >
82+ Replicate a document and transition to state "replicated".
83+ </annotation >
84+ <state >http://marklogic.com/states/alerted</state >
85+ <on-success >http://marklogic.com/states/replicated</on-success >
86+ <on-failure >http://marklogic.com/states/error</on-failure >
87+ <priority >5000</priority >
88+ <default-action >
89+ <module >/MarkLogic/flexrep/actions/replication-action.xqy</module >
90+ </default-action >
91+ </state-transition >
92+ <state-transition >
93+ <annotation >
94+ Replicate a document and transition to state "replicated".
95+ </annotation >
96+ <state >http://marklogic.com/states/property-updated</state >
97+ <on-success >http://marklogic.com/states/replicated</on-success >
98+ <on-failure >http://marklogic.com/states/error</on-failure >
99+ <priority >5000</priority >
100+ <default-action >
101+ <module >/MarkLogic/flexrep/actions/replication-action.xqy</module >
102+ </default-action >
103+ </state-transition >
104+ <state-transition >
105+ <annotation >
106+ Document has been updated: reprocess if need be. Note: the preconditions will avoid reprocessing of active documents, so we
107+ will avoid falling into a processing loop when the processing updates a document.
108+ </annotation >
109+ <state >http://marklogic.com/states/updated</state >
110+ <on-success >http://marklogic.com/states/initial</on-success >
111+ <on-failure >http://marklogic.com/states/error</on-failure >
112+ <priority >5000</priority >
113+ </state-transition >
114+ <status-transition >
115+ <annotation >
116+ Leave a bread crumb that the document has been deleted.
117+ </annotation >
118+ <status >deleted</status >
119+ <priority >5000</priority >
120+ <always >true</always >
121+ <default-action >
122+ <module >/MarkLogic/flexrep/actions/delete-action.xqy</module >
123+ </default-action >
124+ </status-transition >
125+ <event-transition >
126+ <annotation >
127+ Pull flexrep properties from prior version of document if needed.
128+ </annotation >
129+ <event >updated</event >
130+ <priority >5000</priority >
131+ <default-action >
132+ <module >
133+ /MarkLogic/flexrep/actions/on-event-pull-properties.xqy
134+ </module >
135+ </default-action >
136+ </event-transition >
137+ <event-transition >
138+ <annotation >
139+ Pull flexrep properties from prior version of document if needed.
140+ </annotation >
141+ <event >property-updated</event >
142+ <priority >5000</priority >
143+ <default-action >
144+ <module >
145+ /MarkLogic/flexrep/actions/on-event-pull-properties.xqy
146+ </module >
147+ </default-action >
148+ </event-transition >
149+ </pipeline-properties >
0 commit comments