<?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 Betreff: Using a Button to Trigger the Creation of a Job for the Job Server in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9806251#M10189</link>
    <description>&lt;P&gt;You should use a job type name that the job processor can recognise, it has no idea what type of job is "myJob" and doesn't know how to deal with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can either use the built-in job types such as "autodesk.vault.dwf.create.ipt", or write a add-in and register your own job type, such as "myJob".&lt;/P&gt;</description>
    <pubDate>Fri, 16 Oct 2020 03:45:55 GMT</pubDate>
    <dc:creator>smilinger</dc:creator>
    <dc:date>2020-10-16T03:45:55Z</dc:date>
    <item>
      <title>Using a Button to Trigger the Creation of a Job for the Job Server</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/5235529#M10184</link>
      <description>&lt;P&gt;I have several custom jobs for the Job Processor that are currently triggered by lifecycle changes using the Lifecycle Event Editor. I would like to create a toolbar button that will trigger a specific job to be queued for the selected file or Item. I am not terribly familiar with the Vault API so if somebody could let me know if it is even possible and point me in the right direction I would appreciate it.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 20:39:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/5235529#M10184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-26T20:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Button to Trigger the Creation of a Job for the Job Server</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/5237731#M10185</link>
      <description>&lt;P&gt;Yes, that sounds possible:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="line-height: 15px;"&gt;You'll want to write a Vault Explorer&amp;nbsp;Extension to create teh toolbar button. &amp;nbsp;See:&amp;nbsp;&lt;A href="http://justonesandzeros.typepad.com/blog/2011/08/what-makes-a-vault-extension.html&amp;nbsp;" target="_blank"&gt;http://justonesandzeros.typepad.com/blog/2011/08/what-makes-a-vault-extension.html&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="line-height: 15px;"&gt;To queue the Job you'll use JobService.AddJob. &amp;nbsp;Here's some sample code using that method:&amp;nbsp;&lt;BR /&gt;&lt;A href="http://adndevblog.typepad.com/manufacturing/2012/05/add-property-synchronization-job.html&amp;nbsp;" target="_blank"&gt;http://adndevblog.typepad.com/manufacturing/2012/05/add-property-synchronization-job.html&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Hope that helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;- Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 18:44:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/5237731#M10185</guid>
      <dc:creator>smithmat</dc:creator>
      <dc:date>2014-08-27T18:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Button to Trigger the Creation of a Job for the Job Server</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/5239993#M10186</link>
      <description>&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the feedback. I will work on creating a Vault Explorer Extension.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:19:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/5239993#M10186</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-28T15:19:39Z</dc:date>
    </item>
    <item>
      <title>Betreff: Using a Button to Trigger the Creation of a Job for the Job Server</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9804267#M10187</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;same problem to me. I need to trigger a job on click. I used&amp;nbsp;WebServiceManager.JobService.AddJob.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;ISelection selection = e.Context.CurrentSelectionSet.First();

JobParam param1 = new JobParam();
param1.Name = "EntityId";
param1.Val = selection.Id.ToString();

JobParam param2 = new JobParam();
param2.Name = "EntityClassId";
param2.Val = "FILE";

VDF.Vault.Currency.Connections.Connection connection = 
         e.Context.Application.Connection;

connection.WebServiceManager.JobService.AddJob(
                    "myJob",
                    "My Job",
                    new JobParam[2] { param1, param1 },
                    1);&lt;/LI-CODE&gt;&lt;P&gt;The job appears in Vault's&amp;nbsp;&lt;SPAN&gt;Job Server Queue Dialog but it does not appear in the job processor. (Even after Pause/Continue).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looking at the help WebServiceManager.JobService.AddJob is "&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;Not intended for public use"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Is there a better way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;And, what vaues are recommended for the last param &lt;EM&gt;priority&lt;/EM&gt;&amp;nbsp; ? Is 1 high or low?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Christoph&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 08:49:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9804267#M10187</guid>
      <dc:creator>C-Hoppen</dc:creator>
      <dc:date>2020-10-15T08:49:10Z</dc:date>
    </item>
    <item>
      <title>Betreff: Using a Button to Trigger the Creation of a Job for the Job Server</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9804391#M10188</link>
      <description>&lt;P&gt;Additional information: debugging the job shows the following:&lt;/P&gt;&lt;P&gt;After Pause/Continue the&amp;nbsp;OnJobProcessorWake is fired and immediately after that&amp;nbsp;OnJobProcessorSleep in fired.&lt;/P&gt;&lt;P&gt;It never reaches&amp;nbsp;public JobOutcome Execute.&lt;/P&gt;&lt;P&gt;C.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 09:41:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9804391#M10188</guid>
      <dc:creator>C-Hoppen</dc:creator>
      <dc:date>2020-10-15T09:41:40Z</dc:date>
    </item>
    <item>
      <title>Betreff: Using a Button to Trigger the Creation of a Job for the Job Server</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9806251#M10189</link>
      <description>&lt;P&gt;You should use a job type name that the job processor can recognise, it has no idea what type of job is "myJob" and doesn't know how to deal with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can either use the built-in job types such as "autodesk.vault.dwf.create.ipt", or write a add-in and register your own job type, such as "myJob".&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 03:45:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9806251#M10189</guid>
      <dc:creator>smilinger</dc:creator>
      <dc:date>2020-10-16T03:45:55Z</dc:date>
    </item>
    <item>
      <title>Subject: Using a Button to Trigger the Creation of a Job for the Job Server</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9808376#M10190</link>
      <description>&lt;P&gt;To complement the reply of&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/96220"&gt;@smilinger&lt;/a&gt;,&amp;nbsp;I recommend watching the short video on how to create and register custom Jobs:&amp;nbsp;&lt;A href="https://youtu.be/7CWGSSzHcBw" target="_blank"&gt;https://youtu.be/7CWGSSzHcBw&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And, I'd liked to pick-up the other questions of&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52458"&gt;@C-Hoppen&lt;/a&gt;&amp;nbsp;:&lt;/P&gt;
&lt;P&gt;- JobService class - public use: The JobService&lt;STRONG&gt;Base&lt;/STRONG&gt; class is not intended for public use, but you are encouraged using the &lt;STRONG&gt;JobService&lt;/STRONG&gt; class for your custom job extensions.&lt;/P&gt;
&lt;P&gt;- Job Priority: In theory, priority- 1- jobs will run before priority 2, 3, etc.. In production environments, the theory gets quickly overruled if you run more than one Job Processor, and each of them is designated to run specific jobs and not any. The article in the SDK Help discusses this in detail: "Job Queue Priority."&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2020 08:54:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9808376#M10190</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2020-10-17T08:54:05Z</dc:date>
    </item>
    <item>
      <title>Betreff: Using a Button to Trigger the Creation of a Job for the Job Server</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9810168#M10191</link>
      <description>&lt;P&gt;"my job" was just a place holder. Of course it's a registered job. It works well when changing revision state of a file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 08:24:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9810168#M10191</guid>
      <dc:creator>c_hoppen</dc:creator>
      <dc:date>2020-10-19T08:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Subject: Using a Button to Trigger the Creation of a Job for the Job Server</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9810178#M10192</link>
      <description>&lt;P&gt;The job is fired when using WebServiceManager.JobService.AddJob.&lt;/P&gt;&lt;P&gt;As I wrote, inside my job addin main class the&amp;nbsp;OnJobProcessorWake is fired and immediately after that OnJobProcessorSleep in fired.&lt;/P&gt;&lt;P&gt;It never reaches "public JobOutcome Execute".&lt;/P&gt;&lt;P&gt;Why?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 08:28:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9810178#M10192</guid>
      <dc:creator>c_hoppen</dc:creator>
      <dc:date>2020-10-19T08:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Subject: Using a Button to Trigger the Creation of a Job for the Job Server</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9810185#M10193</link>
      <description>&lt;P&gt;What I forgot to tell: "My Job" is the Export Sample from Markus' Github repository (&lt;A href="https://github.com/koechlm/Vault-Sample---InventorExportAnySampleJob" target="_blank"&gt;https://github.com/koechlm/Vault-Sample---InventorExportAnySampleJob&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 08:31:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9810185#M10193</guid>
      <dc:creator>c_hoppen</dc:creator>
      <dc:date>2020-10-19T08:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Subject: Using a Button to Trigger the Creation of a Job for the Job Server</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9812304#M10194</link>
      <description>&lt;P&gt;OK, If I got you right - the job works fine in case of a lifecycle transition submitted it. Now, you target a user submission like this: select one or multiple Inventor files and submit the job for these, right?&lt;/P&gt;
&lt;P&gt;My latest contribution to the &lt;A href="https://github.com/koechlm/Vault-Job-Processor---iLogic-Extension" target="_blank" rel="noopener"&gt;GitHub samples&lt;/A&gt; includes a sample to do this for the new iLogic Job submissions. In this extension, you find an Action menu item "Queue iLogic Job..." &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Queue_iLogic_Job.png" style="width: 327px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/833459i66B05F40409C1919/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Queue_iLogic_Job.png" alt="Queue_iLogic_Job.png" /&gt;&lt;/span&gt;You could use it as "Create STEP|JT|... export and allow the format as another user option to choose from.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW: the AU class IM468712 will talk through this iLogic Job extension sample.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 07:52:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/9812304#M10194</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2020-10-20T07:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Subject: Using a Button to Trigger the Creation of a Job for the Job Server</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/11119694#M10195</link>
      <description>&lt;P&gt;Hi Mr. Koechl ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope you are doing well! I am not able to find the Action menu item "Queue iLogic Job" in Vault Professional 2020. Is there another way to make it happen? Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 14:16:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/11119694#M10195</guid>
      <dc:creator>daniel.li89M5L</dc:creator>
      <dc:date>2022-04-21T14:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Subject: Using a Button to Trigger the Creation of a Job for the Job Server</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/11121328#M10196</link>
      <description>The 2020 branch did not include the user interactive job submission; I suggest using the latest codebase (2022).</description>
      <pubDate>Fri, 22 Apr 2022 05:43:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/using-a-button-to-trigger-the-creation-of-a-job-for-the-job/m-p/11121328#M10196</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2022-04-22T05:43:37Z</dc:date>
    </item>
  </channel>
</rss>

