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 6.1 to 6.4 Migration Deprecated API

Avatar

Avatar
Validate 1
Level 1
Rajesh_Kamalath
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Rajesh_Kamalath
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

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

22-03-2019

Hi Team,

Currently I am  working on the migration of AEM 6.1 to 6.4. The below deprecated api code need to replace in my java class.

Existing Code:

if (EventUtil.isLocal(event)) {

                JobUtil.processJob(event, this);

            } 

I already replaced the EventUtil.isLocal method on the below approach.

New Code :In Progress

String localEvent=(String)event.getProperty(DEAConstants.PROPERTY_APPLICATION);

if(StringUtil.isBlank(localEvent)){

        JobUtil.processJob(event, this);-- Still this line need to replace      

        }

But Still not able to find the solution for the Jobutil method.

org.apache.sling.event.jobs.JobUtil.processJob(Event, JobProcessor)

- Use the new JobConsumer interface instead.

I Identified JobConsumer Interface need to use, but I didn't  find any method/reference in the jobConsumer. My need here is to replace the below line, Please let me know how to replace the below code. Thanks

   JobUtil.processJob(event, this);

Replies

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,198 likes

Total Posts

6,369 posts

Correct Reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,198 likes

Total Posts

6,369 posts

Correct Reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

26-08-2019

Digant Tyagi Mayank Gandhi Any suggestion?

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct Reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct Reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

26-08-2019