Skip to main content
January 27, 2024
Solved

Activity Chaining - Attended Node moves into Task list but doesn't show the UI immediately in the Site

  • January 27, 2024
  • 4 replies
  • 0 views

Hi, 

I have a process model , called from the interface using a!startProcess() upon hitting submit button. Each Node has been connected with activity chaining. 

Nodes - There are two API calls and a user interface ( just a message with OK button -attended node configured for pp!initiator. 

The process model works fine, but it waits in the User interface node for the initiator to attend it as task.

my requirement is : The Interface needs to get displayed in the Site which has to be accepted by the User and not go to the task list and accept. Any advice is appreciated. 

    Best answer by harshitb6843

    a!startProcess runs a process asynchronously and hence it will never show you any connected UI. You should use a!startProcessLink() instead which works synchronously. But remember, this cannot be called on a button. You will have to use a component that supports link. 

    Or you can add your interface where you are clicking the button in a process and then just submit the interface/task on the button click to see the next UIT immediately.

    Hope that helps!

    4 replies

    January 27, 2024

    [mention:b8ea18cfbb2e4f6d841cf3c1d4d7420b:e9ed411860ed4f2ba0265705b8793d05] Can you please help.

    harshitb6843
    January 27, 2024

    a!startProcess runs a process asynchronously and hence it will never show you any connected UI. You should use a!startProcessLink() instead which works synchronously. But remember, this cannot be called on a button. You will have to use a component that supports link. 

    Or you can add your interface where you are clicking the button in a process and then just submit the interface/task on the button click to see the next UIT immediately.

    Hope that helps!

    January 27, 2024

    thanks for helping. I have the logic as per the comments and it is working. 

    January 27, 2024

    Hi,

    If requirement is just to display message with "OK" button, rather then calling new interface in process model, use confirmMessage and confirmButtonLabel("OK") parameters from a!buttonWidget() in submit button. After user clicks "OK" call process model and hit API.