I was wondering if it is possible for developers to setup an approval workflow using the umbraco API. For eg. let's say that site users can add comments to an article. These comments are obviously of document type "comment" whose nodes that will appear as children article.
I know it is quite easy to set an approval workflow on the backend where a user(such as a writer) can be allowed to only create and send a node for approval but not be able to publish a node.
Would this be possible through the API?
I was looking for something like
//Get the document type of comment DocumentType dt = DocumentType.GetByAlias("Comment"); User author = User.GetUser(0); //get id of parent node int parentId = getArticleID(); //create a new document Document doc = Document.MakeNew("New comment", dt, author, pareentID); //send for approval //??What do I do here, something like doc.sendForApproval() ?
Workflow management through the API
Hi,
I was wondering if it is possible for developers to setup an approval workflow using the umbraco API. For eg. let's say that site users can add comments to an article. These comments are obviously of document type "comment" whose nodes that will appear as children article.
I know it is quite easy to set an approval workflow on the backend where a user(such as a writer) can be allowed to only create and send a node for approval but not be able to publish a node.
Would this be possible through the API?
I was looking for something like
You could try
and have you users register for notifications using the built-in notification system. I've not tried it but see no reason why it would not work.
Thanks, will check it out a bit more on the API.
is working on a reply...