How can I get Inputs from a User Input Task, and I only know the Task ID?

Hi!

I have a problem when I try to load a Interface1 (inside another Interface2). My code is:

links: if(fv!item.configuredDrilldown = "TASK_DETAILS",
                a!forEach(
                        items: index(local!report.data, fv!item.drilldownField, {}),
                        /*expression: a!processTaskLink(task: fv!item)*/
                        expression: a!dynamicLink(
                                  value: fv!item,
                                  saveInto: ri!id
                                  )
                         ),
                         null
                )

Using a!processTaskLink(), open the Task in Tempo (keeping the inputs values). But, I wat to see the Interface Task (Interface2) down my grid (Interface1). Grid where Im going selected the different Task.

I retrieve the Task ID with a!dynamicLink() function, but dont know how access to inputs (or reference, or something to show the Interface2 values on the bottom of the Interface1).

 

Thanks!

  Discussion posts and replies are publicly visible

  • As mentioned by other practitioners and AFAIK too, you cannot access the Inputs/outputs from the task. But what you can do is to access the process variables which are normally the value that you pass when you create the task.

    Maybe you already did, is that “task report” with context type a “task by process model”?, if it is then you will be able to access the process variables. If not try creating one of those.

    You mentioned you have process model, I assume you need to pull the tasks just for that one process model tasks? Is this a correct assumption?
    If yes then that solution mentioned above Can help you.

    I think this is the closer you can get to those task input values you want. And the variables should be the same than what the user gets on the screen. And this option gives you the option to filter using those process variables.

    The only way this could be different is that on the screen you write to the DB, in that scenario you may want to use queryEntity to pull the information every time the user click on the “details link”. I hope this is not the case. Of course this solution could kill the filtering option I mentioned above st least for that information that can change.

    José
  • Is that “task report” with context type a “task by process model”? Yes I did.
    I assume you need to pull the tasks just for that one process model tasks? Correct.

    Access the process variables. This could be the good solution. If any of the inputs task is not process variable, the change is not a problem. Can you tell me How can I get to the process variables?

    Thanks!
    Pablo.
  • Hi Pablo Ramos Clemente,

    What i understand you want to  display the Tasks in a Grid With Task Links and when you click on link it should redirect you to that Task Interface and after performing action it should redirect you on same interface.

    As i also done something like that, i created the constant of Task Report which is already present in Appian Environment and used code mention in following link

    https://docs.appian.com/suite/help/18.4/recipe_display_a_users_tasks_in_a_grid_with_task_links.html

    which gives me task assigned to login user

    and when i click on task link it will redirect on Task Assigned Interface

     

    As tried one demo....

     Image(A)

    and after click on task link

     

    It will definitely work if not mention me... 

  • Answer myself, "Can you tell me How can I get to the process variables?"

    It needs create a Constant T_C_TestingPM (type process model) for the context, and a Constant T_C_RecordTask (type document) with the Task Report (which must have been created). Something like this:

    local!report: a!queryProcessAnalytics(
       report: cons!T_C_RecordTask,
       contextProcessModels: cons!T_C_TestingPM,
       query: a!query(pagingInfo: local!pagingInfo)
    )

    Regards!