{"id":702,"date":"2019-09-18T16:11:48","date_gmt":"2019-09-18T21:11:48","guid":{"rendered":"https:\/\/linux.asberry.org\/blog_tech\/?p=702"},"modified":"2024-05-14T09:13:48","modified_gmt":"2024-05-14T14:13:48","slug":"tcc-application-motive","status":"publish","type":"post","link":"https:\/\/asberry.org\/blog_tech\/?p=702","title":{"rendered":"TCC &#8211; Application Motive"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">So one of the more painful points of pulling application data is to get at the motive. It&#8217;s hard because the motive is literally buried in the history of the application profile. Here&#8217;s a complex projection that can help with the excruciating process.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; light: false; title: ; toolbar: true; notranslate\" title=\"\">\n&lt;quer:projection alias=&quot;CSWMotive&quot; xmlns:quer=&quot;http:\/\/www.taleo.com\/ws\/integration\/query&quot;&gt;\n  &lt;quer:query projectedClass=&quot;Application&quot; alias=&quot;sqMotives&quot; preventDuplicates=&quot;true&quot; pagingsize=&quot;1&quot;&gt;\n    &lt;quer:projections&gt;\n      &lt;quer:projection alias=&quot;Motive&quot;&gt;\n        &lt;quer:field path=&quot;ProfileInformation,HistoryItems,ApplicationTrackingCSWItem.CSWMotives,Mnemonic&quot;\/&gt;\n      &lt;\/quer:projection&gt;\n    &lt;\/quer:projections&gt;\n    &lt;quer:filterings&gt;\n      &lt;quer:filtering&gt;\n        &lt;quer:equal&gt;\n          &lt;quer:field path=&quot;Number&quot;\/&gt;\n          &lt;quer:field ownerQuery=&quot;MainQuery&quot; path=&quot;Number&quot;\/&gt;\n        &lt;\/quer:equal&gt;\n      &lt;\/quer:filtering&gt;\n      &lt;quer:filtering&gt;\n        &lt;quer:equal&gt;\n          &lt;quer:field path=&quot;ProfileInformation,HistoryItems,ApplicationTrackingCSWItem.Step,Mnemonic&quot;\/&gt;\n          &lt;quer:field ownerQuery=&quot;MainQuery&quot; path=&quot;CSWLatestStep,Mnemonic&quot;\/&gt;\n        &lt;\/quer:equal&gt;\n      &lt;\/quer:filtering&gt;\n      &lt;quer:filtering&gt;\n        &lt;quer:equal&gt;\n          &lt;quer:field path=&quot;ProfileInformation,HistoryItems,ApplicationTrackingCSWItem.Status,Mnemonic&quot;\/&gt;\n          &lt;quer:field ownerQuery=&quot;MainQuery&quot; path=&quot;CSWLatestStatus,Mnemonic&quot;\/&gt;\n        &lt;\/quer:equal&gt;\n      &lt;\/quer:filtering&gt;\n      &lt;quer:filtering&gt;\n        &lt;quer:equal&gt;\n          &lt;quer:field path=&quot;ProfileInformation,HistoryItems,ApplicationTrackingCSWItem.Reverted&quot;\/&gt;\n          &lt;quer:boolean&gt;false&lt;\/quer:boolean&gt;\n        &lt;\/quer:equal&gt;\n      &lt;\/quer:filtering&gt;\n      &lt;quer:filtering&gt;\n        &lt;quer:equal&gt;\n          &lt;quer:field path=&quot;ProfileInformation,HistoryItems,ApplicationTrackingHistoryItem.CreationDate&quot;\/&gt;\n          &lt;quer:query projectedClass=&quot;Application&quot; alias=&quot;sqMaxDate&quot; preventDuplicates=&quot;true&quot; pagingsize=&quot;1&quot;&gt;\n            &lt;quer:projections&gt;\n              &lt;quer:projection alias=&quot;Motive&quot;&gt;\n                &lt;quer:maximum&gt;\n                  &lt;quer:field path=&quot;ProfileInformation,HistoryItems,ApplicationTrackingHistoryItem.CreationDate&quot;\/&gt;\n                &lt;\/quer:maximum&gt;\n              &lt;\/quer:projection&gt;\n            &lt;\/quer:projections&gt;\n            &lt;quer:filterings&gt;\n              &lt;quer:filtering&gt;\n                &lt;quer:equal&gt;\n                  &lt;quer:field path=&quot;Number&quot;\/&gt;\n                  &lt;quer:field ownerQuery=&quot;MainQuery&quot; path=&quot;Number&quot;\/&gt;\n                &lt;\/quer:equal&gt;\n              &lt;\/quer:filtering&gt;\n              &lt;quer:filtering&gt;\n                &lt;quer:equal&gt;\n                  &lt;quer:field path=&quot;ProfileInformation,HistoryItems,ApplicationTrackingCSWItem.Step,Mnemonic&quot;\/&gt;\n                  &lt;quer:field ownerQuery=&quot;MainQuery&quot; path=&quot;CSWLatestStep,Mnemonic&quot;\/&gt;\n                &lt;\/quer:equal&gt;\n              &lt;\/quer:filtering&gt;\n              &lt;quer:filtering&gt;\n                &lt;quer:equal&gt;\n                  &lt;quer:field path=&quot;ProfileInformation,HistoryItems,ApplicationTrackingCSWItem.Status,Mnemonic&quot;\/&gt;\n                  &lt;quer:field ownerQuery=&quot;MainQuery&quot; path=&quot;CSWLatestStatus,Mnemonic&quot;\/&gt;\n                &lt;\/quer:equal&gt;\n              &lt;\/quer:filtering&gt;\n              &lt;quer:filtering&gt;\n                &lt;quer:equal&gt;\n                  &lt;quer:field path=&quot;ProfileInformation,HistoryItems,ApplicationTrackingCSWItem.Reverted&quot;\/&gt;\n                  &lt;quer:boolean&gt;false&lt;\/quer:boolean&gt;\n                &lt;\/quer:equal&gt;\n              &lt;\/quer:filtering&gt;\n            &lt;\/quer:filterings&gt;\n          &lt;\/quer:query&gt;\n        &lt;\/quer:equal&gt;\n      &lt;\/quer:filtering&gt;\n    &lt;\/quer:filterings&gt;\n  &lt;\/quer:query&gt;\n&lt;\/quer:projection&gt;\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>So one of the more painful points of pulling application data is to get at the motive. It&#8217;s hard because the motive is literally buried in the history of the application profile. Here&#8217;s a complex projection that can help with the excruciating process.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-702","post","type-post","status-publish","format-standard","hentry","category-tcc","author-aron"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4bBkH-bk","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=702"}],"version-history":[{"count":2,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/702\/revisions"}],"predecessor-version":[{"id":704,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/702\/revisions\/704"}],"wp:attachment":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}