cancel
Showing results for 
Search instead for 
Did you mean: 

View workflow in Alfresco 4.2a

phaethon
Champ in-the-making
Champ in-the-making
View workflow screen does not work (and parts of task details screen) in Alfresco 4.2a by default. Adding this to main function in webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/datadata-loader.js fixes the problem:

   if (args.eventName != null)
   {
      dataLoader.options.eventName = args.eventName;
   }

Actually the problem was introduced by ~5000 revision old changes in SVN. I wonder how many people are using workflows in community edition.
6 REPLIES 6

fenster
Champ in-the-making
Champ in-the-making
I put this solution into comments on bug reports ALF-16351 and ALF-16338.

bsprakash
Champ in-the-making
Champ in-the-making
Hi..

I tried inserting .. But still workflow drop down menu is not showing up..

function main()
{
   var dataLoader = {
      id : "DataLoader",
      name : "Alfresco.DataLoader",
      options : {
         url : (args.url != null) ? args.url : ""
      }
   };
   if (args.eventData != null)
   {
      dataLoader.options.eventData = args.eventData;
   }
   if (args.useProxy != null)
   {
      dataLoader.options.useProxy = Boolean(args.useProxy);
   }
   if (args.failureMessageKey != null)
   {
      dataLoader.options.failureMessageKey = args.failureMessageKey;
   }
   model.widgets = [dataLoader];
}


main();

if (args.eventName != null)
{
dataLoader.options.eventName = args.eventName;
}


Please let me know if i missed anything….

I am using
Alfresco Community v4.2.0
(4471) schema 6020
Spring Surf and Spring WebScripts - v1.2.0
(Release 1174)

phaethon
Champ in-the-making
Champ in-the-making
What exactly do you mean by 'workflow drop down menu'?

bsprakash
Champ in-the-making
Champ in-the-making
I mean,

When we select "Start Workflow" on a Document., It will open a different page., There we can select options like Ad-Hoc Review or Group Review etc..
In 4.0 ., it used to work fine. But after migrating to 4.2., it stopped working.

Hope you got what i am looking for…
Please help me…

adrien
Champ in-the-making
Champ in-the-making
Still get the problem in 4.2.b and adding the code didnt fix the problem. Do you need to restart server?

cafeguy
Champ in-the-making
Champ in-the-making
Thanks for this. It worked for me.  This is for others encountering the same issue.

   if (args.failureMessageKey != null)
   {
      dataLoader.options.failureMessageKey = args.failureMessageKey;
   }
   if (args.eventName != null)
   {
      dataLoader.options.eventName = args.eventName;
   }
   model.widgets = [dataLoader];

Alfresco Community 4.2a