41
Views
5
Comments
Solved
process Issue
Question

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?

2021-04-09 11-42-43
assif_tiger
 
MVP
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


2021-04-09 11-42-43
assif_tiger
 
MVP

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

UserImage.jpg
Ellakkiya

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.

2021-04-09 11-42-43
assif_tiger
 
MVP
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


UserImage.jpg
Ellakkiya

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.


2021-04-09 11-42-43
assif_tiger
 
MVP

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.