Skip to main content
August 16, 2023
Question

Need to open an interface after exec stored procedure in process model

  • August 16, 2023
  • 6 replies
  • 0 views

I need to implement duplicate functionality.

for that, I have a grid view and corresponding to each row i have a button for duplicate. 

On button click, I am using a!startProcess() to call process model in which passing a parameter in which we pass the id of that row.

In Process model, we are passing that id to the stored procedure in which we have written the insert query for the same data as that id has.

And as a output we are receiving the new id. 

With this new id, we have to open a interface for which I have used User Input Task.

But the process runs and stuck on the User input Task i.e. the interface is not called through UI.

How to solve this??

Please suggest anyone....

    6 replies

    ignacio.moran
    August 16, 2023

    Hello,

    Are you using activity chaining in the process model? Could you also share a screenshot of the process model to better understand your configuration? Thanks [emoticon:c4563cd7d5574777a71c318021cbbcc8]

    August 16, 2023

    Second one is for Duplicate

    The sub process

    stefanhelzle0001
    Brainy
    August 16, 2023

    When starting a process using a!startProcess, it runs in the background. If you want to user to see that UI, use a a!startProcessLink.

    August 17, 2023

    When I use a!startProcessLink() in saveInto of a!buttonWidget(), It throws error:

    a!buttonWidget(
       icon: "clone",
       tooltip: "Clone Project",
       saveInto: {
         a!startProcessLink(
           processModel: cons!ADD_PROJECT,
           processParameters: {
               refId: fv!row.id
             }
         )
       },
       size: "SMALL",
       style: "LINK",
       confirmHeader: "Clone Project",
       confirmMessage: "Are You Sure You Want To Clone Project",
       confirmButtonLabel: "Clone",
       cancelButtonLabel: "Cancel"
     )
     

    Error:   An error occurred while executing a save: Expression evaluation error: You must specify a variable to save into, such as ri!name << fn!sum. Received: StartProcessLink.

    Also need to show the confirmMessage.

    Please suggest.......

    August 17, 2023

    Hello, Can you please check the value you are passing in the process parameter. I think we have to pass the value as ruleinput.