cancel
Showing results for 
Search instead for 
Did you mean: 

Custom workflow on Share

samuele_atnis
Champ in-the-making
Champ in-the-making
Hi all,
can someone confirm that "custom workflows" are not allowed (at the moment) on SHARE?

Thanks in advance,
Samuele
12 REPLIES 12

zaizi
Champ in-the-making
Champ in-the-making
You can create custom workflow in Share. We've done quite a few. It doesn't automatically render all available workflows OOTB and it doesn't support the task models OOTB. But you can create required UIs yourself.

eferreira
Champ in-the-making
Champ in-the-making
Hi,

I'm currently using Alfresco 3.2, and I can't update to 3.3 so my question is how, or if anyone knows a starting point, to develop advanced workflow in Share 3.2…the all thing, not only the process but also the front-end, a little like we have in Explorer.

Thanks in advance

Eduardo

lucille_arkenst
Champ in-the-making
Champ in-the-making
In order for your custom workflow to be displayed in the "Select Workflow" dropdown in Share, you need to add a line to workflow.get.html.ftl, here:

<option value="wf:review">${msg("wf_review.title")}</option>
Does anybody know: In order to have it bypass the part where you have to "Select Assignee"… what do you have to do?

zaizi
Champ in-the-making
Champ in-the-making
The drop opens the Assign Workflow Dialog. If you want to skip that dialog, you'll need to add a custom button that calls the assign workflow or your custom assign workflow webscript in Alfresco directly.

lucille_arkenst
Champ in-the-making
Champ in-the-making
Zaizi, thank you for your reply.  I don't understand the concepts you are referring to.  "Custom assign workflow webscript" – I thought workflows were only set up using XML… even if I did set up a webscript how would Share know about it?  I am concerned I would be stuck in the same place I am in now.  "Custom button" – does that have to do with forms or something else?  Would you be so kind as to provide two links to a wiki or something describing in detail the concepts described here?

Thank you so much.

eferreira
Champ in-the-making
Champ in-the-making
Thanks for the reply.

What I want to know is if there are any sample where I can start to develop, on Share, the many stages of my custom advanced workflow…cause, on Share, the two workflows are hard-coded and we only have the approve stage on my tasks dashlet. What I want to accomplish is a multi-stage, multi-team, advanced workflow…. hope that I made myself clear enough.

Thanks once more for your time.

Eduardo

zaizi
Champ in-the-making
Champ in-the-making
@lucille.arkenstone 

You define an advanced workflow using XML. Based on the advanced workflow Alfresco Explorer renders the required UI for you to select users, teams, etc. For tasks in the workflow it renders the task dialog based on your task definition.

Alfresco Share doesn't support this at the moment. Alfresco 3.4 will have support for advanced workflow in Share. In the meantime if you want to use Advanced Workflow in Share, you'll need to code the Assign workflow screen yourself based on your advanced workflow defition. If you know which teams / users are going to be assigned the workflow in advance you can hard code these in the workflow definition and just create a button in Share to start the workflow.

For Share customisations check the Alfresco wiki.

@eferreira 

Alfresco ships with advanced workflow examples, but these are not activated. Check the source code / webapps directory for *processdefinition.xml files. They will give you an idea of how to define advanced workflow.

To enable it in Share see above post.

Ainga

mpb
Champ in-the-making
Champ in-the-making
I'm also having problems with Advanced Workflows in Share. Here's what's happening:

I've created a workflow that works fine from the Alfresco Browser.
I added an entry for my workflow to workflow.get.html.ftl.
From the Share Document Library, when I click on "Assign Workflow" for a file, that seems to work. I see the right task listed both in My Dashboard and from My Alfresco.
From My Dashboard, when I click on one of the possible actions for the workflow, nothing happens. So far as I can tell. Yet, when I click on "Manage Task" for the workflow in My Alfresco, the right dialog comes up and I can make the change.

How do I get make this same behavior (from My Alfresco) happen in My Dashboard (Share)?


Thanks.
Mary

zaizi
Champ in-the-making
Champ in-the-making
For now you'll have to build it yourself. It is scheduled for next version of Alfresco.