Browse
Hyland Connect
Hyland Community
Help
Sign In
What's New
Platform
Content Innovation Cloud
Content Innovation Cloud Blog
Alfresco
Alfresco Forum
Alfresco Blog
Alfresco Archive
Nuxeo
Nuxeo Forum
Nuxeo Blog
Community Blog
How to check if document has workflow?
e-no91
Champ in-the-making
Options
Mark as New
Subscribe to RSS Feed
Permalink
Print
08-05-2014
02:55 AM
Hi,
What is the code in js to check if document has workflow, similar to using document.isContainer to check if document is a folder?
Thank you in advance!
Labels:
Labels:
Archive
Customizing
ECM Archive
All forum topics
Previous Topic
Next Topic
1 REPLY
1
afaust
Legendary Innovator
Options
Mark as New
Subscribe to RSS Feed
Permalink
Print
08-05-2014
04:41 AM
Hello,
using the <a href="
https://wiki.alfresco.com/wiki/4.0_JavaScript_API#ScriptNode_API
">ScriptNode API</a> you can get the workflows of a document by using document.activeWorkflows and then check the length of the array against 0.
Regards
Axel
Post Reply