cancel
Showing results for 
Search instead for 
Did you mean: 

Two simple workflows for a same space?

agey
Champ in-the-making
Champ in-the-making
Hello all,

I have a question. Is it possible to create two workflows for the same space? I need to create a workflow that sends files to a space and other one that sends to another space. I need that the menu of all files of a space has two options to send the file to a space or to other one.

Is it possible to create two simple workflows for the same space? There is another way to do it?

Thanks in advance
3 REPLIES 3

sifirpo
Champ in-the-making
Champ in-the-making
Yes it is possible.
You have to create more rule by "Create Rule Wizard" with different name.
You can see the rule in the "More Action" drop-down list, but is available only with a new added content.
bye

agey
Champ in-the-making
Champ in-the-making
Ok, I have created two simple workflows, in the space A, by "Create Rule Wizard":

Option 1.- To move files to folder B, (to approve flow, disabled the step of rejection)
Option 2.- To move files to folder C, (to approve flow, disabled the step of rejection)

Then, I have added a new content in the space A but the menu of de file does not have both options for the two workflow, only shows "Option 1". Why does this happen? What can I do in order that shows both options?

Thanks

sifirpo
Champ in-the-making
Champ in-the-making
Maybe, because in web-client-config-actions.xml file there is a only one configuration for only one approve and reject flow.
This is the script of configuration for each documents:
       <!– Actions Menu for a document in the Browse screen –>
         <action-group id="document_browse_menu">
            <action idref="preview_doc" />
            <action idref="update_doc" />
            <action idref="cancelcheckout_doc" />
            <action idref="approve_doc" />
            <action idref="reject_doc" />
            <action idref="cut_node" />
            <action idref="copy_node" />
         </action-group>

and this the action details configuration for approve_doc and reject_doc:
<!– 'Approve' workflow step for document –>
         <action id="approve_doc">
            <evaluator>org.alfresco.web.action.evaluator.ApproveDocEvaluator</evaluator>
            <label>#{actionContext["app:approveStep"]}</label>
            <image>/images/icons/approve.gif</image>
            <action-listener>#{DocumentDetailsBean.approve}</action-listener>
            <action>browse</action>
            <params>
               <param name="id">#{actionContext.id}</param>
            </params>
         </action>

         <!– 'Reject' workflow step for document –>
         <action id="reject_doc">
            <evaluator>org.alfresco.web.action.evaluator.RejectDocEvaluator</evaluator>
            <label>#{actionContext["app:rejectStep"]}</label>
            <image>/images/icons/reject.gif</image>
            <action-listener>#{DocumentDetailsBean.reject}</action-listener>
            <action>browse</action>
            <params>
               <param name="id">#{actionContext.id}</param>
            </params>
         </action>.
A work around is create only one action with approve (to move to folder B) and reject (to move to folder C).