since ‎07-02-2019
‎22-08-2020
santhoshsrg
Level 3
JcrPackageManager.listPackages(WorkspaceFilter) returns empty list santhoshsrg - Adobe Experience Manager
Hi, I am just exploring on Jcr Package Manager. I tried methods listPackages() and listPackages(WorkspaceFilter). The non-parameterised method listPackages() works fine but listPackages(WorkspaceFilter) is always returning empty list. PFB the code snippets i have tried and share your thoughts. Thanks in advance !! Approach 1DefaultWorkspaceFilter workspaceFilter = new DefaultWorkspaceFilter();String[] packageFilters = new String[] {PAGE1_PATH, PAGE2_PATH};for (PathFilterSet packageFilter : packa...
48
Views
0
Likes
1
Answers and Comments
Re: Packaging Junit santhoshsrg - Adobe Experience Manager
In the example https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/test/java/com/adobe/acs/commons/packaging/impl/AssetPackagerServletImplTest.java, they have used jcrPackageManager.create(groupName, name, version) which is also working for me. But methods mentioned below are not working. These are throwing exceptions in "org.apache.jackrabbit" classes. Methods not working:jcrPackageManager.create(rootNode, pkgName)jcrPackageManager.assemble(jcrPackage, listener)
141
Views
0
Likes
0
Answers
Re: Packaging Junit santhoshsrg - Adobe Experience Manager
Thanks for update. I have followed the same approach as in the first example but i am getting issue on OOTB org.apache.jackrabbit.oak.jcr.session.ItemImpl.save method during jcrPackageManager.create(parentNode, pkgName) function call
208
Views
0
Likes
0
Comments
Junit test case - Creating packages santhoshsrg - Adobe Experience Manager
I am trying to create Junit test case for creating packages. I have used link https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/test/java/com/adobe/acs/commons/packaging/impl/AssetPackagerServletImplTest.java for this. PFB my service and Junit code. I am getting an exception for creating package which i have mentioned below. Any help would be great. Thanks in advance!! Exception:javax.jcr.RepositoryException: Item.save() not allowed on new itemat org.apache.jack...
285
Views
0
Likes
1
Answers and Comments
Re: Packaging Junit santhoshsrg - Adobe Experience Manager
Thanks @BrianKasingli and @Veena_Vikram for answers. @BrianKasingli The first example you shared matches most of my scenario. But still I am not able to create package using that approach. I have updated my code based on that. But I am getting different exception now. PFB part of my code.Could you please let me know if there is any mistake. The service actually works fine. The problem is happening only in Junit.Exception:javax.jcr.RepositoryException: Item.save() not allowed on new itemat org.ap...
252
Views
1
Like
2
Answers
Packaging Junit santhoshsrg - Adobe Experience Manager
Hi, I have created a service to create packages. I want to know how to write Junit test for this service. PFB the service code for creating package. Any help would be great. Thanks in advance!! @reference private Packaging packaging; public void createPackage(Node rootNode, String pkgName) { JcrPackageManager jcrPackageManager = packaging.getPackageManager(session); JcrPackage jcrPackage = jcrPackageManager.create(rootNode, pkgName); JcrPackageDefinition jcrPackageDefinition = jcrPackage.getDefi...
640
Views
0
Likes
6
Answers and Comments
Package is not getting completely generated santhoshsrg - Adobe Experience Manager
Hi, I am trying to create a package in a workflow process. The package will contain filters as current payload and workflow instance. PFB the code which i have used for this.My issue is the workflow instance is not getting built completely. I save workflow instance for history purpose like getting approval notes from participant. Please let me know if i am missing any step in building package. Thanks in advance !! Node rootNode = getRootNode(session, siteName); JcrPackageManager jcrPackageManage...
510
Views
0
Likes
1
Answers and Comments
Re: Enrichment - Not able to create collection which item... santhoshsrg - Adobe Campaign Standard
It is actually a temp field created in Enrichment activity. I am not able to change the length of this temp field
3218
Views
0
Likes
0
Comments
Re: Enrichment - Not able to create collection which item... santhoshsrg - Adobe Campaign Standard
Thanks for the reply @rajas66269496 Yes, The length of itemNameImage is getting restricted by default to 255. But i want to store more than 255 characters. The problem is i am not able to change the itemNameImage field length in Enrichment activity. Please share your input if this collection field "itemNameImage" length can be changed.
3469
Views
0
Likes
3
Answers
Enrichment - Not able to create collection which item length is greater than 255 santhoshsrg - Adobe Campaign Standard
Hi All, Use Case:I have to send an email to customers who have purchased items. I have to send email with item image links which customers have purchased. Approach followed:I have created two schemas for this Order, OrderLineItem. I have followed the below steps in workflow.I have queried recent Order records using Query activity.Then I have used Enrichment activity to create collection(Size: 3) "itemNameImage" of Order line item and add it to temporary schema. The collection variable itemNameIm...
4504
Views
0
Likes
6
Answers and Comments
Re: Restrict OOTB workflow for CustomGroup santhoshsrg - Adobe Experience Manager
Thanks for your reply. I tried to remove permission in /var/workflow/models but by doing so all workflow models (both project and OOTB) are disappearing.
3544
Views
0
Likes
0
Comments
Re: Restrict OOTB workflow for CustomGroup santhoshsrg - Adobe Experience Manager
Hi @Arun_Patidar,I followed this approach. It hides most of OOTB workflows except the ones present directly under /var/workflow/models. Is there any way to hide these workflows too?
3609
Views
0
Likes
2
Answers
Re: POST Servlet using Page resource type - Unable to pas... santhoshsrg - Adobe Experience Manager
I did a small mistake. I was using URL as pagePath.save.html in ajax to hit my servlet. Then i changed URL to pagePath_jcr_content.save.html. This worked. Thank you all for you inputs!
1863
Views
0
Likes
0
Answers
Re: POST Servlet using Page resource type - Unable to pas... santhoshsrg - Adobe Experience Manager
Hi, I am passing Image in base64 format to servlet as form data and in servlet i am uploading image to asset. The issue occurs before servlet code ran. JS Code:let data = {img: img};$.ajax({type: "POST",url: url,data,success: function (response) {displayModal(SUCCESS_MSG);},error: function(XMLHttpRequest, textStatus, errorThrown) { displayModal(ERROR_MSG);}}).done(function() { $(".logo-mobile img").show();}); Servlet code: @component(immediate = true, service = Servlet.class,property={ "sling.se...
2191
Views
0
Likes
0
Answers
Re: POST Servlet using Page resource type - Unable to pas... santhoshsrg - Adobe Experience Manager
@smacdonald2008 @atyaf66 @Arun_Patidar Could you please share your input on this?
2206
Views
0
Likes
0
Answers
Re: POST Servlet using Page resource type - Unable to pas... santhoshsrg - Adobe Experience Manager
Sorry for the misunderstanding. Servlet functionality is working fine when component resource type is used. The problem is only with servlet with page resource type
6522
Views
0
Likes
0
Comments
Re: POST Servlet using Page resource type - Unable to pas... santhoshsrg - Adobe Experience Manager
Actually I am uploading asset as "filename_timestamp.png". So each time, new asset should be uploaded to DAM
6545
Views
0
Likes
0
Comments
Re: POST Servlet using Page resource type - Unable to pas... santhoshsrg - Adobe Experience Manager
I am just using POST servlet to upload image to asset. But I am not able to pass any data. When i didn't pass data, servlet is working fine.
6556
Views
0
Likes
5
Answers
POST Servlet using Page resource type - Unable to pass form data santhoshsrg - Adobe Experience Manager
Hi everyone, I wanted to create a POST servlet using Resource Type and pass form data. I will be calling this servlet from Component X which is an embedded component. I created a POST servlet using Page component's resourceType. It works fine when form data is not passed. But when form data is passed, it is throwing some exceptions like in the screenshot below. The data i am trying to pass is "img" as in screenshot. I also tried to create POST servlet using Component Y's resourceType and i was a...
11114
Views
0
Likes
12
Answers and Comments
Re: AEM Page Editor error : Handler of component is inval... santhoshsrg - Adobe Experience Manager
Thanks @nirmaljosehere and @nidhip010816 I am using AEM 6.5This issue occurs when i build my project. I tried to Invalidate and rebuild clientlibs but this doesn't solve the issue
2381
Views
0
Likes
0
Answers
Re: AEM Page Editor error : Handler of component is inval... santhoshsrg - Adobe Experience Manager
Thanks @Nirmal_Jose I am using AEM 6.5 This issue occurs when i build my project. I tried to Invalidate and rebuild clientlibs but this doesn't solve the issue
3045
Views
0
Likes
0
Comments
Re: AEM Page Editor error : Handler of component is inval... santhoshsrg - Adobe Experience Manager
Thanks @Nirmal_Jose I am using AEM 6.5This issue occurs when i build my project. I tried to Invalidate and rebuild clientlibs but this doesn't solve the issue
3059
Views
0
Likes
0
Comments
AEM Page Editor error : Handler of component is invalid -> TypeError: Cannot read property 'flow' of undefined santhoshsrg - Adobe Experience Manager
Hi, When i open my page in edit mode, i am getting the issue as in screenshot. Please provide solution to resolve this issue.
5845
Views
0
Likes
5
Answers and Comments
XTK-170017 error santhoshsrg - Adobe Campaign Standard
I tried to import a workflow from Stage to Prod environment. The workflow works fine in Stage environment and the export is also successful. When i tried to import the same workflow, i am getting this error "XTK-170017 The expression definition exceeds the number of authorized recursions". I am not sure why this problem occurred. Please share solution for this issue.
2244
Views
1
Like
1
Answers and Comments
Re: Memo field is not working properly santhoshsrg - Adobe Campaign Classic
I was trying to store a long text field. So I used memo data type.Later i tried String type with length = 2000 for field Description. This worked fine for me.
2123
Views
0
Likes
0
Answers
Re: Memo field is not working properly santhoshsrg - Adobe Campaign Classic
How do i declare XML type fields? Do XML fields have any restriction on the size? (Like String - 255)@pierrec70731455 Could you please share examples?
2065
Views
0
Likes
0
Answers
Re: Memo field is not working properly santhoshsrg - Adobe Campaign Classic
Is there any workaround for this bug in Adobe Campaign? pierrec70731455​Vapsy​ hillaryc26951904​ Jean-Serge Biron​ florentlb​
2078
Views
0
Likes
0
Answers
Re: Memo field is not working properly santhoshsrg - Adobe Campaign Classic
Adding fields Disclaimer and Intro Feature memo fields in Query ActivityI have selected "Display target" option on the outbound query transition. I got the below result, memo fields are missing.Vapsy, hillaryc26951904, pierrec70731455, Jean-Serge Biron, guillermoL Kindly provide your feedback.
2096
Views
0
Likes
0
Answers
Memo field is not working properly santhoshsrg - Adobe Campaign Classic
Hi,I have a memo field "Description" in my custom schema. I wanted to display this field in my delivery. I added this field in Query activity using "Add data" option.But the field is not moving to next transition. I didn't get any error too.Vapsy​, hillaryc26951904​, pierrec70731455​, Jean-Serge Biron​, guillermoL​ Kindly provide your feedback.
6836
Views
2
Likes
7
Answers and Comments
Stop running a workflow when an instance of the same workflow is running at the moment santhoshsrg - Adobe Campaign Classic
Hi,I want to run my workflow daily in schedule. I don't want to run my workflow if already an instance of workflow is not finished. How can we achieve this?Vapsy​, florentlb​, smacdonald2008​, Jean-Serge Biron​, hillaryc26951904​ kindly provide your feedback.
1803
Views
2
Likes
1
Answers and Comments