Module

server/utils/ssotToRobotParsing/generateCodeForRpaTasks

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

View Source server/utils/ssotToRobotParsing/generateCodeForRpaTasks.js, line 42

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

View Source server/utils/ssotToRobotParsing/generateCodeForRpaTasks.js, line 156

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

View Source server/utils/ssotToRobotParsing/generateCodeForRpaTasks.js, line 19

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

View Source server/utils/ssotToRobotParsing/generateCodeForRpaTasks.js, line 27

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

View Source server/utils/ssotToRobotParsing/generateCodeForRpaTasks.js, line 75

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

View Source server/utils/ssotToRobotParsing/generateCodeForRpaTasks.js, line 89

Generated .robot code for the tasks section
string