cancel
Showing results for 
Search instead for 
Did you mean: 

webform and workflow

mvlach
Champ in-the-making
Champ in-the-making
Hi all,

is there any possibility to start workflow only if some elements in filled webform are entered ?

For example:

I need to approve webform by some people if an attribute onFrontPage in news.xml is true. When is false, no approval is needed.

Thanks Mila
1 REPLY 1

pmonks
Star Contributor
Star Contributor
The best way to do this is to implement a custom workflow (http://wiki.alfresco.com/wiki/WorkflowAdministration) where the first step looks at the content and branches based on the value of the "onFrontPage" attribute.  The "true" branch would include a manual approval step, while the "false" branch would simply go directly to the promote-to-staging step of the workflow.  So while there is still workflow for all content, that workflow is 100% automatic (no manual intervention required) in some cases.

One wrinkle is that you might need to think about how to handle the case where a user submits multiple items to workflow as a single change set.  My thinking would be that you'd have to scan all of the content items in the payload of the workflow to see if any of them have the "onHomePage" flag set to true, but that's just a guess on my part as to your requirements.  😉

Also, there's an example custom WCM workflow included in http://issues.alfresco.com/browse/WCM-907.