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

Custom Generated Data - Purge Workflow

Avatar

Avatar
Validate 1
Level 2
Mat_Barreto
Level 2

Likes

6 likes

Total Posts

31 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
Mat_Barreto
Level 2

Likes

6 likes

Total Posts

31 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
Mat_Barreto
Level 2

09-01-2017

Hello guys.

So, I'm storing a form data my visitors fill in AEM, using the Store Content action on my form.

However, I need to clean this user generated data periodically, so my user can get reports every month with just that month data.

Is there an easy way to do this? The optimal way would be to inform a path in a workflow and the it would delete everything below this node. I've already explored some of the ootb workflows and couldn't achieve this goal (there is one that delete content, but a node at a time).

Edit: Working with AEM 6.0, SP3.

 

Thanks very much.

Matheus Barreto.

Accepted Solutions (0)

Answers (6)

Answers (6)

Avatar

Avatar
Validate 1
Level 2
Mat_Barreto
Level 2

Likes

6 likes

Total Posts

31 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
Mat_Barreto
Level 2

Likes

6 likes

Total Posts

31 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
Mat_Barreto
Level 2

30-01-2017

Hello, thanks for the answer. Do you mind elaborating in the "ecma script"? Can you write me a sample? Thanks!

Avatar

Avatar
Give Back
Employee
mayankg
Employee

Likes

3 likes

Total Posts

10 posts

Correct Reply

3 solutions
Top badges earned
Give Back
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Give Back
Employee
mayankg
Employee

Likes

3 likes

Total Posts

10 posts

Correct Reply

3 solutions
Top badges earned
Give Back
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
mayankg
Employee

26-01-2017

       If you are looking for a workflow which deletes all nodes below a given path then that should be easy to author if it is not available OOTB. You simply need to drag Process step in the workflow and write ecma script to delete the path and it's child nodes.

Avatar

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

136 likes

Total Posts

445 posts

Correct Reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

136 likes

Total Posts

445 posts

Correct Reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile
workflowuser
Employee

24-01-2017

have you tried storing data specific to month. For example Jan data under Jan node, Feb data under Feb Node

, This way it will be easier to purge the nodes

Avatar

Avatar
Validate 1
Level 2
Mat_Barreto
Level 2

Likes

6 likes

Total Posts

31 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
Mat_Barreto
Level 2

Likes

6 likes

Total Posts

31 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
Mat_Barreto
Level 2

23-01-2017

Waiting for some help from the experts. Been looking for a solution in the platform documentation without success.

Avatar

Avatar
Validate 1
Level 2
Mat_Barreto
Level 2

Likes

6 likes

Total Posts

31 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
Mat_Barreto
Level 2

Likes

6 likes

Total Posts

31 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
Mat_Barreto
Level 2

11-01-2017

Kautuk, I'm using AEM 6.0 and the website component form to get user inputed data, not the "AEM Forms" adaptative one or something like that. Also, the Purge workflow of a node children nodes I need to implement is kind of AEM general use, right? Anyway, thanks for move it out to the right section. Hoping the experts can help 🙂

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

09-01-2017

Hi

Moving this post to AEM "Forms" topic so that contextual experts can help you.

~kautuk