Methods
# inner appendRpaInputParameter(parameterObject, parsingMode) → {String}
Will append all provided parameters to a string which can be used to generate the RPAf file
Parameters:
Name | Type | Description |
---|---|---|
parameterObject |
Object | The parameter object to check and loop through |
parsingMode |
String | Indicates if the parser is used for the frontend or the local client |
String specifying the input parameters with the needed spacing in between
String
# async inner generateCodeForRpaTasks(elements, parameters, attributes, parsingMode) → {string}
Receives an array of all elements and generates the .robot code for all RPA Tasks
Parameters:
Name | Type | Description |
---|---|---|
elements |
Array | All the elements from the ssot |
parameters |
Array | Parameter objects of the robot |
attributes |
Array | Attribute objects of the robot |
parsingMode |
String | Indicates if the parser is used for the frontend or the local client |
Generated .robot code for the tasks section
string
# inner isAnRpaInstruction(currentElement) → {Boolean}
Checks whether the given element is of type instruction and contains rpa attributes
Parameters:
Name | Type | Description |
---|---|---|
currentElement |
Object | Element that will be checked |
Value specifies if object is of type instruction and contains rpa attributes
Boolean
# inner setOutputValue(paramObject) → {String}
Creates a prefix to catch the output variable of an activity, if one is present
Parameters:
Name | Type | Description |
---|---|---|
paramObject |
Object | Parameter object that will be checked and looped through |
String specifying the output variables name
String
# inner successorTasksExist(currentElement) → {Boolean}
Checks whether the given element has a successor element
Parameters:
Name | Type | Description |
---|---|---|
currentElement |
Object | Element to check |
Value specifies if element has a successor element
Boolean
# inner writeCodeForElement(id, elements, parameters, attributes, codeToAppend, parsingMode) → {string}
Generates the .robot code for the elements in the array of all elements recursively
Parameters:
Name | Type | Description |
---|---|---|
id |
String | Id of the element that the code will be generated for |
elements |
Array | All the elements from the ssot |
parameters |
Array | All parameter objects of the robot |
attributes |
Array | All attribute objects of the robot |
codeToAppend |
String | Current code that will be extended |
parsingMode |
String | Indicates if the parser is used for the frontend or the local client |
Generated .robot code for the tasks section
string