Noderef properties
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2014 05:53 AM
Hello,
I want to know how to get a document porperty such as the date when this document is posted, I guess I'm gonna use nodeservice but don't know how, and one more question, can I plan to run a java class as a scheduled action in my context.xml, I use maven structure with alfresco community.
ps: I'm a beginner in alfresco
thank you
I want to know how to get a document porperty such as the date when this document is posted, I guess I'm gonna use nodeservice but don't know how, and one more question, can I plan to run a java class as a scheduled action in my context.xml, I use maven structure with alfresco community.
ps: I'm a beginner in alfresco

thank you
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2014 06:06 AM
You can capture properties once content is created. Question is where you want to capture it and where you want to pass it or store it?
Now for scheduled actions with java class you need to create cron-job in alfresco you can refer following link to get details on that.
http://blog.arvixe.com/tag/alfresco-cron-jobs/
Now for scheduled actions with java class you need to create cron-job in alfresco you can refer following link to get details on that.
http://blog.arvixe.com/tag/alfresco-cron-jobs/
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2014 06:36 AM
thank you for your help, in fact documents are posted via a portal, but let's consider that the document is being posted in alfresco, and I want to store the date in a java class to use it to check the expiration date of a document using a scheduled job to make a reminder
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2014 06:10 AM
To get the date, you can use :
Date createdDate = (Date) this.nodeService.getProperty(nodeRef, ContentModel.PROP_CREATED);
Yes, you can run a java class as a scheduled action. You need to make entry in scheduled-jobs-context.xml file.
Refer these links :
http://wiki.alfresco.com/wiki/Scheduled_Actions
https://forums.alfresco.com/forum/general/non-technical-alfresco-discussion/scheduled-action-service...
Date createdDate = (Date) this.nodeService.getProperty(nodeRef, ContentModel.PROP_CREATED);
Yes, you can run a java class as a scheduled action. You need to make entry in scheduled-jobs-context.xml file.
Refer these links :
http://wiki.alfresco.com/wiki/Scheduled_Actions
https://forums.alfresco.com/forum/general/non-technical-alfresco-discussion/scheduled-action-service...
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2014 10:45 AM
thank you for your help
