Configuring Your Integrated Development Environment (IDE) to Use Custom Steps
Custom steps, using the server-side API (SSA), gives you a flexible and powerful tool to use to extend your Services Builder projects by using the Java programming language within your tasks.
To successfully use custom steps you must set up your IDE to work with Task Builder for Screens. Task Builder is project based, as are most IDEs. It is important that both Task Builder and your IDE are pointing at the same project and working together.
When you create a project in Task Builder two directories are created automatically:
- <Install Location>\Attachmate\EAI\recordings\<project name>\ssa\classes for your output classes.
- <Install Location>\Attachmate\EAI\recordings\<project name>\ssa\sources for your input source code.
Where, by default, <Install Location> is "Program Files" and <project name> is the name of your Task Builder project.
|Configuring your IDE to work with custom steps
|Depending on your choice of IDE, these steps may vary.
- Create a new project in your IDE with the same name as your Task Builder project.
- Configure your IDE sources to point to the <Install Location>\Attachmate\EAI\recordings\<project name>\ssa\sources directory and configure the IDE ouput (classes) to point to the <Install Location>\Attachmate\EAI\recordings\<project name>\ssa\classes directory.
- Configure your IDE to import server-side API (SSA) libraries from <Install Location>\Attachmate\EAI\ScreenConnectors\lib\nav.jar.
- Depending on your IDE, you may have to configure the compiler to use the classes directory that you configured for output.
- After completing the above steps you should be able to create new custom step classes in your IDE, compile them, and have them automatically display in the Convert Step to Custom Step dialog box in Task Builder. Using this configuration you can switch between a design and test mode in Task Builder and an edit, build, and debug mode in your development environment.
Viewing Custom Step Execution in the Designer Studio Java Console
||Be sure to configure your IDE to generate debugging information in your compiled classes.
System.out.println statements in your Java code you can view custom step execution in the designer Java console.
|Enabling the Java Console
- Open <Install Location>\Attachmate\EAI\Common\ATMStudio.lp.
- Edit the file by changing the default value:
- to -
- Restart the Designer Studio.