Skip to main content
mollyn6512
July 14, 2023
Question

Start process and update the latest value of process variable back into interface

  • July 14, 2023
  • 4 replies
  • 0 views

Hi everyone,

I use a!startProcess() in an interface, so that the process will be kicked off once clicked the button. I want to disable that button until the process completes. Is there anyway to do so? Thank you!

    4 replies

    stefanhelzle0001
    Brainy
    July 14, 2023

    Well, yes and no. Depends on how long that process takes. Are you talking about synchronous background processing? 

    mollyn6512
    July 14, 2023

    Yes the process that is started after clicking the submit button is a synchronous process [emoticon:c4563cd7d5574777a71c318021cbbcc8]

    stefanhelzle0001
    Brainy
    July 14, 2023

    Did you consider to just set loadingIndicator=true? If this process runtime is low, you can just enable chaining and the UI refresh will wait until the end of that chained nodes.

    mathieud0001
    Brainy
    July 14, 2023

    You'd have to create a process report and query it via queryProcessAnalytics. If there is an active process instance, you disable the button.