Methods
# inner deleteUnusedAttributesFromDB(attributes, usedElementIds, robotId)
Cheks if there is more than one unused attribute object, if so delete it in the database
Parameters:
Name | Type | Description |
---|---|---|
attributes |
Array | List of all attributes saved in the session storage |
usedElementIds |
Array | ActivityIds that are still being used |
robotId |
String | Id of the robot |
# inner getAttributeObjectForActivity(activityId) → {Object}
Retrieves the attribute object for an activiy from session storage
Parameters:
Name | Type | Description |
---|---|---|
activityId |
String | Id of the activity for which the attribute object will be retrieved |
Attribute object for the selected activity or undefined if not available
Object
# inner getAttributeStorage() → {Array}
Retrieves the attribute object array from the session storage
Parameter from local storage
Array
# inner getRpaApplication(activityId) → {String}
Retrieves the rpa application for the selected activity from the session storage
Parameters:
Name | Type | Description |
---|---|---|
activityId |
String | Id of the currently selected activity |
Selected rpa application for the selected activity or undefined
String
# inner getRpaTask(activityId) → {String}
Retrieves the selected rpa task for the selected activity from session storage
Parameters:
Name | Type | Description |
---|---|---|
activityId |
String | Id of the currently selected activity |
Selected rpa task for the selected activity from session storage or undefined if not available
String
# inner setRpaApplication(robotId, activityId, newApplication)
Sets the rpaApplication attribute for an activity to a new application and sets rpaTask to undefined
Parameters:
Name | Type | Description |
---|---|---|
robotId |
string | Id of the currently opened robot |
activityId |
string | Id of the currently selected activity |
newApplication |
string | Name of the selected rpa application |
# inner setRpaTask(robotId, activityId, application, newTask)
Stores the rpa task for the currently selected activity in the session storage
Parameters:
Name | Type | Description |
---|---|---|
robotId |
string | Id of the currently opened robot |
activityId |
string | Id of the currently selected activity |
application |
string | Name of the selected application |
newTask |
string | Name of the selected task |