Create an Adhoc Task
post
/process/api/v1/tasks
Create an adhoc task.
Request
Header Parameters
-
oci-original-url:
Endpoint that the customer requested.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
addMembers: object
UpdateMembers
-
assignees: object
assignees
Assignees for the task.
-
category: string
Category for the task.
-
comment: string
Comment on new task
-
dueDate: string
(date)
Due Date for the task in the format "yyyy-MM-dd'T'HH:mm:ss".
-
externalFormUrl: string
The reference to the external form associated with the adhoc task. Expressions are also supported. Example - https://myloanapp.com/loan/apply?loanId=${payload.prop('var1')}&applicant=${payload.prop('var2')} where payload have var1 and var2 variables. It will be compiled to - https://myloanapp.com/loan/apply?loanId=
&applicant= &taskId= -
joinAsMember: object
joinAsMember
Join as member at the time of adhoc task creation
-
outcomes: array
outcomes
-
parentTaskId: string
Parent task ID.
-
payload: object
payload
Additional Properties Allowed: additionalProperties
-
priority: integer
(int32)
Allowed Values:
[ "1", "2", "3" ]
Priority of the task. This is provided as a number between 1 and 3, where 1 is the highest priority. -
summary: string
Summary of the task.
-
tags: array
tags
-
title: string
Title of the task.
Nested Schema : UpdateMembers
Type:
Show Source
object
-
action: string
Example:
addMembers(to add the list of members), updateMembers(to update the list of members), deleteAllMembers(to delete all the members), deleteMembers(to delete the list of members)
-
items: array
items
-
overwrite: string
Default Value:
always
Allowed Values:[ "always", "never", "upgradeOnly", "downgradeOnly", "upgradeonly", "downgradeonly" ]
Example:always(always add the member's permission), never (skips updating the already present members in list, updates the others), downgradeOnly (update permission if the existing permission is higher than specified), upgradeOnly (update permission if the existing permission is lower than specified)
Nested Schema : assignees
Type:
object
Assignees for the task.
Show Source
-
identities: array
identities
Only the ID of identity is considered and not the name.
Nested Schema : joinAsMember
Type:
object
Join as member at the time of adhoc task creation
Show Source
-
label: string
The label of the member
-
level: string
Allowed Values:
[ "INSPECT", "READ", "USE", "MANAGE" ]
The permission level of the member
Nested Schema : Member
Type:
Show Source
object
-
identityId: string
The identity ID of the member
-
identityName: string
The identity name of the member
-
identityType: string
The identity type of the member
-
label: string
The label of the member
-
level: string
Allowed Values:
[ "INSPECT", "READ", "USE", "MANAGE" ]
The permission level of the member
Nested Schema : identities
Type:
array
Only the ID of identity is considered and not the name.
Show Source
Nested Schema : Identity-allOf[1]
Type:
Show Source
object
-
type: string
Allowed Values:
[ "USER", "GROUP", "ROLE" ]
Nested Schema : additionalProperties
Type:
object
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Successful operation.
Nested Schema : Task-allOf[1]
Type:
Show Source
object
-
activityInstanceId: string
-
applicationName: string
-
applicationTitle: string
-
assignedDate: string
(date)
Assigned date in the format YYYY-MM-DDTHH:MM:SS[.sss]Z
-
assignee:
User
-
availableActions: object
taskActions
-
businessKey: string
-
candidateGroups: array
candidateGroups
-
candidateUsers: array
candidateUsers
-
completedDate: string
(date)
Time when the task was deleted or completed in format YYYY-MM-DDTHH:MM:SS[.sss]Z
-
createdBy:
UserOrAppClient
-
createdDate: string
(date)
The time the task was created in the format YYYY-MM-DDTHH:MM:SS[.sss]Z
-
description: string
-
dpDefinitionDescription: string
-
dpDefinitionId: string
-
dpDefinitionKey: string
-
dpDefinitionTitle: string
-
dpExecutionId: string
-
dpInstanceId: string
-
dpName: string
-
dueDate: string
(date)
Due date in the format YYYY-MM-DDTHH:MM:SS[.sss]Z
-
expirationDate: string
(date)
Expiry date in the format yyyy-MM-dd'T'HH:mm:ss.
-
externalFormUrl: string
-
finishedDate: string
(date)
Time when the task was deleted or completed in format YYYY-MM-DDTHH:MM:SS[.sss]Z
-
formURL: string
-
fromUser:
UserOrAppClient
-
id: string
-
isAdhoc: boolean
Specifies whether it is an adhoc task or not.
-
isEscalated: boolean
This will be true if the Task got Escalated.
-
isSuspended: boolean
This will be true if the process is suspended.
-
lastUpdatedDate: string
(date)
Last updated date in the format YYYY-MM-DDTHH:MM:SS[.sss]Z
-
originalAssignee:
User
-
outcome: string
-
parentTask: object
ParentTaskDetail
-
priority: integer
(int32)
Allowed Values:
[ "1", "2", "3" ]
-
processDefinitionDescription: string
-
processDefinitionId: string
-
processDefinitionKey: string
-
processDefinitionTitle: string
-
processExecutionId: string
-
processInstanceId: string
-
processName: string
-
reason: object
Reason
-
reasonText: string
Single line description of the latest life-cycle operation for this task with user provided comment if applicable.
-
rootInstanceId: string
-
rootProcessId: string
-
state: string
Allowed Values:
[ "ASSIGNED", "UNASSIGNED", "WITHDRAWN", "COMPLETED", "DELEGATED", "FAULTED" ]
-
substate: string
Allowed Values:
[ "INITIATED", "CLAIMED", "RELEASED", "INFO_REQUESTED", "INFO_SUBMITTED", "REASSIGNED", "ESCALATED", "WITHDRAWN", "WITHDRAWN_TERMINATION", "EXPIRED" ]
-
summary: string
-
tags: array
tags
-
taskDefinitionKey: string
-
title: string
-
totalResultsGrouped: object
TaskTotalResultsGrouped
Nested Schema : Link
Type:
object
Defines Link
Show Source
-
code: integer
Minimum Value:
100
Maximum Value:600
-
href(required): string
-
hreflang: string
-
length: integer
(int32)
-
mediaType: string
-
message: string
-
rel(required): string
-
title: string
-
type: string
Nested Schema : UserOrAppClient
Match All
Show Source
-
object
IdentityCommon
-
object
Discriminator: type
Discriminator:
{ "propertyName":"type" }
Nested Schema : Reason
Type:
Show Source
object
-
action: string
Allowed Values:
[ "INITIATE", "CLAIM", "RELEASE", "REASSIGN", "INFO_REQUEST", "INFO_SUBMIT", "COMPLETE", "WITHDRAW", "ESCALATE", "EXPIRED" ]
-
assignee:
User
-
candidateGroups: array
candidateGroups
-
candidateUsers: array
candidateUsers
-
comment: string
-
date: string
(date)
Date in the format yyyy-MM-dd'T'HH:mm:ssZ.
-
errorMessage: string
-
outcome: string
-
subaction: string
Allowed Values:
[ "TERMINATED", "FAULTED" ]
-
user:
User
Nested Schema : taskAction
Type:
Show Source
object
-
actionId: string
-
isCommentMandatory: boolean
Default Value:
false
Specifies if comment is mandatory while performing task action. -
title: string
Nested Schema : GroupAndRole
Match All
Show Source
-
object
IdentityCommon
-
object
Discriminator: type
Discriminator:
{ "propertyName":"type" }
Nested Schema : Discriminator: type
Type:
Show Source
object
-
type: string
Allowed Values:
[ "GROUP", "ROLE" ]
Nested Schema : Discriminator: type
Type:
Show Source
object
-
type: string
Allowed Values:
[ "USER", "APPCLIENT" ]
Examples
400 Response
Bad request - invalid input
401 Response
Unauthorized
429 Response
Too many requests
500 Response
Internal server error
503 Response
Too many exceptions or too slow requests