<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to set a session attribute in a PI java bean class?</title><link>https://answers.axonivy.com/questions/353/how-to-set-a-session-attribute-in-a-pi-java-bean-class</link><description>&lt;p&gt;Is there a possibility to set a session attribute in a Java class (which is used in a PI)?&lt;br&gt;
&lt;br&gt;
In a JSP page I can set a session attribute with &lt;code&gt;ivy.setSessionAttribut()&lt;/code&gt;.&lt;br&gt;
&lt;br&gt;
Unfortunately the &lt;code&gt;IvyObject&lt;/code&gt; in the Java class does not have this method?! &lt;br&gt;
&lt;br&gt;
How to do this?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/353/how-to-set-a-session-attribute-in-a-pi-java-bean-class" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 27 May 2010 03:00:02 -0400</lastBuildDate><item><title>Answer by Christian Strebel</title><link>https://answers.axonivy.com/questions/353/how-to-set-a-session-attribute-in-a-pi-java-bean-class/354</link><description>&lt;p&gt;You can use the method &lt;code&gt;getProcessEngineHook()&lt;/code&gt; of the &lt;code&gt;IvyObject&lt;/code&gt; object. The process engine hook has then the methods &lt;code&gt;setSessionAttribut(...)&lt;/code&gt; und &lt;code&gt;getSessionAttribut(...)&lt;/code&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Thu, 27 May 2010 03:00:02 -0400</pubDate><guid>https://answers.axonivy.com/questions/353/how-to-set-a-session-attribute-in-a-pi-java-bean-class/354</guid></item></channel></rss>