Skip to main content
mollyn6512
Known Participant
Jul 14, 2023 3:32 AM UTC
Question

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

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
    Jul 14, 2023 6:19 AM UTC

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

    mollyn6512
    Known Participant
    Jul 14, 2023 7:27 AM UTC

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

    stefanhelzle0001
    Brainy
    Jul 14, 2023 10:45 AM UTC

    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
    Genius
    Jul 14, 2023 9:48 AM UTC

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