Code EditorA code editor is a piece of code built in Visual Basic to do specific tasks related to certain fields or perform operations associated with the extracted fields of an application that could not be automated using out-of-box activities available in Automation Studio. You can use an existing code editor DLL or create a new code editor using an in-built script editor available with the Code Editor activity.
Using Code Editor Activity1. Within an automation process workflow, click Process Components in the Canvas Tools pane to expand the tool and view the associated activities. 2. Drag the Application activity and drop on to the Flowchart designer on the Canvas.
3. In the Application Type list, select WebApps. You must have at least one application added for it to appear in the list. 4. In the Select An Application list, select the application where you want to perform automation. Alternatively, you can add a new web application at this point of time. To add web application: a. In the Select An Application list, click Add New Application. The Add New Application dialog box appears.
b. In the Application Name field, enter a desired name of the web application. c. In the LoginURL field, enter the login URL of the web application you want to access. d. In the SearchURL field, enter the URL of the page that appears immediately post login. e. In the PreferredBrowser list, select the browser you prefer to launch the web application. By default, preference is set to InternetExplorer. Available options are: § InternetExplorer § FireFox § Chrome § InternetExplorerSelenuim § MicrosoftEdge f. Click SAVE. The web application is added. 5. Capture steps that you want to automate. If you want to perform specific tasks related to certain fields or perform operations associated with the extracted fields of the application that could not be automated using the out-of-box activity then follow the below steps to for configuring Code Editor activity in the automation process workflow. 6. Double click the Application activity, drag the Code Editor activity and drop inside the Application activity.
You can do one of the following: § Add an existing code editor DLL created in Visual Basic § Create a code editor DLL in Automaton Studio
Add an Existing Code Editor DLLPrerequisiteCreate the custom code in Visual Studio and add the ICodeEditor interface of Automation Studio to your project. Refer AE-RPA-Customization Guide.pdf / AE-Engage-Customization Guide.pdf to know the steps to create a code editor DLL file. a. Click +ADD DLL and then click File Location to browse and select an existing code editor DLL file. b. Click UPLOAD. The Upload Successful message is displayed.
c. Click
d. Browse and select the required class as per your requirement.
Create Code Editor DLL in Automation Studio
a. Click
the
b. Write the required code under the PerformAction method. The in-built script editor provides expression building aid using the IntelliSense feature of Automation Studio.
c. After the code editor operations are completed, raise the ExecutionCompleted event. d. Click
the
e. Click
the
f. Click COMPILE to check for any compilation error in the code. Errors found are highlighted; else, the No Compilation Errors message is displayed. Close the displayed message.
g. Click COMPILE & UPLOAD to upload and save the code editor DLL in the AssistEdge database. The Save Code Editor dialog box appears.
h. In the CODEEDITOR NAME field, enter a desired name of the code editor, and then click SAVE. The code editor is successfully uploaded and saved in the AssistEdge database.
7. Click
the
8. Click Add to add a new row for mapping the required parameter to store the output. 9. In the Parameter drop down list, select the parameter you want to map with the corresponding output defined in the code editor DLL. To use this option, the parameter must be pre-defined in the Parameter bar. Alternatively, you can also add a parameter at this point of time. Follow the mentioned to steps to add the parameter: a. Click Select or Add and then click Add. The Add new Argument dialog box appears.
b. In the Argument Name field, enter a desired name. c. In the DataType list select the type of parameter you want to create. Available options are - Text, Numeric, Decimal, Boolean and DateTime. As this parameter stores the output value, providing default value is not enabled. d. Click DELETE if you do not want to save the provided details or skip to step v. e. Click CONFIRM to save the mapping. 10. Repeat step 9 for multiple output received. 11. Select the Is C-View check box if you want to send the received output for customer view (available in the CView tab) in the AE Engage application 12. Enter a desired name in the C-View Text to display the output with the entered name, and then close the Output Parameters dialog box. The code editor for the required operation is configured.
Editing the Code Editor Created in Automation Studio
1. Select the required code editor created in Automation Studio. 2. Click
the a. Press the Ctrl+F keys from the keyboard to open the Find box.
b. In the Find box, enter the text that you want to find and then press Enter key. the required text gets highlighted. c. Press the Ctrl+H keys from the keyboard to open the Replace box. d. In the Replace box, enter the text to replace the exiting text.
e. Click Replace to replace the text. f. You can press Ctrl+Z and Ctrl+Y keys respectively to undo and redo any changes if required. 3. Once you have made changes in the code, compile and re-upload the code for the changes to get saved and reflected in the code editor. The code editor DLL is edited and saved in the AssistEdge database. Code Editor Activity PropertiesThe properties of a Code Editor activity are listed in the following table and can be edited in the Properties grid on the right panel.
|
On This Page Hide
Related Topics |