{"id":42172,"date":"2018-12-05T14:39:45","date_gmt":"2018-12-05T06:39:45","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=42172"},"modified":"2020-11-11T17:46:29","modified_gmt":"2020-11-11T09:46:29","slug":"where-to-start-a-process","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/sentinel-studio-primers\/where-to-start-a-process\/","title":{"rendered":"Where to Start a Process"},"content":{"rendered":"\n<p class=\"intro-text\">A process flows in a forward manner from left to right, following the path of the connected <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/sentinel-studio-features\/components-and-pins\/\">flow pins<\/a>. When the process encounters a component that does not have the data it requires, the process may temporarily flow backwards in order to obtain that data, and then will resume the forward flow.<\/p>\n<p class=\"intro-text\">A process can start from different points within the flow. Where you decide to start your process will depend on the order in which you want your data to be processed.<\/p>\n<p class=\"intro-text\">Let's use the following process to illustrate how this works. There are two useful start points in this process:<\/p>\n<p><strong>At the <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/component-logic-functions\/data\/#Get_Single\">Get Single<\/a> component for Temp 1<\/strong>:<\/p>\n<p class=\"intro-text\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-43033 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-31.png\" alt=\"\" width=\"900\" height=\"271\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-31.png 900w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-31-768x231.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-31-150x45.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-31-24x7.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-31-36x11.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-31-48x14.png 48w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p><strong>At the Get Single component for Temp 2<\/strong>:<\/p>\n<p class=\"intro-text\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-43034 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-32.png\" alt=\"\" width=\"896\" height=\"260\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-32.png 896w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-32-768x223.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-32-150x44.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-32-24x7.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-32-36x10.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-32-48x14.png 48w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/p>\n<p class=\"intro-text\">Both start points will process the data, however the result will be different for each start point. The following diagrams illustrate how the user process differs when you start at different points.<\/p>\n<h2 class=\"page-subheading\">Starting at Temp 1<\/h2>\n<p class=\"intro-text\"><strong>Temp 1 = 9, Temp 2 = 0. Expected result: Default state<\/strong><\/p>\n<p class=\"intro-text\"><strong>1<\/strong>. The data for <strong>Temp 1<\/strong> is retrieved first and is sent to the first output pin to a <strong>&gt;<\/strong> <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/component-logic-functions\/boolean\/\">Boolean<\/a> operator.<\/p>\n<p class=\"intro-text\"><strong>2-4<\/strong>. The Boolean operator needs a comparison, so it follows its other input pin backwards to retrieve the data for <strong>Temp 2<\/strong>.<\/p>\n<p class=\"intro-text\"><strong>5<\/strong>. When <strong>Temp 2<\/strong> is sent back to the Boolean operator, <strong>25 <\/strong>is added to it via the <strong>+<\/strong> <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/component-logic-functions\/math\/\">math<\/a> operator. The data for <strong>Temp 2 <\/strong>that is received by the Boolean operator is therefore <strong>25<\/strong>.<\/p>\n<p class=\"intro-text\"><strong>6<\/strong>. The Boolean operator then makes the comparison. Since <strong>Temp 1<\/strong> (9) is not greater than <strong>Temp 2<\/strong> (25), nothing happens. The process now ends because there is no further path to follow \u2014 the Flow Sequence component is missed because the Boolean operator does not flow backwards.<\/p>\n<p class=\"intro-text\">The logic in this process is such that it will never work as intended, because the starting point is in the wrong place.<\/p>\n<p class=\"intro-text\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-43035 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-33.png\" alt=\"\" width=\"897\" height=\"270\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-33.png 897w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-33-768x231.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-33-150x45.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-33-24x7.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-33-36x11.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-33-48x14.png 48w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/p>\n<h2 class=\"page-subheading\">Starting at Temp 2<\/h2>\n<p class=\"intro-text\"><strong>Temp 1 = 9, Temp 2 = 0. Expected result: Default state<\/strong><\/p>\n<p class=\"intro-text\"><strong>1<\/strong>. The value for <strong>Temp 2<\/strong> is retrieved first and is sent to the first output pin to a <strong>&gt;<\/strong> Boolean operator.<\/p>\n<p class=\"intro-text\"><strong>2-3<\/strong>. The Boolean operator needs a comparison, so it follows its other input pin backwards to retrieve the value for <strong>Temp 1<\/strong>.<\/p>\n<p class=\"intro-text\"><strong>4-5<\/strong>. The Boolean operator then makes the comparison. Since <strong>Temp 1 <\/strong>(9) is greater than <strong>Temp 2 <\/strong>(0), the <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/component-logic-functions\/flow\/#Flow_Sequence\">Flow Sequence<\/a> pin is triggered, and the process follows the first output pin.<\/p>\n<p class=\"intro-text\"><strong>6-7<\/strong>. The <strong>&gt;<\/strong> Boolean operator retrieves its inputs, <strong>Temp 1 <\/strong>and <strong>Temp 2<\/strong>. When <strong>Temp 2<\/strong> is sent back to the Boolean operator, <strong>25 <\/strong>is added to it via the <strong>+<\/strong> math operator. The value for <strong>Temp 2<\/strong> that is received by the Boolean operator is therefore <strong>25<\/strong>. The Boolean operator then makes the comparison. Since <strong>Temp 1 <\/strong>(9) is not greater than <strong>Temp 2<\/strong> (25), the process returns to the Flow Sequence, and the next output pin is followed.<\/p>\n<p class=\"intro-text\"><strong>8-9<\/strong>. The <strong>&gt;<\/strong> Boolean operator retrieves its inputs, <strong>Temp 1<\/strong> and <strong>Temp 2<\/strong>. When <strong>Temp 2 <\/strong>is sent back to the Boolean operator, <strong>10 <\/strong>is added to it via the <strong>+<\/strong> math operator. The value for <strong>Temp 2<\/strong> that is received by the Boolean operator is therefore 10. The Boolean operator then makes the comparison. Since <strong>Temp 1<\/strong> (9) is not greater than <strong>Temp 2<\/strong> (10), the process returns to the Flow Sequence, and the next output pin is followed.<\/p>\n<p class=\"intro-text\"><strong>10<\/strong>. The final output pin from the Flow Sequence produces a <strong>Default <\/strong>state.<\/p>\n<p class=\"intro-text\">The logic in this process works as intended, because the starting point is in the correct place.<\/p>\n<p class=\"intro-text\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-43036 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-34.png\" alt=\"\" width=\"897\" height=\"258\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-34.png 897w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-34-768x221.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-34-150x43.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-34-24x7.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-34-36x10.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2018\/12\/word-image-34-48x14.png 48w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/p>\n<p class=\"left-bar\">Related: <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/sentinel-studio-primers\/\">Sentinel Studio Primers<\/a>,\u00a0<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/creating-user-processes\/creating-a-new-user-process\/\">Creating a User Process<\/a>, <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/component-logic-functions\/\">Component Logic Functions<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article describes where to start a user process. A Sentinel process flows in a forward manner from left to right, following the path of the connected flow pins. When the process encounters a component that does not have the data it requires, the process may temporarily flow backwards in order to obtain that data, and then will resume the forward flow.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/sentinel\/sentinel-studio\/sentinel-studio-primers\/where-to-start-a-process\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":43038,"parent":42145,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[9],"tags":[732,731,733,726,694],"class_list":["post-42172","page","type-page","status-publish","has-post-thumbnail","hentry","category-tech-ref","tag-get-single","tag-process-flow","tag-start","tag-studio-sentinel","tag-user-process","Version-4-6-1","Product-sen"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/42172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=42172"}],"version-history":[{"count":1,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/42172\/revisions"}],"predecessor-version":[{"id":46307,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/42172\/revisions\/46307"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/42145"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/43038"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=42172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=42172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=42172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}