capabilities.work

Start a Process and Handle Its Task

A 5-step recipe with Oracle Integration. We can help you get access.

Recipe · 5 steps

Start a Process and Handle Its Task

Create a process instance and act on the first task assigned to the current user.

  1. Retrieve metadata for the process definition to confirm it exists before starting an instance.
  2. Create a new process instance from the definition with the supplied title and input payload.
  3. List user tasks so the task generated by the new process instance can be located.
  4. Retrieve the first task to confirm it is ASSIGNED before acting on it.
  5. Perform the supplied action on the task, recording an accompanying comment.
What you'll need to have ready
  • processDefId: The process definition identifier (e.g. default~OrderApproval~1.0).
  • serviceName: The service name that starts the process.
  • title: Title for the new process instance.
  • payload: Input payload for the process instance.
  • action: The action to perform on the resulting task (e.g. APPROVE, REJECT).
  • actionComment: Comment recorded with the task action.
For your developer

Arazzo workflow oracle-integration:start-process-and-handle-task, 5 operations: getProcessMetadata → createProcessInstance → listTasks → getTask → performTaskAction. Specs on APIs.io.