Folder of type WFs. What if I put anything other than WFs in that folder?

Avatar

Avatar
Contributor 2
Level 8
AEM_Forum
Level 8

Likes

147 likes

Total Posts

631 posts

Correct reply

4 solutions
Top badges earned
Contributor 2
Validate 100
Validate 50
Validate 25
Validate 10
View profile

Avatar
Contributor 2
Level 8
AEM_Forum
Level 8

Likes

147 likes

Total Posts

631 posts

Correct reply

4 solutions
Top badges earned
Contributor 2
Validate 100
Validate 50
Validate 25
Validate 10
View profile
AEM_Forum
Level 8

12-09-2020

Hi all,

I created a folder of type WFs. What if I put anything other than WFs in that folder?

Will it raise error then and there itself?

How is this rule of folder type enforced?

Appreciate all your responses.

Thanks,

Rama.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,097 posts

Correct reply

516 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,097 posts

Correct reply

516 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

13-09-2020

Hi,

 

Folders are just a folder-id col on the tables, they can be assigned arbitrarily.

Nothing will stop you from adding a non-WF to a WF folder, besides the console UI.

Non-WF objects won't show in the folder since it's querying the table of its type, essentially 'select * from xtkworkflow where folder-id=...'.

 

Thanks,

-Jon

Answers (1)

Answers (1)

Avatar

Avatar
Affirm 5
Level 4
ParthaSarathy
Level 4

Likes

42 likes

Total Posts

66 posts

Correct reply

30 solutions
Top badges earned
Affirm 5
Establish
Give Back
Boost 5
Boost 3
View profile

Avatar
Affirm 5
Level 4
ParthaSarathy
Level 4

Likes

42 likes

Total Posts

66 posts

Correct reply

30 solutions
Top badges earned
Affirm 5
Establish
Give Back
Boost 5
Boost 3
View profile
ParthaSarathy
Level 4

14-09-2020

Hi Rama,

The folders are typed: the value of the sModel field specifies the type of data that can be contained in the folder.
navigate to data schema > xtk:folder > data (tab) > configure list > add @model (Template)
We can see model for each folder as below image.
Model.png
So when we create a folder of type 'workflow', its model will be 'xtkWorkflow'.
We can't put any other different type into that folder. For example, we can't drag and drop workflow into data schema folder. The cursor icon will change as below picture.

error.png

 

Regards,

ParthaSarathyS