cancel
Showing results for 
Search instead for 
Did you mean: 

Different views of the workflows

rodrigoa
Champ in-the-making
Champ in-the-making
Hello everybody,

In my project, I created four sites in my share, is it possible to configure each site to show only a specific set of workflows when I go to the action to start a workflow?

For example, When I try to start a workflow over document that is in the site redaction I do not want to show the Adhoc workflow, but if the document is in the site publiees I want give this possibility.

I would appreciate any kind of help,

Thanks,

Rodrigo Araujo.
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

I do not believe Alfresco currently has a configuration option for this, but you should be able to customize it into the UI relatively easy. All you would need is to pass along your site identifier from the documentlibrary action to the start workflow screen and have the web script that renders the selection list evaluate that to filter the workflows. Adaptions should only be required in the client action JS, the Surf component XML and the web script.

Keep in mind though that such an approach is just a soft barrier for users to start workflows - nothing prevents users from starting a workflow from site A, but choosing documents from site B in the start task form for the actual workflow. While you restricted access to the workflow in site B, users can circumvent this restriction.

Regards
Axel

rodrigoa
Champ in-the-making
Champ in-the-making
Axel,

thank you very much for your answer.

Problem solved.

I add this in my share-config-custom.xml

   <config evaluator="string-compare" condition="Workflow">
      <hidden-workflows>
         <workflow name="jbpm$wf:adhoc"/>
         <workflow name="jbpm$wf:review"/>
         <workflow name="jbpm$wf:reviewpooled"/>
         <workflow name="jbpm$wfSmiley Tonguearallelreview"/>
         <workflow name="jbpm$wfSmiley Tonguearallelgroupreview"/>
         <workflow name="jbpm$wfl:lifecycleapproval"/>
         <workflow name="jbpm$wswf:reviewPublish"/>
         <workflow name="jbpm$wswfSmiley TongueublishTree"/>
         <workflow name="jbpm$wswf:readContactProcess"/>         
      </hidden-workflows>
   </config>

Rodrigo