Migrating QIK API Custom Activities

To migrate existing Opalis-compatible source code to be compatible with Orchestrator:

NOTE: The following procedure will modify your source code. It is your responsibility to ensure that you maintain a backup copy of your source code in the event of an error in the script or other process!

  1. If your source code is maintained under a source control program, ensure that your latest versions are checked in and saved. If you are not using a source control program, make a backup copy of your source code and store it in a separate directory.
  2. Obtain the migration script (“QIKtoSCO-Migration.ps1”) from the download page here:  http://orchestrator.codeplex.com/releases/view/72944
  3. Open the PowerShell Script Editor:  Click Start > All Programs > Accessories > Windows PowerShell > Windows PowerShell ISE.
  4. Open the script in the editor by clicking File > Open and then browsing to and selecting the QIKtoSCO-Migration.ps1 file. The script should be displayed in a tab in the script pane.
  5. Run the script using the green arrow icon in the toolbar. This loads the functions of the script in memory.
  6. Locate the root directory of the source code project you wish to migrate and note the full path.
  7. In the Command Pane of the PowerShell editor, type:   ReplaceSDKText –dirname “<dir>”  (replacing <dir> with the full or relative path to the root of the project in step 6).
  8. As the script runs, it will display a list of all files scanned and the files that were changed.. Note that not all files that are scanned will have changes.
  9. When the process is complete, you should review the output window to ensure that no errors occurred. If any errors did occur, you may need to manually remediate those issues. If the errors were substantial, you may need to re-copy the source files into that location and re-run the script to migrate the code.
  10. When migration is complete and you have fixed any errors, close the PowerShell ISE application and return to your source code editor.
  11. Perform a build with the updated source code. Find and fix any errors in the code.

Note: One issue you are likely to encounter is that while the script updated any references in .csproj files to the Opalis.QuickIntegrationKit.dll so it now points to the new Microsoft.SystemCenter.Orchestrator.Integration.dll file, the new file must physically exist in the directory where the previous assembly was located. Simply copy the new reference assembly to that directory, or you can update the reference to point to a different location.

Migrating Custom Integration Packs

Once your assembly has been successfully compiled, you can insert that assembly into an Integration Pack. If you have an existing Integration Pack that you are simply updating to make compatible with Orchestrator, just follow the instructions in QIK Integration Pack Migration. If you are creating a new Integration Pack from this assembly, follow the instructions in Creating a New Integration Pack.

Last edited Sep 21, 2011 at 3:31 PM by rhearn, version 3


No comments yet.