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

Ronnie09
Community profile Ronnie09 Level 3
Job title here
Location here
15 BADGES
Level 3

Level 3

Learn more
Joined the community 08-09-2021 1:49:05 AM
Online
Top badges earned by Ronnie09
Customize the badges you want to showcase on your profile
Re: I want to terminate the workflow.
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
@asutosh_jena I have redeployed the code and deleted the older running workflow from crx/de var. But still workflow is running and printing the logs.

Views

9

Like

1

Replies

0
Re: How to iterate nodes one by one
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
@Anudeep_Garnepudi I just keep revolving in jcr:content node only. It is not moving further nodes

Views

64

Like

1

Replies

2
How to iterate nodes one by one
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
I am using the below code to iterate the Node and update the property but it ends up loading the infinite loop. resource -> launch.getResource().getChild("jcr:content") Node node = resource.adaptTo(Node.class);final NodeIterator it=node.getNodes();do {LOG.info("NODE PATH IS: "+node.getPath() );node.setProperty(slingResourceType,conf/data/product/component);node.getSession().save();//it.nextNode();}while(it.hasNext()); Is this the correct approach? It doesn't iterate from one node to other and pr...

Views

88

Likes

0

Replies

6
Re: I want to terminate the workflow.
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
Yeah it is from my custom code. By mistake I wrote do{} while(true);

Views

23

Like

1

Replies

2
Re: I want to terminate the workflow.
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
@asutosh_jena There is infinite loop running on workflow. In logs it keeps on printing. I restarted AEM but still it doesn't stops.

Views

28

Like

1

Replies

4
Re: I want to terminate the workflow.
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
Hi @asutosh_jena From there only I terminated the work flow. The screenshot shared above is for the same http://localhost:4502/libs/cq/workflow/admin/console/content/instances.html It didn't worked

Views

34

Like

1

Replies

6
I want to terminate the workflow.
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
I am trying to terminate the workflow but it keeps loaded as shown in image below for more than 2 hours. I waited long but couldn't find out the solution.

Views

42

Likes

0

Replies

8
I want to update node properties using code
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
Node node = resource.adaptTo(Node.class);final NodeIterator it=node.getNodes();do {if(node.getPath().equals(mapNewComponent.getKey())){node.setProperty("slingResourceType","anydata");}}while(it.hasNext()); I am trying this but it is not working

Views

62

Likes

0

Replies

4
How to access JCR nodes using code
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
I am trying to retrieve the data from node and update as well.This is the code that I am trying to runtry { //Create a connection to the CQ repository running on local host Repository repository = JcrUtils.getRepository("http://localhost:4502/crx/de/index.jsp#/content/launches/2021/09/16/Tool"); //Create a Session javax.jcr.Session session = repository.login( new SimpleCredentials("admin", "admin".toCharArray())); //Create a node that represents the root node Node root = session.getRootNode(); /...

Views

43

Likes

0

Replies

2
Re: Get all components of old page - using mapper configs update the components properties in new page
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
Hi @asutosh_jena old_component:new_componentexample/content/example/old_component: /content/example/new_component/conent/example/old_component/resource: xyz/content/example/new_component/resource: PQRI got data as key value pair now should I update the mappingcomponentsFound.forEach((k, v) -> LOG.info("key : {} , value : {}",k,v)); Now how should I update the old component

Views

35

Like

1

Replies

0
Get all components of old page - using mapper configs update the components properties in new page
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
I have one Old page which was created on Aem6.0 or something. I want to extract the properties of old component like asset url, decription, and all. And update in new component Approach:1.) Workflow will hit the old page(5-10 pages) and extract the detail,2.) Launch will triggered on referring new Page,3.) The extracted details need to be updated in the launch Page.4.) Using loop will do for each and every page. How can I achieve step 1,2,3 or any other optimal step

Views

55

Likes

0

Replies

