Get Tasks
UiPath.Oracle.IntegrationCloud.Process.Activities.GetAllTasksActivity
Using your filter parameters (Assigned, Process Name, and Status), the Get Tasks activity calls the Oracle Integration Retrieve Task List API to get the tasks associated with your specified process.
After completing the get operation, the activity outputs the applicable tasks in a DataTable object (Tasks) along with the API call status (Status) and response message (Response Message).
How it works
The following steps and message sequence diagram is an example of how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.
- Complete the Setup steps.
- Add the Oracle Process Scope activity to your project.
- Add the Get Tasks activity inside the Oracle Process Scope activity.
- Enter values for the Filters input properties.
- Create and enter a
DataTablevariable andStringvariables for the Output properties. - Run the activity.
-
Your input properties are sent to the Retrieve Task List API.
-
The API returns the
DataTableandStringvalues to your output property variables.
-
Properties
Common
- DisplayName - The display name of the activity. This field supports only
StringsorStringvariables.
Filters
- Assigned - Filters the processes according to the user assignments. Select an item from the drop-down list. There are 3 options:
- ADMIN - Returns all tasks without a filter.
- ALL - Returns all tasks.
- PREVIOUS - Returns tasks that were previously updated by you.
- Process Name - The name of the process that you want to retrieve tasks from. Enter a
StringorStringvariable. - Status - The current status of the tasks that you want to retrieve. Select an item from the drop-down list. There are 2 options: Assigned and Completed.
Misc
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
Output
- Has More Records - A boolean value that informs you when there are more records than the amount specified in the Limit property. Enter a
Booleanvariable - Tasks - The tasks that match your filter property values. Enter a
DataTablevariable.- The
DataTableincludes a Id column that contains theInt32value you can use as an input variable in subsequent activities (e.g., Add Task Comment, Get Task Attachments). - For example, to create a
Int32variable for the Task Id, you can use an Assign activity with the following Value: Int32.Parse(tasks.Rows(0).Item("Id").ToString) ("tasks" is theDataTablevariable that you create for this property) or Int32.Pase(row("Id").ToString) in a For Each Row activity (see the example below).
- The
- Response Message - The API response message. Enter a
Stringvariable - Status - The status of the request. Enter a
Stringvariable. Possible values are Success or Failure.
Pagination
- Limit - The maximum amount of tasks that you want to retrieve. Enter a
Int32orInt 32variable. - Offset - Offset value of the response. Enter a
Int32orInt32variable.
Example
The following image shows an example of the activity dependency relationship and input/output property values.
