<?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 How to get the current JobID and current StepID in ArcGIS Workflow Manager Questions</title>
    <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/how-to-get-the-current-jobid-and-current-stepid/m-p/598881#M1190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Workflow Manager, I want to execute a GPtool(JTXSteps.ExecuteGPTool) which requires current JobID and current StepID as input parameter. Kindly suggest how to fetch these values and pass the same arguments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jul 2019 05:00:41 GMT</pubDate>
    <dc:creator>DharmaRajan</dc:creator>
    <dc:date>2019-07-02T05:00:41Z</dc:date>
    <item>
      <title>How to get the current JobID and current StepID</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/how-to-get-the-current-jobid-and-current-stepid/m-p/598881#M1190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Workflow Manager, I want to execute a GPtool(JTXSteps.ExecuteGPTool) which requires current JobID and current StepID as input parameter. Kindly suggest how to fetch these values and pass the same arguments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 05:00:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/how-to-get-the-current-jobid-and-current-stepid/m-p/598881#M1190</guid>
      <dc:creator>DharmaRajan</dc:creator>
      <dc:date>2019-07-02T05:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the current JobID and current StepID</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/how-to-get-the-current-jobid-and-current-stepid/m-p/598882#M1191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;BR /&gt; &lt;BR /&gt;Normally, our &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/extensions/workflow-manager/tokens.htm"&gt;system of tokens&lt;/A&gt; could be passed as arguments to the step type. However, current step ID is not one of those, so we'll have to use our &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/workflow-manager/job-class.htm"&gt;Python API&lt;/A&gt;. I recommend running your GP tool as a python tool to make use of the currentSteps property to obtain the current step ID and the ID property to retrieve the job ID. You would then just need to pass these as parameters to the tool you are trying to execute. &lt;BR /&gt;&lt;BR /&gt;Let me know if you have further questions.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks!&lt;BR /&gt;Sam&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 17:26:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/how-to-get-the-current-jobid-and-current-stepid/m-p/598882#M1191</guid>
      <dc:creator>SamWest1</dc:creator>
      <dc:date>2019-07-02T17:26:47Z</dc:date>
    </item>
  </channel>
</rss>

