<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Migrate running cases to new PMV</title><link>https://answers.axonivy.com/questions/4323/migrate-running-cases-to-new-pmv</link><description>&lt;p&gt;Hi Ivy team&lt;/p&gt;
&lt;p&gt;At the moment, we deploy our application with multiple PMVs, each PMV has its own running case. And now we change our mind, we don't want to deploy multiple PMV anymore, we want to make sure the Ivy engine contains only the lastest PMV. For that reason, we want to remove the old PMV first.&lt;/p&gt;
&lt;p&gt;But when we remove the deprecated pmv, adminUI throws the message that I can't remove deprecated PMV. We know that we should resolve all running tasks to make deprecated PMV become archived and removable. But the are a ton of running tasks for PMV. &lt;/p&gt;
&lt;p&gt;So our question is: Is there any way to remove/resolve those tasks automatically or at least migrate that task to the lastest PMV? Thank for any help&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/4323/migrate-running-cases-to-new-pmv" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 17 Jan 2020 02:30:05 -0500</lastBuildDate><item><title>Comment by Lukas Lieb on lphieu's question</title><link>https://answers.axonivy.com/questions/4323/migrate-running-cases-to-new-pmv#4324</link><description>&lt;p&gt;Hi
There is no way to migrate running cases to the new PMV.
You can do it manually over a workflow ui or automated with some art of process which sets every task in this pmv to destroy (there's an API ITask#destroy). Or may write an SQL Query, which sets all Tasks (Taskstate) for this specific ProcessModelVersion to 'Destroyed' (7). But write SQL queries can dangerous...&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Lukas&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lukas Lieb</dc:creator><pubDate>Fri, 17 Jan 2020 02:30:05 -0500</pubDate><guid>https://answers.axonivy.com/questions/4323/migrate-running-cases-to-new-pmv#4324</guid></item></channel></rss>