Questions Tagged With ivy6x-migrationhttps://answers.axonivy.com/tags/ivy6x-migration/?type=rss&user=A1234questions tagged <span class="tag">ivy6x-migration</span>enMon, 14 Dec 2015 15:03:18 -0500getProcessElement() not found when migrating to Ivy 6https://answers.axonivy.com/questions/1592/getprocesselement-not-found-when-migrating-to-ivy-6<p>Hello,</p> <p>While testing migration of various projects to Ivy 6.0, I encountered a problem with a method that does not exist anymore.</p> <pre><code> /** * Find the current process name. * * @return fully qualified process name * @throws Exception */ public static String getName() throws Exception { return SecurityManagerFactory.getSecurityManager().executeAsSystem(new Callable&lt;String&gt;() { public String call() { IProcess process = ProcessNavigationUtil.getProcess(MetaData.getProcessElement()); if (process != null) return process.getPath(); return null; } }); } </code></pre> <p>In the previous code, the method <strong>MetaData.getProcessElement()</strong> is not found. By looking in Ivy 5.1.7, it was implemented as:</p> <pre><code> public static ZObject getProcessElement() { return (ZObject)IvyThreadContext.getIvyThreadLocalValue("processElement"); } </code></pre> <p>Now the method has been removed, and a new method <strong>getProcessElementId()</strong> was added, but with a new signature:</p> <pre><code> public static PID getProcessElementId() { return (PID)IvyThreadContext.getIvyThreadLocalValue("processElement"); } </code></pre> <p>I didn't found this change in the migration documentation. Can I know the reason for removing the previous method and what are the alternative in order to get the current process name? Thanks.</p>A1234Mon, 14 Dec 2015 15:03:18 -0500https://answers.axonivy.com/questions/1592/getprocesselement-not-found-when-migrating-to-ivy-6ivy6x-migration