How to generate a unique URL that can be used to open a process.

Is it possible to generate a unique URL to open a process in Appian?
I would like to be able to start an Appian process instance using an API from another system, and open that process from a screen like "Appian process list" on the other system.
A process has multiple User Input Tasks and also enters sub-processes, but I would like to be able to open the process from the "Appian Process List" no matter what state it is in.
Is it possible to generate and return a unique URL for opening a process, regardless of the task, when a process instance is launched? How should I implement this?

I've recently started learning Appian.
Please forgive me for asking a beginner's question.

Thanks in Advance.

  Discussion posts and replies are publicly visible

Parents Reply Children
  • Sorry, I was unclear.

    I understand that the urlfortask() function can be used to obtain a URL to open the currently active task screen in a browser.

    However, I understand that this is a function that needs to be executed each time. I understand that in order to open the Appian screen from the task list of an external system, two actions are required each time: "executing the API to generate a URL" and "clicking the URL."

    What I wanted to say was, is it possible to implement the following:

    "When an Appian process is executed from an external system via API, a unique URL is generated and returned as a return value. Clicking on the generated URL will redirect to the page of the currently active task (no matter which user input task in the process or even if it is in a subprocess)"

  • 0
    Certified Lead Developer
    in reply to takuyak0088

    You can create a process report to store record id and active Task id. Now with first API call you can query the process report using a!queryProcessAnalytics(). Then in API output use a!urlfortask(taskIds:{TaskID})) to get the Unique url for the task e.g.

    <https://ENV_URL.appiancloud.com/suite/tempo/tasks/task/taskID

    Clicking on this generated URL will open the task. Only issue is this opens in Appian Tempo, so if you want it to be embedded into another system itself it will need additional configuration. But if idea is to click on link and navigate to Appian to complete the task then it will work after authentication.