cancel
Showing results for 
Search instead for 
Did you mean: 

Aikau forms in workflow

nickchase
Champ in-the-making
Champ in-the-making

I would like to create a complex form in a workflow where various field visibility depends on inputs in other fields.  I believe the best approach to do this is in Aikau.  I have looked for information but I dont understand how to do this - or if it is even possible.  I have seen that there is an Aikau based form service under development from a previous post (there is a link in this post to a blog entry but the link does not work).  I believe that the piece under development is to render the existing XML defined workflow forms in share-config-custom.xml using Aikau widgets - I'm trying to understand if it is possible to define the form in Javascript.

Thanks

Nick

5 REPLIES 5

afaust
Legendary Innovator
Legendary Innovator

The default Share workflow form UI does not support Aikau - not natively and not via the (suspended) development effort you read about. You are correct in your understanding that the forms engine work was focussed on transforming the existing XML configuration into a usable Aikau form. This feature was meant to be used within Aikau components / pages.

If you want to configure your forms using JavaScript, then the best option is to simply write a custom UI for your workflows and use the base Aikau form widgets to create your form(s). You can completely ignore the feature that turned the XML-based form configurations into runtime forms, and thus don't have to rely on an experimental component that is no longer being actively developed.

nickchase
Champ in-the-making
Champ in-the-making

Hi Axel

Your clarity is very valuable and much appreciated.

I understand how to make a custom FTL based template which I can include in an XML form definition.  I dont understand how to make a complete custom form - are there any blogs/documentation you are aware of.  Once again thanks for your time.

afaust
Legendary Innovator
Legendary Innovator

If you were to create a custom form based on Aikau you wouldn't really have to bother with FTL and XML form definition anymore. Take a look at the AIkau examples / tutorials that exist, e.g. Aikau Mini-Examples - Simple Form or Tutorial Chapter 7 and 16.

nickchase
Champ in-the-making
Champ in-the-making

Apologies for making this a long conversation. I have created forms in

Aikau about 4 times so have no issue here. But....I have no idea how to

display these forms when a user selects a task from their task list.

If we can understand this point then worlflow becomes amazingly powerful.

afaust
Legendary Innovator
Legendary Innovator

Oh - so the actual question then is how you can extend the default Share UI for workflows to show Aikau forms. That was not apparent to me from the beginning. Well, that is actually the tricky part because the legacy YUI 2 UI for workflows in Alfresco Share is one of the most annoyingly fidgety things to customise - no one had ever put any effort into making that easily customisable.

You might want to consider to add make a customisation to the "Alfresco.component.TaskList" widget (found in task-list.js which is part of the "My Tasks" page) and its function "renderCellActions" which will render the page links for task details / edit forms. You could - for specific types of tasks - substitute the link with an URL to your Aikau-based task form page.