cancel
Showing results for 
Search instead for 
Did you mean: 

Start Advanced Workflow from a custom template

coffman
Champ in-the-making
Champ in-the-making
Hello.

I have a template (docs_rejected.ftl) that shows on a space a lot of documents rejected on a previous workflow (in fact the  documents of Documents Rejected Space).

On this template I would like to show a link to start again an Advanced Workflow, how can i do this ??

I try with direct link, command servlet, but nothing successful.

Can i call a dialog from a ftl ?

Can i call an action from a ftl ?

Thanks in advance
2 REPLIES 2

kevinr
Star Contributor
Star Contributor
There is a JavaScript API for workflow that may do what you want:
http://wiki.alfresco.com/wiki/Workflow_JavaScript_API

mabayona
Champ on-the-rise
Champ on-the-rise
Probably the best way of doing it is with a combination of simple and advanced workflow:

Define a rule (simple workflow) in the space that moves the selected file to another space and in this space define a rule (inbound) that asociates an advanced workflow to it.

Hope it helps.