How to implement thread delays using Javascript rule since SetTimeout function is not working

Can some one assist on how to achieve thread sleep time in milliseconds using Javascript Rule since SetTimeout function is not working... 

Parents
  • You can use C# scripted rule instead, but it may harm performance if you need high throughput. Why you want to do that?

  • Hey Jakub, Thanks for your assistance.

    Was trying to explore whether we can simulate thread sleep which we can achieve using JS.

    While we don't have a direct solution due to ECMA 5 compliance and limitations of "SetTimeout" function use, agree that we can use C# which is has ready made available functions that we can import and use.

    Can I also request you to route me to some extensive examples which shows the capability of Service Virtualization product examples (in addition to Demo's).

    Say for example, simple examples to demonstrate and understand :

    1. Data Driven Rules
    2. SCA Capability
Reply
  • Hey Jakub, Thanks for your assistance.

    Was trying to explore whether we can simulate thread sleep which we can achieve using JS.

    While we don't have a direct solution due to ECMA 5 compliance and limitations of "SetTimeout" function use, agree that we can use C# which is has ready made available functions that we can import and use.

    Can I also request you to route me to some extensive examples which shows the capability of Service Virtualization product examples (in addition to Demo's).

    Say for example, simple examples to demonstrate and understand :

    1. Data Driven Rules
    2. SCA Capability
Children