Created
June 26, 2012 19:16
-
-
Save adamstrickland/2998167 to your computer and use it in GitHub Desktop.
sample "correlation service" configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<definitions> | |
<predicate-definition name="still-needs-demographics"> | |
<![CDATA[ | |
function (context, data) { | |
return context.requiresAdditionalInformation() && context.openInquiries().count === 0 && !data.hasDemographics(); | |
} | |
]]> | |
</predicate-definition> | |
</definitions> | |
<profiles> | |
<profile name="lead-gen-1" default="true"> | |
<sequential> | |
<inquiry provider="clarity"/> | |
<guard> | |
<predicate> | |
<![CDATA[ | |
function (context) { | |
return context.requireAdditionalInformation(); | |
} | |
]]> | |
</predicate> | |
<action> | |
<parallel> | |
<inquiry provider="trans_union" /> | |
<inquiry provider="tele_track" /> | |
<inquiry provider="accurint" /> | |
</parallel> | |
</action> | |
</guard> | |
<guard> | |
<predicate> | |
<![CDATA[ | |
function (context, data) { | |
return context.requiresAdditionalInformation() && context.openInquiries().count === 0 && !data.hasDemographics(); | |
} | |
]]> | |
</predicate> | |
<action> | |
<parallel> | |
<inquiry provider="accuity" /> | |
<inquiry provider="c_l_verify" /> | |
<inquiry provider="data_x" /> | |
</parallel> | |
</action> | |
</guard> | |
<guard> | |
<predicate type="still-needs-demographics" /> | |
<action> | |
<parallel> | |
<inquiry provider="factor_trust" /> | |
<inquiry provider="intercept_e_f_t" /> | |
<inquiry provider="promo_code" /> | |
</parallel> | |
</action> | |
</guard> | |
<inquiry predicate-type="still-needs-demographics" provider="risk_score" /> | |
<inquiry predicate="function () { return false; }" provider="tc_tps" /> <!-- this one would never run --> | |
<inquiry predicate-type="still-needs-demographics" provider="rap_leaf" /> | |
</sequential> | |
</profile> | |
</profiles> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment