<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Threads and the Ivy Object</title><link>https://answers.axonivy.com/questions/1189/threads-and-the-ivy-object</link><description>&lt;p&gt;I want to execute some tasks in the background. I used java threads but I get this exception.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ch.ivyteam.ivy.environment.EnvironmentNotAvailableException: Access to ivy environment outside a process request thread is not possible.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Is there an ivy thread i can use or is it simply not possible?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1189/threads-and-the-ivy-object" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 06 Mar 2015 14:41:14 -0500</lastBuildDate><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/1189/threads-and-the-ivy-object#1218</link><description>&lt;p&gt;but the start will run with a request context therefore you should be able to start a background thread in the script step...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 06 Mar 2015 14:41:14 -0500</pubDate><guid>https://answers.axonivy.com/questions/1189/threads-and-the-ivy-object#1218</guid></item><item><title>Comment by HaraldWeber on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/1189/threads-and-the-ivy-object#1211</link><description>&lt;p&gt;That's a timer. But I need threading for parallel execution.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">HaraldWeber</dc:creator><pubDate>Thu, 05 Mar 2015 18:20:45 -0500</pubDate><guid>https://answers.axonivy.com/questions/1189/threads-and-the-ivy-object#1211</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1189/threads-and-the-ivy-object/1207</link><description>&lt;p&gt;You could work around the problem by using the &lt;strong&gt;AutoProcessStartEventBean&lt;/strong&gt;. It starts a request with correct context and you can configure how often this system-task should run.&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/autoProcessStartBean.png"&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/autoProcessStartBeanTimeConfig.png"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 05 Mar 2015 12:24:57 -0500</pubDate><guid>https://answers.axonivy.com/questions/1189/threads-and-the-ivy-object/1207</guid></item></channel></rss>