The Conversion Server, despite its name, is a great tool that can be leveraged for time consuming processes and not just file conversion tasks. This means that it can be used for really any asynchronous process.

This is best used for tasks that may take a bit longer than the standard method, allowing users to continue with other operations within Aras Innovator. We will be taking a look at an example in this blog post with a custom configuration and go over the steps to set this up on your own machines!

Configuration

In our example we will be creating a simple method to get a list of parts in a Part BOM assembly then send them in an email. Let’s begin with setting up our Conversion Rule, Conversion Type, and Conversion Task methods.

First we will create a Conversion Type that will be required for the Conversion Rule:

  1. Log into Aras Innovator as an Administrator and go to the TOC > Administration > File Handling and open up Conversion Types.
  2. Go ahead and click the add item button and create a new Conversion Type calling it something like “Part BOM Email”

Now we can create our Conversion Rule:

  1. Go back to the TOC > Administration then click File Handling and Conversion Rules
  2. Click the create new item button again then give the rule a name such as “Part BOM Rule”
  3. Set the Conversion Type to be “Part BOM Email”
  4. Click done to save the Conversion Rule

Once we have completed our configuration for the Conversion Rule we will setup a method to create the Conversion Tasks using the Conversion Rule ID and Conversion Manager Identity ID.

  1. Open up the TOC > Administration > Methods and create a new method
  2. Give your method a name such as “createPartBOMConversionTask”
  3. Note make sure that your method is set to server-side C#
  4. Copy the following code to your new method:
  5. gist.github.com/…/28849ea1031380a5c2596dee3e2f1598

Now we will need to grab the Conversion Rule ID and the Conversion Manager Identity:

  1. Go back to the TOC > Administration > File Handling > Conversion Rule and right click on the Part BOM Rule > click Share > Copy ID
  2. In the createPartBOMConversionTask method go ahead and add the Conversion Rule ID to the variable called “ruleID”
  3. Open the TOC > Administration > Identities then search for the Conversion Manager
  4. Follow the same steps to copy the ID from here and paste this into the variable called “conversionIdentityID”

In order to get the Part BOM names we will need to add another method triggered by a button we will configure on the Part form.

  1. Create another new method and call this "getPartBOM"; set this to Client-side Javascript
  2. Add the following code:
  3. gist.github.com/…/52883efe0b56998d9d2f5587b1393cdb
  4. Open the TOC > Administration > Forms and search for Part; then open it
  5. Hit Edit and in the editor add a button
  6. In the Field Label tab give the button a name “Part BOM Report”
  7. Go to the Field Event tab and select the add method button, then search for and add our "getPartBOM" method
  8. Select onClick for the event and hit the Done button to save the form

Last we will have to configure the ConversionServerConfig.xml in the root directory of your Aras Innovator instance (same place the InnovatorServerConfig.xml is found):

  1. Open this file up and we will need to add a Converter tag to the Converters section
  2. This will be in between the <ConversionServer> <Converters> tags as shown below:

Note we will be intentionally leaving out the DLL code for the purposes of just going over setup. If you would like to add your own custom DLL’s check out the “Example for Developing Conversion Server Tasks.pdf” in the CD image, specifically section “3 Creating the Example Converter DLL” to correctly create the Converter Class and “3.2 Build and Deploy the DLL” to create the DLL files.

In order to confirm that your configuration works correctly, do the following: 

  1. Go to the TOC > Administration > File Handling > Conversion Tasks
  2. Search by Rule for "Part BOM Rule" and you should see the created Conversion Task
  3. Note that it may say failed unless you have connected DLL code, but we should see the inputted Part BOM user data from our getPartBOM client method

Conclusion

Thank you for following along with this week’s blog, we hope this has given some new insight on how the Conversion Server works and other capabilities that may not have been previously know. Let us know if you have any questions about your setup or if your organization utilizes the Conversion Server for their own tasks!