Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM Workflow : Set Due Date in the AEM Inbox Console for the Work Item of the Participant

Avatar

Avatar
Validate 1
Level 1
shreyasgune
Level 1

Likes

2 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
shreyasgune
Level 1

Likes

2 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
shreyasgune
Level 1

16-10-2018

Hello ,

I have created a Participant chooser class which will have a participant and this participant needs to complete the step (not task ) before due date . I need to set a Due Date in the Due date column of the Inbox console. Am using Granite API not cq API's.

Code :

            workItem.setDueTime(currentDate);  - This is to set Due date for the workitem

     

             workitem.getDueTime() - This is the date which is supposed to give me the set due date of the workitem

Here , workItem.setDueTime(currentDate) is not showing the date in the Due Date column of AEM Workflow Inbox .

Need to know where this value is stored and if this is not the date which is supposed to be displayed in the Due Date column then how to set Due Date pro grammatically.

Please help.

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

16-10-2018

Please take a screen shot of where you want the date to go to be very clear.

Also - in your Java code - is the correct date being generated? I am going to dig into this more to see if i get same results.

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,279 likes

Total Posts

3,155 posts

Correct Reply

889 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,279 likes

Total Posts

3,155 posts

Correct Reply

889 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

16-10-2018

Hi,

Dialogs values are stores in payload node, using java in WorkflowProcess you can adapt payload  to either Node or Page API and get the due date and due time property.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

16-10-2018

I talked to the AEM ENG team - they replied:

At this time you cannot change any workitem properties while in the participant chooser code, only thing respected is the returned user.

There is no out of the box way to set a duedate on a workitem, only a task.  Perhaps they could use an event listener to populate this when the workitems are created.

Avatar

Avatar
Validate 1
Level 1
shreyasgune
Level 1

Likes

2 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
shreyasgune
Level 1

Likes

2 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
shreyasgune
Level 1

17-10-2018

Thank U So Much for the response Scott

Currently we are working on the 6.3 version . Would like to know when can we get this feature(i.e. setting Due Date value programmatically in AEM Inbox Console ) available and in which version .

Avatar

Avatar
Give Back
Level 1
mynitumail
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Ignite 1
View profile

Avatar
Give Back
Level 1
mynitumail
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Ignite 1
View profile
mynitumail
Level 1

01-07-2019

Hi Scott,

aforesaid reply from Adobe Eng Team is applicable on AEM 6.4 and 6.5 versions as well ?

Please confirm.

Thanks,