<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Configure Path based on Extended Property field in ArcGIS Workflow Manager Questions</title>
    <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/configure-path-based-on-extended-property-field/m-p/1260550#M1814</link>
    <description>&lt;P&gt;I tried to reproduce your issue and could not get a boolean question to work. I tried "True", 'True' and True, as well as "0", '0' and 0 but none worked.&lt;/P&gt;&lt;P&gt;Instead, I created an Extended Property attribute with a domain of user1 and user2 (but you could use a field with Pass and Fail as the values). I tried a branching logic based on the usernames using the following and it routed along the correct path based on the user selection:&lt;/P&gt;&lt;P&gt;Proceed to Step A : jobExtendedProperty($job, 'attributes', 'assignment') == 'user1'&lt;/P&gt;&lt;P&gt;Proceed to Step B: jobExtendedProperty($job, 'attributes', 'assignment') == 'user2'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bbaker_tngeo_0-1677084385809.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63419i85B98CA2BABE3B1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bbaker_tngeo_0-1677084385809.png" alt="bbaker_tngeo_0-1677084385809.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2023 17:10:27 GMT</pubDate>
    <dc:creator>bbaker_tngeo</dc:creator>
    <dc:date>2023-02-22T17:10:27Z</dc:date>
    <item>
      <title>Configure Path based on Extended Property field</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/configure-path-based-on-extended-property-field/m-p/1260081#M1813</link>
      <description>&lt;P&gt;I am trying to create path logic using an arcade expression to take a specific answer from an extended property table.&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;jobExtendedProperty($job,'report_qc_revision','qcpassfail')=="True"&lt;/P&gt;&lt;P&gt;jobExtendedProperty($job,'report_qc_revision','qcpassfail')=='0'&lt;/P&gt;&lt;P&gt;jobExtendedProperty($job,'report_qc_revision','qcpassfail')==0&lt;/P&gt;&lt;P&gt;where the qcpassfail field is a Boolean. They all end up with "No paths match return code". I want to avoid a "Question" step as there are multiple fields for the qc step prior to moving to next step.&lt;/P&gt;&lt;P&gt;The other path logic I require that is failing is where there are 3 options (possibly more in future) that split the workflow. I have tried using a domain and using the same path logic as above, trying to use both the domain code (an integer) and the text value of the domain.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where am I going wrong?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 16:09:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/configure-path-based-on-extended-property-field/m-p/1260081#M1813</guid>
      <dc:creator>CSander</dc:creator>
      <dc:date>2023-02-21T16:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Path based on Extended Property field</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/configure-path-based-on-extended-property-field/m-p/1260550#M1814</link>
      <description>&lt;P&gt;I tried to reproduce your issue and could not get a boolean question to work. I tried "True", 'True' and True, as well as "0", '0' and 0 but none worked.&lt;/P&gt;&lt;P&gt;Instead, I created an Extended Property attribute with a domain of user1 and user2 (but you could use a field with Pass and Fail as the values). I tried a branching logic based on the usernames using the following and it routed along the correct path based on the user selection:&lt;/P&gt;&lt;P&gt;Proceed to Step A : jobExtendedProperty($job, 'attributes', 'assignment') == 'user1'&lt;/P&gt;&lt;P&gt;Proceed to Step B: jobExtendedProperty($job, 'attributes', 'assignment') == 'user2'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bbaker_tngeo_0-1677084385809.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63419i85B98CA2BABE3B1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bbaker_tngeo_0-1677084385809.png" alt="bbaker_tngeo_0-1677084385809.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 17:10:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/configure-path-based-on-extended-property-field/m-p/1260550#M1814</guid>
      <dc:creator>bbaker_tngeo</dc:creator>
      <dc:date>2023-02-22T17:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Path based on Extended Property field</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/configure-path-based-on-extended-property-field/m-p/1260621#M1815</link>
      <description>&lt;P&gt;I am still getting "No Paths Match Return Code"&lt;/P&gt;&lt;P&gt;Here are some screen shots of my process:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CSander_2-1677093396969.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63448iBDDAE6CB9428B528/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CSander_2-1677093396969.png" alt="CSander_2-1677093396969.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The path configuration to move to the next step is:&lt;/P&gt;&lt;P&gt;jobExtendedProperty($job,'report_qc_revision','qcpassfail')=='Pass'&lt;/P&gt;&lt;P&gt;(A fail would move to a different step not pictured above)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CSander_3-1677093527818.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63449i964FD4F8893012FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CSander_3-1677093527818.png" alt="CSander_3-1677093527818.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The branch split to the various reports can be an AND/OR situation - and may not happen at the same time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The process would move on and meet up from the report branches after they are loaded.&lt;/P&gt;&lt;P&gt;I feel like I am missing something really small and really annoying . . .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 19:21:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/configure-path-based-on-extended-property-field/m-p/1260621#M1815</guid>
      <dc:creator>CSander</dc:creator>
      <dc:date>2023-02-22T19:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Path based on Extended Property field</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/configure-path-based-on-extended-property-field/m-p/1260852#M1816</link>
      <description>&lt;P&gt;The only thing I can see potentially is that the code for your domain is not the same (e.g. 'yes' vs. 'Yes'). I ran through a test with the following setup:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bbaker_tngeo_0-1677158230016.png" style="width: 663px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63496i125A99874FBA5780/image-dimensions/663x105?v=v2" width="663" height="105" role="button" title="bbaker_tngeo_0-1677158230016.png" alt="bbaker_tngeo_0-1677158230016.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I have an Update Job Properties to select Yes or No for the 2 reports and then configured the paths with the expressions below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bbaker_tngeo_1-1677158319253.png" style="width: 651px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63497iCD10960F7BB9E5E0/image-dimensions/651x162?v=v2" width="651" height="162" role="button" title="bbaker_tngeo_1-1677158319253.png" alt="bbaker_tngeo_1-1677158319253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That is successfully routing to either Report 1 Step or Report 2 Step based on selecting Yes for the corresponding job property.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bbaker_tngeo_2-1677158410848.png" style="width: 574px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63498iC0EB85E039EE1309/image-dimensions/574x98?v=v2" width="574" height="98" role="button" title="bbaker_tngeo_2-1677158410848.png" alt="bbaker_tngeo_2-1677158410848.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It even works if both are updated to 'Yes':&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bbaker_tngeo_3-1677158459746.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63499i8ACC2E9A70AF615A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bbaker_tngeo_3-1677158459746.png" alt="bbaker_tngeo_3-1677158459746.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope that helps. Beyond that, I'm at a loss as to what to try next.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 13:24:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/configure-path-based-on-extended-property-field/m-p/1260852#M1816</guid>
      <dc:creator>bbaker_tngeo</dc:creator>
      <dc:date>2023-02-23T13:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Path based on Extended Property field</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/configure-path-based-on-extended-property-field/m-p/1302349#M1870</link>
      <description>&lt;P&gt;We had a very similar problem in directing path logic. I tryed many of the same things as you have, with a similar lack of success.It was a problem with how == &amp;gt;= is interpreted. see rest.&lt;/P&gt;&lt;P&gt;This is my answer to a similar problem see: &lt;A href="https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1237671#M1757" target="_blank"&gt;https://community.esri.com/t5/arcgis-workflow-manager-questions/quot-send-web-request-quot-step-error/m-p/1237671#M1757&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is the explanation from our (esri.australia technical rep Razi Mosadeghi). I have verified that the suggested fixes work&lt;/P&gt;&lt;P&gt;Please find below the explanation they have provided on why&amp;nbsp;Boolean(jobExtendedProperty($job, 'switchtable', 'nerrors')== 0)&amp;nbsp;Does not work:&lt;/P&gt;&lt;P&gt;It appears == 0 returns the string representation of the value here and not the actual value (an integer).&lt;/P&gt;&lt;P&gt;In addition, core Arcade logic is playing a role here as well. In Arcade, the &amp;gt; and &amp;lt; operations will first try to evaluate the result as a string value. If that fails (because you aren't using a string), it will then try to evaluate the result as a integer, which is what we are using here. The == function doesn't have that same logic. It tries to compare a string to a string and then will fail if it can't.&lt;/P&gt;&lt;P&gt;So, if you would like to use == 0 logic, we would need to do either one of the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use &lt;STRONG&gt;Number&lt;/STRONG&gt;(jobExtendedProperty($job, 'tablenew', 'arcade')) == 0 when using an integer value&lt;/LI&gt;&lt;LI&gt;Or, use jobExtendedProperty($job, 'tablenew', 'arcade')) == &lt;STRONG&gt;'0'&lt;/STRONG&gt; if you are ok with using a string representation of the value&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This is my answer to a similar problem&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 05:20:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/configure-path-based-on-extended-property-field/m-p/1302349#M1870</guid>
      <dc:creator>StefanDieters</dc:creator>
      <dc:date>2023-06-23T05:20:42Z</dc:date>
    </item>
  </channel>
</rss>

