How to mark a Custom Content type as Expired/Archived after a specific Date/Time in ORchard CMS ?
Requirement:: I created a custom content type: SideBarLinks. This type contains, among other things, two fields which are :
- ExpirationDate
Descriptive Text:- Date After which item will be marked Expired: - ExpirationStatus
Descriptive Text:- Is The Item Expired?
I am really not sure how to proceed further now. How Can I trigger some Function/Workflow/Program which will check the ExpirationDate and Set the ExpirationStatus accordingly ( Yes/No) ?
I see there is a similar feature called PublishLater thing in Orchard CMS, where we can set the Scheduled Publish Date and Time:

How is this thing done? is there some Workflow being executed automatically at the desired Date of ScheduledPublish ? Will be grateful if more details can be provided on implementation here. I have checked the Orchard.PublishLater inbuilt module but couldn't make much sense.

There's a module that does exactly that in Orchard Gallery https://gallery.orchardproject.net/List/Modules/Orchard.Module.Orchard.ArchiveLater
If you'd like it to use your own fields, you'll have to modify it.