3
Re: Create component which should be preloaded with template
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
How can I update _cqdialog.xml for permanent change

Views

49

Like

1

Replies

2
Re: How to make checkbox default checked below code is not working
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
@asutosh_jena Checkbox is checked but value it is returning is false

Views

65

Like

1

Replies

1
How to make checkbox default checked below code is not working
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
How to make checkbox default checked this is not working

Views

82

Likes

0

Replies

7
Re: Component Rendering through checkbox
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
Hi @asutosh_jena The blue lines I am adding condition

Views

28

Like

1

Replies

2
Component Rendering through checkbox
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
I have One checkbox Enable data. Once checkbox is checked/true Component is visible whenever checkbox is unchecked/false then component disappear from screen. I want to keep the component visible to check the checkbox again. But it get hidden and I cant find to make it checked/true.AEM 6.5

Views

37

Likes

0

Replies

4
Two checkbox one checkbox above other
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
I have two check box A and B how to move B at first place and A at second in same dialog tab

Views

34

Likes

0

Replies

2
Create component which should be preloaded with template
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
Given I am a content author, When I configure the page of particular template, Then I want the components should be preloaded on page

Views

82

Likes

0

Replies

6
API to create launches
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
I want to create launches of particular pages, how can I achieve that. Is there any API for launches or do I have to use PageManager API only?Please share code if already present

Views

28

Likes

0

Replies

1
Re: Extracting the Page resources(Sling resource type, name, template, title, description)
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
Will give a try.

Views

23

Like

1

Replies

0
Re: Copy Pasting the Page
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
Yeah, it exist. I fixed the code now it is working finetry {List list;list.forEach(listItem -> {Resource resource = resourceResolver.getResource(listItem);PageManager pageManager=resourceResolver.adaptTo(PageManager.class);Page page=pageManager.getPage(getResourceFromPayload(WorkItem).getPath());pageManager.copy(page,getResourceFromPayload(WorkItemtem).getPath(),resource.getName(),true,true);} catch (WCMException e) {}});

Views

32

Likes

4

Replies

0
Re: Copy Pasting the Page
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
@asutosh_jena I am writing workflow for it, because for some we have more than 100 pages. Can't do it manually. I just want to copy paste with different name.... If copy is available then just Overwrite that copy.

Views

46

Like

1

Replies

0
Re: Extracting the Page resources(Sling resource type, name, template, title, description)
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
Sure will check and let you know.One more question I have https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/copy-pasting-the-page/td-p/422145Any info regarding this

Views

43

Like

1

Replies

0
Re: Extracting the Page resources(Sling resource type, name, template, title, description)
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
Can you help me extracting the same (Sling resource type, name, template, title, description) using the Java code or provide some other link

Views

49

Like

1

Replies

2
Extracting the Page resources(Sling resource type, name, template, title, description)
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
I am creating the workflow to update the previously used components (Aem 6.0), to latest version so I want to write workflow to update its sling resource type, description for 15+ pages. I am confused how to get the resource name, template name, title and description of new and old component update it accordingly used Java workflows. If possible help me in writing the workflow to extract Sling resource type, name, template, title and description of new component that would also help a lot .Thank...

Views

57

Likes

0

Replies

6
Copy Pasting the Page
Avatar
Give Back 10
Level 3
Ronnie09
Level 3

Likes

17 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Ignite 10
Boost 10
Applaud 5
Ignite 5
View profile
Ronnie09
- Adobe Experience Manager
I want to copy and paste the page even if it has any child pages. If I have copy pasted the page successfully then rerunning that workflow should overwrite the copied page if page is already present. Current approach:-- public void copyPage(String productPagesRootPath, ResourceResolver resourceResolver) {PageManager pageManager = resourceResolver.adaptTo(PageManager.class);Page page=pageManager.getPage(productPagesRootPath);Resource parent = resourceResolver.resolve(page + "/target");try {if (pa...

Views

61

Likes

0

Replies

4