Developing Custom Scripts in an IDE

To provide a better coding experience when creating custom scripts, we’ve created a way for you to write custom scripts from within an IDE. By following the steps below, you will be able to create custom scripts with typical IDE functionality such as syntax checking and auto-complete.

Note: IDEs will not be able to detect any methods that do not belong to the custom script’s whitelist. Even if the IDE does not display a syntax error, your script may still fail if it includes any methods that do not belong to your script’s whitelist.

If you are using IntelliJ:

  1. Retrieve the file WBPublApiForIDE.zip from the WFM artifact. You can contact Infor Support if you do not have access to this artifact.
  2. Create a new project in IntelliJ (For example, IntelliJ, Eclipse…).
  3. Extract the files in WBPublApiForIDE.zip into the source folder of the project.

If you are using Eclipse:

  1. Retrieve the file WBPublApiForIDE.zip from the WFM artifact. You can contact Infor Support if you do not have access to this artifact.
  2. Download the latest version of Eclipse
  3. Open Eclipse > Help > Eclipse Marketplace
  4. Search for "Groovy Development Tools" and click Install ( base feature should be sufficient ).
  5. Once the plugin has been installed, create a new Groovy Project.
  6. Extract the files in WBPublApiForIDE.zip into the src folder of the project.

Once the above steps are complete in your IDE, you should be able to create a groovy file in your project and write your custom scripts with the various supports provided by your IDE.

Note: This tool does not provide the functionality to execute your code from your IDE. Once you’ve completed your code in your IDE, you will need to copy and paste it into the application for further testing and debugging.