Module

frontend/src/components/pages/RobotModeler/ModelerSidebar/modelerSidebarFunctionality/modelerSidebarFunctionality

Methods

# inner applicationChangedHandler(value, robotId, elementState, setterObject)

Updates the state of the component and retrieves the tasks of the application for the TaskDropdown and clears the TaskDropdown. Called when a new application was selected in the dropwdown in the sidebar.
Parameters:
Name Type Description
value Object New value of the ApplicationDropdown
robotId String Id of the robot
elementState Object State of the selected element
setterObject Object Object containing the functions for setting the state in the React component

View Source frontend/src/components/pages/RobotModeler/ModelerSidebar/modelerSidebarFunctionality/modelerSidebarFunctionality.js, line 204

# inner checkForApplicationTask(activityId, setterObject) → {Boolean}

Checks if a given activity has been configured with an application and/or task. This can be used to trigger the disablement of the task dropdown.
Parameters:
Name Type Description
activityId String Id of the activity that will be checked
setterObject Object Object containing the functions for setting the state in the React component

View Source frontend/src/components/pages/RobotModeler/ModelerSidebar/modelerSidebarFunctionality/modelerSidebarFunctionality.js, line 95

Boolean if there is an object found and an application has been previously configured
Boolean

# async inner downloadRobotFile(robotId)

Parses the ssot which can be found in the database correlating to the specified id
Parameters:
Name Type Description
robotId String Id of the robot

View Source frontend/src/components/pages/RobotModeler/ModelerSidebar/modelerSidebarFunctionality/modelerSidebarFunctionality.js, line 43

# inner getTasksForApplication(application, taskApplicationCombinations, setterObject)

Sets all tasks for currently selected application from session storage
Parameters:
Name Type Description
application String Application for which to get the tasks for.
taskApplicationCombinations Array Array of task and application combination objects.
setterObject Object Object containing the functions for setting the state in the React component.

View Source frontend/src/components/pages/RobotModeler/ModelerSidebar/modelerSidebarFunctionality/modelerSidebarFunctionality.js, line 73

# inner inputParameterChangeHandler(activityId, value)

Updates the values in the ssot. Called when the value in a single input field for the parameters has been changed
Parameters:
Name Type Description
activityId String Id of the activity selected
value Object New value of input field

View Source frontend/src/components/pages/RobotModeler/ModelerSidebar/modelerSidebarFunctionality/modelerSidebarFunctionality.js, line 251

# inner modelerElementChangeHandler(event, elementState, setterObject)

Updates the element state upon selection of a new element.
Parameters:
Name Type Description
event Object Event containing the information about the new element selected
elementState Object State of the element
setterObject Object Object containing the functions for setting the state in the React component

View Source frontend/src/components/pages/RobotModeler/ModelerSidebar/modelerSidebarFunctionality/modelerSidebarFunctionality.js, line 55

# inner modelerSelectionChangeHandler(event, elementState, robotId, setterObject)

Updates the state with attributes matching the new selection. Called upon a change in the modeler.
Parameters:
Name Type Description
event Object Event describing the newly happened change
elementState Object State of the selected element
robotId String Id of the robot which was opened
setterObject Object Object containing the functions for setting the state in the React component

View Source frontend/src/components/pages/RobotModeler/ModelerSidebar/modelerSidebarFunctionality/modelerSidebarFunctionality.js, line 144

# inner nameChangedHandler(event, modeler, elementState, setterObject)

Updates the state of the component. Called when the name of the selected element got updated in the sidebar.
Parameters:
Name Type Description
event Object Changed value in input field
modeler Object Modeling object
elementState Object State of the selected element
setterObject Object Object containing the functions for setting the state in the React component

View Source frontend/src/components/pages/RobotModeler/ModelerSidebar/modelerSidebarFunctionality/modelerSidebarFunctionality.js, line 185

# async inner onSaveToCloud(modeler)

Called when the the button is pressed to save to the cloud. This function will retrieve the xml from the parser, parse that xml to a ssot and write the resulting ssot into the sessionStorage.
Parameters:
Name Type Description
modeler Object Modeling object

View Source frontend/src/components/pages/RobotModeler/ModelerSidebar/modelerSidebarFunctionality/modelerSidebarFunctionality.js, line 31

# inner outputValueNameChangeHandler(activityId, newValue)

Updates the output variables name in the ssot. Called when the name of the output variable has been changed
Parameters:
Name Type Description
activityId String Id of the activity selected
newValue Object New value of the output variables name

View Source frontend/src/components/pages/RobotModeler/ModelerSidebar/modelerSidebarFunctionality/modelerSidebarFunctionality.js, line 260

# inner taskChangedHandler(value, activityId, robotId, selectedApplication, setterObject)

Updates the state of the component and gets the parameters of the task and updates the XML RPA properties (adds the application and the task). Called when a new task was selected in the dropwdown in the sidebar.
Parameters:
Name Type Description
value Object New value of the TaskDropdown
activityId String Id of the activity selected
robotId String Id of the robot
selectedApplication String Application selected
setterObject Object Object containing the functions for setting the state in the React component

View Source frontend/src/components/pages/RobotModeler/ModelerSidebar/modelerSidebarFunctionality/modelerSidebarFunctionality.js, line 235

# inner updateParamSection(activityId, robotId, setterObject)

Updates the state of the component and retrieves the tasks of the application for the TaskDropdown and clears the TaskDropdown. Called when a new application was selected in the dropwdown in the sidebar.
Parameters:
Name Type Description
activityId String Id of the activity for which will be changed
robotId String Id of the that will be updated
setterObject Object Object containing the functions for setting the state in the React component

View Source frontend/src/components/pages/RobotModeler/ModelerSidebar/modelerSidebarFunctionality/modelerSidebarFunctionality.js, line 124