Nicolas Goutte Posted October 18, 2021 Share Posted October 18, 2021 Is there a way to know that a code is called in the middle of a migration or in middle of a Batch Convert? (Both, Migration or Batch Convert, started by a user, not by our code. Therefore I do not have the option of giving a callback to the Batch Convert, as when I call the corresponding SDK call.) Quote Link to comment
JBenghiat Posted October 18, 2021 Share Posted October 18, 2021 There is a migration interface. I haven’t implemented it, so I don’t know is you can easily find it in the SDK — I know I have it in an email somewhere. You can also either call the file up-convert interface or listen for the plug-in update event — I presume handling would be the same whether called for an individual file or a batch convert. Quote Link to comment
Nicolas Goutte Posted October 20, 2021 Author Share Posted October 20, 2021 On 10/18/2021 at 4:49 PM, JBenghiat said: There is a migration interface. I haven’t implemented it, so I don’t know is you can easily find it in the SDK — I know I have it in an email somewhere. You can also either call the file up-convert interface or listen for the plug-in update event — I presume handling would be the same whether called for an individual file or a batch convert. I know only interfaces for handling a plug-ins' part of a migration. However that does not help me, as Batch Convert is triggered by the library conversion part of the migration, something which is pure VW code. Quote Link to comment
JBenghiat Posted October 20, 2021 Share Posted October 20, 2021 If the plug-in has its own version control, you can hook the kNotifyPlugInObjectUpdate notification in update support. But that requires you to check the plug-in instance to determine if it needs upgrading, for example a version field or the absence of data that gets auto-filled on first run. You can also use IProviderSaveCleaner to trigger actions just before save, though I believe this is more geared towards reverse translation than forwards translation. I have not tested either of these with the batch conversion process. Quote Link to comment
Nicolas Goutte Posted October 21, 2021 Author Share Posted October 21, 2021 OK, thank you for your ideas. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.