This page is not yet translated, currently displaying the English original.
Import Workflow
PhoneGrid provides two ways to import workflow files. You can choose the appropriate import method based on your situation.
Import Entire Workflow
Click the [...] button in the top right corner of the [Edit Template] page and select "Import Workflow" to import an entire workflow. Note: Importing an entire workflow will overwrite the current workflow being edited.
Insert a Workflow Segment
When adding a node, you can select "Import". Choosing a specific node to import will bring in both the initialized configuration and the workflow segment.
Follow the process below: open the Chrome browser, visit the official PhoneGrid website, then scroll the page. This simple workflow is configured as follows. You can copy it and run it as a test in PhoneGrid RPA.
%2Fimage%2Frpa_using%2520rpa%2Fflow.png)
{
"nodes": [
{
"id": "start_ChODF",
"type": "start",
"data": {
"title": "1. Initialization"
},
"blocks": []
},
{
"id": "openApp_m6648",
"type": "openApp",
"data": {
"title": "2. Launch App",
"inputsValues": {
"packageName": {
"type": "constant",
"content": "com.android.chrome",
"schema": {
"type": "string"
}
},
"uri": {
"type": "constant",
"content": "https://www.PhoneGrid.com/",
"schema": {
"type": "string"
}
}
},
"inputs": {
"type": "object",
"required": [
"packageName"
],
"properties": {
"packageName": {
"type": "string"
},
"uri": {
"type": "string"
}
}
},
"outputs": {}
},
"blocks": []
},
{
"id": "waitTime_YfvL7",
"type": "waitTime",
"data": {
"title": "3. Wait",
"inputsValues": {
"delayType": {
"type": "constant",
"content": "fixed"
},
"waitTime": {
"type": "constant",
"content": 3000,
"schema": {
"type": "integer",
"extra": {
"formComponent": "TimeInput",
"hidden": false
}
}
},
"randomRange": {
"type": "constant",
"content": {
"min": {
"type": "constant",
"content": 0
},
"max": {
"type": "constant",
"content": 1000
}
}
}
},
"inputs": {
"type": "object",
"required": [
"delayType",
"waitTime",
"randomRange"
],
"properties": {
"delayType": {
"type": "string",
"extra": {
"formComponent": "SelectInput"
}
},
"waitTime": {
"type": "integer",
"extra": {
"formComponent": "TimeInput",
"hidden": false
}
},
"randomRange": {
"type": "object",
"extra": {
"formComponent": "RangeInput",
"suffix": "ms",
"hidden": true
}
}
}
},
"outputs": {}
},
"blocks": []
},
{
"id": "swipe_PmyTm",
"type": "swipe",
"data": {
"title": "4. Swipe Page",
"inputsValues": {
"swipeType": {
"type": "constant",
"content": "coordinate"
},
"startCoordinate": {
"type": "constant",
"content": {
"x": {
"type": "constant",
"content": 500,
"schema": {
"type": "integer"
}
},
"y": {
"type": "constant",
"content": 1416,
"schema": {
"type": "integer"
}
}
}
},
"endCoordinate": {
"type": "constant",
"content": {
"x": {
"type": "constant",
"content": 500,
"schema": {
"type": "integer"
}
},
"y": {
"type": "constant",
"content": 1000,
"schema": {
"type": "integer"
}
}
}
},
"refElement": {
"type": "constant",
"content": ""
},
"direction": {
"type": "constant",
"content": "up"
},
"randomRange": {
"type": "constant",
"content": 0
},
"duration": {
"type": "constant",
"content": 300
},
"delayTime": {
"type": "constant",
"content": 0
},
"simulate": {
"type": "constant",
"content": false
}
},
"inputs": {
"type": "object",
"required": [
"swipeType",
"startCoordinate",
"endCoordinate",
"refElement",
"direction",
"randomRange",
"duration",
"delayTime"
],
"properties": {
"swipeType": {
"type": "string",
"extra": {
"formComponent": "SelectInput"
}
},
"startCoordinate": {
"type": "object",
"extra": {
"formComponent": "CoordinateInput",
"hidden": false
}
},
"endCoordinate": {
"type": "object",
"extra": {
"formComponent": "CoordinateInput",
"hidden": false
}
},
"refElement": {
"type": "elementObject",
"extra": {
"formComponent": "ElementObjectSelector",
"hidden": true
}
},
"direction": {
"type": "string",
"extra": {
"formComponent": "SelectInput",
"hidden": true
}
},
"randomRange": {
"type": "integer",
"extra": {
"formComponent": "PXInput",
"hidden": false
}
},
"duration": {
"type": "integer",
"extra": {
"formComponent": "TimeInput"
}
},
"delayTime": {
"type": "integer",
"extra": {
"formComponent": "TimeInput"
}
},
"simulate": {
"type": "boolean",
"extra": {
"formComponent": "Switch"
}
}
}
},
"outputs": {}
},
"blocks": []
},
{
"id": "swipe_rxOqptE0JS5LREf9Up_Lo",
"type": "swipe",
"data": {
"title": "5. Swipe Page",
"inputsValues": {
"swipeType": {
"type": "constant",
"content": "coordinate"
},
"startCoordinate": {
"type": "constant",
"content": {
"x": {
"type": "constant",
"content": 500,
"schema": {
"type": "integer"
}
},
"y": {
"type": "constant",
"content": 1416,
"schema": {
"type": "integer"
}
}
}
},
"endCoordinate": {
"type": "constant",
"content": {
"x": {
"type": "constant",
"content": 500,
"schema": {
"type": "integer"
}
},
"y": {
"type": "constant",
"content": 1000,
"schema": {
"type": "integer"
}
}
}
},
"refElement": {
"type": "constant",
"content": ""
},
"direction": {
"type": "constant",
"content": "up"
},
"randomRange": {
"type": "constant",
"content": 0
},
"duration": {
"type": "constant",
"content": 300
},
"delayTime": {
"type": "constant",
"content": 0
},
"simulate": {
"type": "constant",
"content": false
}
},
"inputs": {
"type": "object",
"required": [
"swipeType",
"startCoordinate",
"endCoordinate",
"refElement",
"direction",
"randomRange",
"duration",
"delayTime"
],
"properties": {
"swipeType": {
"type": "string",
"extra": {
"formComponent": "SelectInput"
}
},
"startCoordinate": {
"type": "object",
"extra": {
"formComponent": "CoordinateInput",
"hidden": false
}
},
"endCoordinate": {
"type": "object",
"extra": {
"formComponent": "CoordinateInput",
"hidden": false
}
},
"refElement": {
"type": "elementObject",
"extra": {
"formComponent": "ElementObjectSelector",
"hidden": true
}
},
"direction": {
"type": "string",
"extra": {
"formComponent": "SelectInput",
"hidden": true
}
},
"randomRange": {
"type": "integer",
"extra": {
"formComponent": "PXInput",
"hidden": false
}
},
"duration": {
"type": "integer",
"extra": {
"formComponent": "TimeInput"
}
},
"delayTime": {
"type": "integer",
"extra": {
"formComponent": "TimeInput"
}
},
"simulate": {
"type": "boolean",
"extra": {
"formComponent": "Switch"
}
}
}
},
"outputs": {}
},
"blocks": []
},
{
"id": "end_Ln73W",
"type": "end",
"data": {
"title": "6. Stop",
"inputsValues": {
"status": {
"type": "constant",
"content": "success"
},
"message": {
"type": "constant",
"content": ""
}
},
"inputs": {
"type": "object",
"required": [
"status"
],
"properties": {
"status": {
"type": "string",
"extra": {
"formComponent": "SelectInput"
}
},
"message": {
"type": "string",
"extra": {
"formComponent": "TextAreaInput"
}
}
}
},
"outputs": {
"type": "object",
"properties": {
"result": {
"type": "string"
}
}
}
},
"blocks": []
}
],
"variables": {
"type": "object",
"properties": {}
},
"editorVersion": 2,
"editorParametersVersion": 1
}On This Page
