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

Pass metadata to OOTB Thumbnail process step

Avatar

Avatar
Give Back
Level 1
Siva_Chanduluri
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Ignite 1
View profile

Avatar
Give Back
Level 1
Siva_Chanduluri
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

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

09-01-2018

Hi,

Use case: While configuring the renditions, we don't want to configure height for few renditions(below mentioned varH for height), in that case it has to take the original height of the image while generating thumbnail. Unfortunately, OOTB Thumbnail process step code is reading these configs as Integers and there is no fallback values it is accepting.

1391238_pastedImage_1.png

This is regarding the setting/passing the metadata to the OOTB Thumbnail Process step, I know there is a way to communicate data among custom process steps, but how to pass the dynamic metadata to OOTB Thumbnail Process step.

From the below snippet, the MetaDataMap object is immutable though is has a put method.

public void execute(final WorkItem workItem, WorkflowSession workflowSession, MetaDataMap args)

    throws WorkflowException

  {

}

Any hack/trick to pass the data in this use case will be greatly appreciated.

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

09-01-2018

For this use case - you may need to build custom steps for a process.

Avatar

Avatar
Give Back
Level 1
Siva_Chanduluri
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Ignite 1
View profile

Avatar
Give Back
Level 1
Siva_Chanduluri
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

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

09-01-2018

Thanks for the reply smacdonald2008.

But I was using the Camera raw package to generate the thumbnail images for TIFF files, so implementing a process step to generate TIFF thumbnails is like reengineering, which I want to avoid.

I am surprised, how can com.day.cq.workflow.metadata.MetaDataMap does not allow to set the data, this seems an API bug.