When the user want to add a new data to the database. It should be added after a certain interval of time. I have used wait function and the automatic activity in the process. My issue was wait function is not executing but automatic activity takes place.  How can I rectify this?

Hi,

Try to add $resolve as last statement in your JavaScript code. This will automatically make a promise of your code.

Ref: https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Processes/Process_Tools/Wait

If possible do share a snap of Action.

Cheers

Assif

assif_tiger wrote:

Hi,

Try to add $resolve as last statement in your JavaScript code. This will automatically make a promise of your code.

Ref: https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Processes/Process_Tools/Wait

If possible do share a snap of Action.

Cheers

Assif

Hi assif, 

Thankyou for your reply,

I will explain the flow

Here I used the wait Function which is set to wait for 30 min. Create action takes place inside the automatic activity.

Create action does not performing after 30 min, It performed immediately when the process is launched.

Solution

Ellakkiya Selvadurai wrote:

assif_tiger wrote:

Hi,

Try to add $resolve as last statement in your JavaScript code. This will automatically make a promise of your code.

Ref: https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Processes/Process_Tools/Wait

If possible do share a snap of Action.

Cheers

Assif

Hi assif, 

Thankyou for your reply,

I will explain the flow

Here I used the wait Function which is set to wait for 30 min. Create action takes place inside the automatic activity.

Create action does not performing after 30 min, It performed immediately when the process is launched.

Thanks,

Can you try with this Expression in Wait:

AddMinutes(CurrDateTime(),30) instead of your's


Solution

assif_tiger wrote:

Ellakkiya Selvadurai wrote:

assif_tiger wrote:

Hi,

Try to add $resolve as last statement in your JavaScript code. This will automatically make a promise of your code.

Ref: https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Processes/Process_Tools/Wait

If possible do share a snap of Action.

Cheers

Assif

Hi assif, 

Thankyou for your reply,

I will explain the flow

Here I used the wait Function which is set to wait for 30 min. Create action takes place inside the automatic activity.

Create action does not performing after 30 min, It performed immediately when the process is launched.

Thanks,

Can you try with this Expression in Wait:

AddMinutes(CurrDateTime(),30) instead of your's


Thankyou assif_tiger it works.


Ellakkiya Selvadurai wrote:

assif_tiger wrote:

Ellakkiya Selvadurai wrote:

assif_tiger wrote:

Hi,

Try to add $resolve as last statement in your JavaScript code. This will automatically make a promise of your code.

Ref: https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Processes/Process_Tools/Wait

If possible do share a snap of Action.

Cheers

Assif

Hi assif, 

Thankyou for your reply,

I will explain the flow

Here I used the wait Function which is set to wait for 30 min. Create action takes place inside the automatic activity.

Create action does not performing after 30 min, It performed immediately when the process is launched.

Thanks,

Can you try with this Expression in Wait:

AddMinutes(CurrDateTime(),30) instead of your's


Thankyou assif_tiger it works.



You're Welcome :)

Cheers