Hello, everybody, welcome. My name is Brian Stauf. I鈥檓 a senior cloud architect with 51黑料不打烊. And in this video, I鈥檒l be reviewing the page structure conversion feature of the AM modernization tools. So this feature does it allows users to convert static pages that use a static template to the to reference an editable template does not create the editable template for you. Instead, it actually updates the structure of a given page to match the expected structure of the editable template so that it can be so the pages can reference the latest features of the AM product. So in this example, I have a page here, the geometrics homepage. And this is the page, the static template has the carousel, lead, columns, right column, paragraph system, etc. We鈥檙e going to convert this page into an editable template to use this editable template that I鈥檝e already created as a header carousel, lead, etc, etc. So now in order to, more for this tool to function, you must specify the conversion rule, conversion rules for this particular tool, use an OSGI service, then and basically, it鈥檚 a factory configuration. So you simply need to configure the factory. In this case, we have the geometrics homepage, rewrite rule here. So static template apps geometrics templates homepage, that鈥檚 the template we want to use, it must have this sling resource type. And then we want to convert that any pages matching those rules to this geodemo homepage. The container resource type is used for the containers as they鈥檙e created. And as they鈥檙e as the nodes are populated with the content. This is a proxy component to the core container component. As was as with the previous version of this tool, you can still specify the component order within the container. So this is going to have the header carousel container, and with a number, and then the lead component within the main container. This is the order that the components will be arranged from in the root that is created that is off the editable template. There鈥檚 a couple of components that are not necessary, because they were legacy from the editable template that are no longer referenced by the editable template. And our evaluation shows that we can delete the news list and the image component nodes from the root of the site. There鈥檚 a new feature in version 2.0, which is the ignore components. Out of the box, this this tool will now ignore the blueprint and live copy configuration nodes. This feature allows you to specify additional nodes that are desired to be left at the root of the JCR. So in that context, what we鈥檙e referring to is the any nodes that may exist here under JCR content that are wanting to be left alone and remain there. Now, if you do leave them alone, it should be noted that they will not be available for template editors or content authors to update. But maybe there鈥檚 a reason for that based on your evaluations. Finally, and at least we need to be able to rename the components as they鈥檙e being moved around. In this case, the par node needs to be renamed to container slash container. So if we look at the existing tree structure, this node is the par node, it contains all of our content, and it needs to move into the structure root container slash container component, which is this one here. Additionally, we want to rename the right par to this ID number here with container that was created when we when the editable when the template editor created the structure, we鈥檇 have to look at the structure to identify this node. So here鈥檚 the container with the digits. And we can see on the editable template that is this container over here. So if we look down, if we come down here to the page itself, we want the right par system to be converted and moved into that tree. That鈥檚 what this is for. So now that I鈥檝e gone over how we identify the configurations and how to prepare for the useful scope and use. So we鈥檙e going to go ahead down to the tools and then once a modernization tools are installed, they will show up here on the list a modernized tools, really use the page structure conversion tool, this one right here. So this, like all the tools shows a list of all jobs that have been run before I have a example here that was from a previous demonstration. This is the card view. This is this, you can also look at it in list view here. 10 minutes ago when I ran this and multi bucket, multi bucket is based off of how many items were in the job, a job that has more than 500 items will automatically be split into a buckets of 500 or portions thereof. So if this job had more than 500 items, there would be a checkmark here for multi bucket. If you鈥檙e in the card view, the card would look like a stack of cards as opposed to a single card. I don鈥檛 have any examples of that in this demo. But you should you鈥檒l notice it when you see it. Let鈥檚 go ahead and start this schedule as job so click on Create. As with all the tools in the suite, jobs need a job name for referencing later, as you saw on the cart on the view previously, to use geometrics homepage. Now, in version 2.0, there鈥檚 now additional options for converting pages. And those are how to handle the pages, the default is none. What that means is simply convert the page in place. The next option is restore. What this means is that you can restore a page to a state that was held previous to the last modernization run. Every time a modernization structure, job runs, or the all in one conversion, the page is versioned with an identifier. So it鈥檚 a simple normal page version. And this option allows you to revert back to that state prior to the last run before running again, I鈥檒l actually demonstrate that here in a minute. So the next is copy to target. What this is allows users to do is copy the page from the source location into the to a given destination location. So I鈥檒l go through this real fast. So copy target, if I were to select source path, and I go to geometric demo site, say I want to start here, select that, and target path, I want to copy that into this location, geo demo us, and then select. So what this will do is, every page I select in the next on the next screen, we鈥檒l have this portion of the path replaced with this portion. And I鈥檒l and by selecting the source path, it actually limits us in the next section to only paths that start with that portion. So if I click on that pages, you can see here I鈥檓 limited to geometrics. So I click on I can select English. If I were to select this, though, as we saw before, this page, he and already exists in the target location. If you select a page that already exists in our location, the job will continue, but that particular page will error out because it the system will not allow you to copy to the destination. If it already exists, it will prevent that from occurring. We should go back to no page handling for the purposes of this next demonstration. So we鈥檙e gonna go next, we鈥檙e going to add pages. So we come down here to geo demo site, English and select. As you can see here, one rule is found, we have one conversion, which is this page. As with all the tools, you can select more pages by simply clicking the Add Pages and add more to the list. Or you can select the so we can do that. So like this. Or you can what you can do is you can select a root page and include the children. That allows you to decide whether or not you want to click only or sorry, include only the direct descendants, or you can uncheck that and include all descendants of the pages selected. We鈥檙e gonna go ahead and do that and show you what it looks like. As you can see here, it loads all the pages and identifies whether or not there鈥檚 any rules. As you can see from this list, there actually aren鈥檛 any rules to process for these pages. So I鈥檓 actually going to remove all of these selections and go back to just a single page. So add pages, English, select, schedule the job. As for all the tools that confirm for that one schedules job, you must have permission to this page in order to schedule a job. In fact, the user interface won鈥檛 allow you to select any pages to which you do not have right permissions. So we鈥檙e gonna hit convert. And we鈥檙e going to run as with all the tools when you arrive after scheduling the job, you arrive at the job details page. This is where you can see the buckets on the left will be a bucket listed for any jobs that have over 500 items. So it鈥檒l be multiple buckets. Again, the first bucket will have 500 in each bucket after that we鈥檒l have the 500 or a portion thereof depending upon how many items you select. When you run this job, the the the paths are listed here on the right, what the process is, this job has been scheduled but not actually executed. In order to see the state, I can refresh the page, you can see the job has successfully been run. It should be noted that a given job is an all or one commit. So that way, when you run a scheduled job, if you have an error in the page, that is the prevents saving all the content, none of the content will be saved, pages will still be versioned, but they will not have any of the changes persistent. This is true of all the tools within the suite. Let鈥檚 go look at the JCR for this page. As you can see here, here鈥檚 the original content. So English JCR content, par control, etc. I鈥檓 going to refresh this page. We鈥檙e going to go in here and as you can see, it now uses the structure of the edible template. Now I want to demonstrate how to revert or reach running a restore job. Go back here, we鈥檙e gonna go return to the list. We鈥檙e gonna create a new job. This one鈥檚 going to be geometrics home page restore. Now if I were to do no page handling and click on Next, and add more pages, go to the same, select the same page, you can actually see that there are no rules to apply, because the structure is no longer valid. We can go back to this page. Actually, before I do that, I need to remove from the list. Go back to the previous page, and we can say restore. When you click on the restore option and select pages, it will actually check the original page version before to determine whether or not the rule any rules apply. So click on Select. As you can see, now there鈥檚 one rule that applies. Well, how does it know what rules apply? Let鈥檚 take a look at the site history. So we go to this page and look at the history. So timeline, we can actually see that there is a pre modernization version that was created two minutes ago. What happens is the user interface compares this version, which is before the structure was changed against the rules, any rules that were found, that will be what will happen. That will be what it runs against. So if I schedule this job, say yes, I want to convert this, it will revert the page to that previous state, then run the structure conversion rule, and then display the results. As you can see here, even though there鈥檚 not much to see on this view, because nothing really would have changed, the restore would have occurred and then it would have executed again, we should be able to see though in the timeline here, the fact that this page was restored. So you can pre modernization, page restored, page edited, all by the service configuration. That鈥檚 how to use the page structure conversion tool. Thank you for your time.