Wait timer in interface or Expression rule

I am just trying to explore is there any way to wait(hault the execution of code for specific duration), like we have in process model or similar like Java sleep function

Thanks

Pratiksha

  Discussion posts and replies are publicly visible

Parents
  • Hi Pratiksha,
    As far as I know, we require a user intervention for the forms to refresh.
    However i just tried it out as below.

    with(
    local!A: 10,
    local!B: 20,
    local!timer: 60 - second(
    now()
    ),
    if(
    local!timer < 10,
    {},
    local!A + local!B
    )
    )

    This will evaulate the sum if timer is less than 10 secs.(or you can even use minute() function).
    However to execute this rule we again need human intervention every time.

    Thanks
    Abhishek
Reply
  • Hi Pratiksha,
    As far as I know, we require a user intervention for the forms to refresh.
    However i just tried it out as below.

    with(
    local!A: 10,
    local!B: 20,
    local!timer: 60 - second(
    now()
    ),
    if(
    local!timer < 10,
    {},
    local!A + local!B
    )
    )

    This will evaulate the sum if timer is less than 10 secs.(or you can even use minute() function).
    However to execute this rule we again need human intervention every time.

    Thanks
    Abhishek
Children
No Data