Skip to main content
sameeru0003
October 9, 2025
Question

Take Action on taskitem without actually opening it. Integrate Appian with CafexUI

  • October 9, 2025
  • 7 replies
  • 0 views

We have a requirement to integrate our appian workflow to cafexUI where that UI will get the active taskitems in the form of report and when they open and action any record the relevant taskitem in appian should be closed and the process model should be progressed to next nodes successfully and complete. We need approach and Error handling.

We created an API which will call a!Completetask smart service which will complete the task however we have activity chaining in the process model of the task which will reopen the taskitem based on the integration node failure or it will complete when success. we need to know how to handle this?

7 replies

sameeru0003
October 14, 2025

a!completeTask(
  taskId: tointeger(a!fromJson(http!request.body).taskId),
  taskInputs: rule!PM_ICC_GetTaskInputs(http!request.body),
  onSuccess: a!httpResponse(
    statusCode: 200,
    body: "Task completed successfully."
  ),
  onError: a!httpResponse(
    statusCode: 500,
    body: "Failed to complete task."
  )
)

shubhama926776
October 15, 2025

Run the integration first, and only call a!completeTask() if it succeeds else return an error.
Or decouple it by triggering a child process post-task for integration with independent error handling and retries.

stefanhelzle0001
October 15, 2025

Are you sure this is a good way? Do you need these user input tasks? I this CafexUI the only way to complete a task?

sameeru0003
October 15, 2025

We are using completetask smartservice only but we need error handling technique when task is actioned but later got reopened because there was an error in next integrationnode.

stefanhelzle0001
October 15, 2025

This is not a good pattern to follow.

I suggest to go with a process based approach where a process sends the required "task" information to that other system. The other system then makes an API call to Appian to start the next phase in the process.