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

Display AEM Content Fragment in a Workflow Step

Avatar

Avatar
Give Back 10
Level 3
Giancarlo__Sapi
Level 3

Likes

15 likes

Total Posts

23 posts

Correct Reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile

Avatar
Give Back 10
Level 3
Giancarlo__Sapi
Level 3

Likes

15 likes

Total Posts

23 posts

Correct Reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile
Giancarlo__Sapi
Level 3

25-05-2018

In AEM 6.2 I created a simple workflow model with only participation steps. This is for reviewing/approving/publishing AEM Content Fragments.

I tried two options, but one doesn't work and the other seems to have an error...

  1. I created a workflow launcher that listens to the AEM Content Fragment section in /content/dam. When a change is made, the workflow gets triggered correctly. In the Inbox is also the link to the content fragment. When clicking the link, a download box appears that will download the content fragment as a physical file. This is not good for review purposes.
  2. In the navigation page I selected the content fragment. Then I selected "Timeline" and from there "Workflow". I selected the workflow model and started the workflow. The payload shows a different link now. When clicking on the payload link, nothing happens. If I select an asset, e.g. an image, these links show the image. But with an AEM Content Fragment the link does nothing.
    When I though mouse over the link, the status message shows a complete different link (see image).

What is the process to display an AEM Content Fragment from a workflow step when clicking on the payload?

AEMCFWorkflowError .png

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 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,408 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

29-05-2018

A Content Fragment needs to be hosted in a page so ppl can see it - as discussed here - Adobe Experience Manager Help | Working with Adobe Experience Manager Content Fragments

Avatar

Avatar
Give Back 10
Level 3
Giancarlo__Sapi
Level 3

Likes

15 likes

Total Posts

23 posts

Correct Reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile

Avatar
Give Back 10
Level 3
Giancarlo__Sapi
Level 3

Likes

15 likes

Total Posts

23 posts

Correct Reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile
Giancarlo__Sapi
Level 3

29-05-2018

Yes, the link shows how to create an AEM Content Fragment. However, how do you review the content fragment in a workflow step? The payload has the link to the content fragment and will never have a link to another page containing the fragment.

It's similar to an asset in the workflow step: clicking on the payload link will display the asset.

If you look at the screenshot, you see that the payload link is not resolved propertly.

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,345 likes

Total Posts

3,220 posts

Correct Reply

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

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,345 likes

Total Posts

3,220 posts

Correct Reply

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

29-05-2018

FYI

I don't know if there is a bug, In notifications page it is creating assets link with assetdetails.html to open assets in Asset editor(which is correct) but for content fragment it should be opened like page with editor.html to see content fragments

http://localhost:4502/assetdetails.html/content/dam/we-retail/en/experiences/arctic-surfing-in-lofot... 

http://localhost:4502/editor.html/content/dam/we-retail/en/experiences/arctic-surfing-in-lofoten/arc...

even http://localhost:4502/bin/wcmcommand?cmd=open&path=%2Fcontent%2Fdam%2Fwe-retail%2Fen%2Fexperiences%2...  also opening Asset editor in classic UI.

Avatar

Avatar
Give Back 10
Level 3
Giancarlo__Sapi
Level 3

Likes

15 likes

Total Posts

23 posts

Correct Reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile

Avatar
Give Back 10
Level 3
Giancarlo__Sapi
Level 3

Likes

15 likes

Total Posts

23 posts

Correct Reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile
Giancarlo__Sapi
Level 3

29-05-2018

Thanks, arunp99088702​. Yes, correct. The challenge however is the link provided in the workflow step (payload). If you work on an AEM Content Fragment and want to review the content fragment via workflow, then the payload link does not show the content fragment. It actually does nothing...

I could of course add a "sling:resourceType" pointing to some GET.jsp to read the content fragment and display it, but that is quite cumbersome for an author creating content fragments with the AEM tool.

I could also try to write a workflow process step, but I can't add a modified link to the "comment" programmatically.

I have a feeling a rendering resource is missing for AEM Content Fragments. See, if you edit an asset, e.g. image and review/approve via workflow, the link opens a viewer to display the asset. As a workflow member I can click on the payload and actually see the image, without having to leave the inbox. Hence I assume this must be possible for AEM Content Fragments as well.

Avatar

Avatar
Validate 1
Level 3
a_mn1
Level 3

Likes

14 likes

Total Posts

84 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
Level 3
a_mn1
Level 3

Likes

14 likes

Total Posts

84 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
a_mn1
Level 3

23-01-2019

Hi, Did you get a lead on this. I too have a similar requirement.

Regards,

Anand MN