since ‎07-02-2019
‎12-10-2020
santhoshsrg
Level 3
JcrPackageManager.listPackages(WorkspaceFilter) returns empty list
Avatar

santhoshsrg

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...

Views

123

Likes

0

Replies

1
Re: Packaging Junit
Avatar

santhoshsrg

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)

Views

195

Likes

0

Replies

0
Re: Packaging Junit
Avatar

santhoshsrg

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

Views

269

Likes

0

Replies

0
Junit test case - Creating packages
Avatar

santhoshsrg

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...

Views

340

Likes

0

Replies

1
Re: Packaging Junit
Avatar

santhoshsrg

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...

Views

313

Like

1

Replies

2
Packaging Junit
Avatar

santhoshsrg

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...

Views

722

Likes

0

Replies

6
Package is not getting completely generated
Avatar

santhoshsrg

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...

Views

552

Likes

0

Replies

1
Re: Enrichment - Not able to create collection which item...
Avatar

santhoshsrg

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

Views

3.3K

Likes

0

Replies

0
Re: Enrichment - Not able to create collection which item...
Avatar

santhoshsrg

santhoshsrg
- Adobe Campaign Standard
Thanks for the reply @raj_mandalapu 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.

Views

3.6K

Likes

0

Replies

3
Enrichment - Not able to create collection which item length is greater than 255
Avatar

santhoshsrg

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...

Views

4.6K

Likes

0

Replies

6
Re: Restrict OOTB workflow for CustomGroup
Avatar

santhoshsrg

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.

Views

3.6K

Likes

0

Replies

0
Re: Restrict OOTB workflow for CustomGroup
Avatar

santhoshsrg

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?

Views

3.7K

Likes

0

Replies

2
Re: POST Servlet using Page resource type - Unable to pas...
Avatar

santhoshsrg

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!

Views

1.9K

Likes

0

Replies

0
Re: POST Servlet using Page resource type - Unable to pas...
Avatar

santhoshsrg

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...

Views

2.2K

Likes

0

Replies

0
Re: POST Servlet using Page resource type - Unable to pas...
Avatar

santhoshsrg

santhoshsrg
- Adobe Experience Manager
@smacdonald2008 @atyaf66 @Arun_Patidar Could you please share your input on this?

Views

2.3K

Likes

0

Replies

0
Re: POST Servlet using Page resource type - Unable to pas...
Avatar

santhoshsrg

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

Views

6.6K

Likes

0

Replies

0
Re: POST Servlet using Page resource type - Unable to pas...
Avatar

santhoshsrg

santhoshsrg
- Adobe Experience Manager
Actually I am uploading asset as "filename_timestamp.png". So each time, new asset should be uploaded to DAM

Views

6.6K

Likes

0

Replies

0
Re: POST Servlet using Page resource type - Unable to pas...
Avatar

santhoshsrg

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.

Views

6.6K

Likes

0

Replies

5
POST Servlet using Page resource type - Unable to pass form data
Avatar

santhoshsrg

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...

Views

11.2K

Likes

0

Replies

12
Re: AEM Page Editor error : Handler of component is inval...
Avatar

santhoshsrg

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

Views

2.5K

Likes

0

Replies

0
Re: AEM Page Editor error : Handler of component is inval...
Avatar

santhoshsrg

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

Views

3.2K

Likes

0

Replies

0
Re: AEM Page Editor error : Handler of component is inval...
Avatar

santhoshsrg

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

Views

3.2K

Likes

0

Replies

0
AEM Page Editor error : Handler of component is invalid -> TypeError: Cannot read property 'flow' of undefined
Avatar

santhoshsrg

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.

Views

6.0K

Likes

0

Replies

7
XTK-170017 error
Avatar

santhoshsrg

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.

Views

2.3K

Like

1

Replies

1
Re: Memo field is not working properly
Avatar

santhoshsrg

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.

Views

2.3K

Likes

0

Replies

0
Re: Memo field is not working properly
Avatar

santhoshsrg

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?

Views

2.2K

Likes

0

Replies

0
Re: Memo field is not working properly
Avatar

santhoshsrg

santhoshsrg
- Adobe Campaign Classic
Is there any workaround for this bug in Adobe Campaign? pierrec70731455​Vapsy​ hillaryc26951904​ Jean-Serge Biron​ florentlb​

Views

2.2K

Likes

0

Replies

0
Re: Memo field is not working properly
Avatar

santhoshsrg

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.

Views

2.2K

Likes

0

Replies

0
Memo field is not working properly
Avatar

santhoshsrg

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.

Views

7.0K

Likes

2

Replies

7
Stop running a workflow when an instance of the same workflow is running at the moment
Avatar

santhoshsrg

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.

Views

1.9K

Likes

2

Replies

1