Folder of type WFs. What if I put anything other than WFs in that folder? | Community
Skip to main content
AEM_Forum
Level 10
September 12, 2020
Solved

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

  • September 12, 2020
  • 2 replies
  • 1146 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jonathon_wodnicki

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

2 replies

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
September 14, 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

ParthaSarathy
Community Advisor
Community Advisor
September 14, 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.

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.

 

Regards,

ParthaSarathyS

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups