<?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: job processor - Vault - PLM integration. in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13292141#M283</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have something that differentiates a top-level assembly from all the other parts/assemblies - such as a property or category - you could have some logic like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;if (identifier = "TopLevel") {
  // Walk the assembly tree
  // Export the STEP files
  // Set the status
}
else {
  // Set the job status to Success
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could handle all your other logic in the "if" clause&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a bit simplistic, but the approach should work&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2025 04:01:40 GMT</pubDate>
    <dc:creator>Nick_Hall</dc:creator>
    <dc:date>2025-01-31T04:01:40Z</dc:date>
    <item>
      <title>job processor - Vault - PLM integration.</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13290761#M282</link>
      <description>&lt;P&gt;We are using the Job Processor to release file to our PLM system (ARAS).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is based on Item State changes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ie user set the Item state to "&lt;STRONG&gt;Release to Aras&lt;/STRONG&gt;". For an assembly this create one entry in the job queue for each file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job Processor picks jobs accordingly starting Top Down from assembly.&lt;BR /&gt;1 job:&lt;BR /&gt;- Opening the assembly,&lt;BR /&gt;- exports the step file,&lt;BR /&gt;- closes the assembly,&lt;BR /&gt;- updates the Item state in Vault to "&lt;STRONG&gt;Released&lt;/STRONG&gt;",&lt;BR /&gt;2 job:&lt;BR /&gt;- Opening the part file&lt;BR /&gt;- export step&lt;BR /&gt;- update the item state to "Released"&lt;BR /&gt;- close&lt;BR /&gt;-- Etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even though it is working,&amp;nbsp;there are a couple of caveats:&lt;BR /&gt;&lt;STRONG&gt;Performance&lt;/STRONG&gt;: When opening the top assembly, all files are already in memory, and it would be much faster to just travers through the assembly and generate all the files in one go.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error handling&lt;/STRONG&gt;:&lt;BR /&gt;- If there is an error when handling a sub part then the main assembly should not be released, everything should go back to previous state.&lt;BR /&gt;- The entire batch of step files should not be send to the PLM system, before we know everything is ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on how to handle this? Ideally we want to release the Main assembly with all its sub-components in one go. But the Item state change seems to be a bad option for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 14:28:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13290761#M282</guid>
      <dc:creator>mchi_topsoe</dc:creator>
      <dc:date>2025-01-30T14:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: job processor - Vault - PLM integration.</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13292141#M283</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have something that differentiates a top-level assembly from all the other parts/assemblies - such as a property or category - you could have some logic like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;if (identifier = "TopLevel") {
  // Walk the assembly tree
  // Export the STEP files
  // Set the status
}
else {
  // Set the job status to Success
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could handle all your other logic in the "if" clause&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a bit simplistic, but the approach should work&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 04:01:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13292141#M283</guid>
      <dc:creator>Nick_Hall</dc:creator>
      <dc:date>2025-01-31T04:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: job processor - Vault - PLM integration.</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13295410#M284</link>
      <description>&lt;P&gt;Hi Nick&lt;/P&gt;&lt;P&gt;Thanks for your suggestion, but i can not mark individual components differently. there can also be cases where i actually do want to only check in a sub element.&amp;nbsp;&lt;BR /&gt;The approach i will take, is to start by changing the state. Then the user should run a single command. This will then validate that&amp;nbsp;components are released. After this start call the job processor to start on the top assembly only.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Unfortunately this requires two actions for the user. But i can not see how else it can be done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2025 15:24:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13295410#M284</guid>
      <dc:creator>mchi_topsoe</dc:creator>
      <dc:date>2025-02-02T15:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: job processor - Vault - PLM integration.</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13298487#M285</link>
      <description>&lt;P&gt;An alternate option might be implementing an event handler on the lifecycle state change to Released: this handler runs on the success of the top assembly only and submits the job to transfer. It also might add a user input action asking to transfer Yes/No.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 08:55:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13298487#M285</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2025-02-04T08:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: job processor - Vault - PLM integration.</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13298537#M286</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Markus.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you mean a client event handler?&lt;/P&gt;&lt;P&gt;Can the event handler detect the &lt;STRONG&gt;Top-Assembly?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When the user clicks on OK, the files state gets changed, then the event is triggered =&amp;gt; we send one single job to the queue?&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;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mchi_topsoe_1-1738660792289.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1462453iF85F3CDCA9E86125/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mchi_topsoe_1-1738660792289.png" alt="mchi_topsoe_1-1738660792289.png" /&gt;&lt;/span&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 09:23:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13298537#M286</guid>
      <dc:creator>mchi_topsoe</dc:creator>
      <dc:date>2025-02-04T09:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: job processor - Vault - PLM integration.</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13299964#M287</link>
      <description>&lt;P&gt;Hi Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With Markus' idea, the arguments passed to the event handler will contain an array of all the changed state items.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would need to check which one has no parents, which will be the top-level assembly. You might have to use&amp;nbsp;GetItemBOMByItemIdAndDate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you add one job to the&amp;nbsp; queue, passing the Item ID as a parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nick&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 21:10:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13299964#M287</guid>
      <dc:creator>Nick_Hall</dc:creator>
      <dc:date>2025-02-04T21:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: job processor - Vault - PLM integration.</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13300587#M288</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7162092"&gt;@Nick_Hall&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/33301"&gt;@Markus.Koechl&lt;/a&gt;&amp;nbsp;Thanks for your support:-)&lt;/P&gt;&lt;P&gt;Much appreciated.&lt;/P&gt;&lt;P&gt;/Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 06:17:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/job-processor-vault-plm-integration/m-p/13300587#M288</guid>
      <dc:creator>mchi_topsoe</dc:creator>
      <dc:date>2025-02-05T06:17:55Z</dc:date>
    </item>
  </channel>
</rss>

