Question

Invoke an activity conditionally based on date

Hi

Please help me with my requirement. I have a screen as shown in the attached picture, where in I have Item, country, status and release date. When the status is approved the Release date will be enabled and user can enter any future date. My requirement is to run an activity on that particular date for that item. Basically I need to run the activity three times on three different dates for the three items. Can somebody throw some light on how to achieve this funcationality

 

Thanks

Babu

 

 

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
November 29, 2016 - 10:13am

Hi All

I am planning to implement a service Level on the assignment which runs the required activity daily until the assignment is completed. The activity will iterate through the item pagelist and compare the release date with current date and process the item that has release date equals to current date.

Thanks

Babu

 

Comments

Keep up to date on this post and subscribe to comments

November 21, 2016 - 2:13pm

Could you use Queue-For-Agent and create a queue item that will be processed by a custom agent?

November 21, 2016 - 3:22pm
Response to CarissaW_GCS

Dear CarissaW

Can you please explain it on hight level as I am not familiar with the method Queue-For-Agent method.

Thanks

Babu

November 21, 2016 - 8:55pm

Hi,

I believe you are displaying the content through Grid, is there a possibility to use onChange event and run the activity ?

November 22, 2016 - 12:04am

on that property in the section define an action and call an activity. In that activity call que-for-Agent method and queue it up. In the agent activity write a logic like if the release date matches process that business logic.

Pega
November 22, 2016 - 1:50am

What I understood, I think the visibility of "Release date" is conditional (when status=Approved). You can add an action in the "Release date" column with event as Change and action as "Run activity" on the row just selected. This way you will be calling that activity mulitiple time(s) as each release date change(s).

November 22, 2016 - 10:15am

Dear All

Thanks for the replies. The problem is the user can enter future date for the release date. Basically, I need to make sure that the activity runs on the rlease date not on the current date. For example the user can enter three different dates in december 2016 for the three items and need to execute the activity on the three different release dates.

Thanks

Babu

November 29, 2016 - 10:13am

Hi All

I am planning to implement a service Level on the assignment which runs the required activity daily until the assignment is completed. The activity will iterate through the item pagelist and compare the release date with current date and process the item that has release date equals to current date.

Thanks

Babu