Overview
The Radix Device Management Platform has the Remote Execute option, which consists of command-line Android commands or scripts. There is also the Workflow option, which allows combining a few Remote Execute input events to automate more complex tasks. We will give a concrete example of creating such a workflow and executing it.
As an example, we will put together a workflow that goes to a particular website by combining remote input events:
- Open a browser on a remote device,
- Enter the selected URL in the address bar,
- Simulate an “Enter” click to go to the desired website.
In our example, we chose to open the website ESPN (www.espn.com) by combining remote input events.
We will do this in four steps:
- Step One: Selecting a device to which to send the Workflow
- Step Two: Creating a New Workflow
- Step Three: Create Remote Execute commands
- Step Four: Running the Workflow command
Step One: Select a Device to which to send the Workflow
1. In the Radix Device Management Platform, click on the Devices to open the Devices Table.
2. Click on the row of the device in the Devices Table.
The Device Dashboard opens.
3. In the Device Dashboard, click on Repositories actions.
Step Two: Create a New Workflow
1. In Repositories Actions, click on Workflow:
The Workflow Repository opens.
2. Click on Add New to create a new workflow. The New Workflow window opens:
3. Supply a Workflow name and description. We will call it View ESPN.
4. Click on the Commands icon in the sidebar menu, to open the Commands window:
5. In the Commands window, click on the Add Command button.
6. In the grid of commands that opens, select the Remote Execute button. The Remote Execute command allows you to create command line commands or compose scripts.
The Remote Execute Repository opens.
Step Three: Create Remote Execute commands
1. Click on Add New to create a new Remote Execute command.
2. Assign a name to the Remote Execute command. Our first command will use keyevent 84, which opens up a Google search bar.
3. Enter the command and arguments as in the screenshot below.
4. Click Confirm. This adds the “Open the Browser” command to the repository of Remote Execute commands.
5. Click on the tile “Open the Browser” and click Add.
Our new workflow now contains this remote execute command.
6. Click Add Command and select Remote Execute.
7. Click Add New in the Remote Execute window. The next command types the text of the ESPN URL (https://www.espn.com) in the browser’s address bar. (https://www.espn.com) in the browser Search bar.
8. Click Confirm. The repository of Remote Execute commands now contains the Open ESPN URL command.
9. Click on the Open ESPN URL command and click Add.
This adds the command to the Workflow.
10. Click Add command, and repeat the process to add the third command. The third command (input keyevent 66) functions as clicking Enter, to search for the ESPN website:
11. When we click Confirm and then add Works like Enter command, this final command will be added to the Workflow.
12. Click Confirm. Our new workflow (View ESPN) has been added to the repository of workflows.
Step Four: Running the Workflow command
1. In the Workflow repository, click on the View ESPN workflow, and click Apply.
2. You will get a confirmation that the workflow was sent to the remote device.
And the ESPN website’s homepage appears on the remote device. Success!