cancel
Showing results for 
Search instead for 
Did you mean: 

wfl namespace not found for sample Activiti workflow

etech
Champ in-the-making
Champ in-the-making
I am attempting to run the sample Lifecycle Activiti workflow that is bundled with 4.2.c. All that I've done is removed the .sample from all of the xml files for the lifecycle workflow in tomcat/shared/classes/alfresco/extension and created a custom javascript file with which to start the workflow.

The workflow runs fine using the Workflow Console (/alfresco/faces/jsp/admin/workflow-console.jsp), however, when attempting to run via a rule assigned to a folder, I receive the following error message:

9 bytes (Failure: Failed to execute script 'workspace://SpacesStore/7f07da37-42bf-4e03-b96d-05fed39a590e': 03060241 Failed to execute supplied script: Namespace prefix wfl is not mapped to a namespace URI)


These are the files I renamed in the mentioned extension folder:

<ul>
<li>lifecycle-messages.properties</li>
<li>lifecycle-process.bpmn20.xml</li>
<li>lifecycle-workflow-context.xml</li>
<li>lifecycleModel.xml</li>
<li>lifecycle_processdefinition.xml (I'm pretty sure this is not needed because it is for jBPM, but renamed it anyway)</li>
</ul>

This is the command sequence that works fine using Workflow Console:


deploy activiti alfresco/extension/lifecycle-process.bpmn20.xml
start bpm:assignee=admin


This is my custom javascript file which is located in the repository/data dictionary/scripts folder:


function startWorkflow(assignee)
{
   var workflow = actions.create("start-workflow");
   workflow.parameters.workflowName = "activiti$activitiLifecycleApproval";
   workflow.parameters["bpm:workflowDescription"] = "Automated workflow. Current file: " + document.name;
   workflow.parameters["bpm:assignee"] = assignee;
   return workflow.execute(document);
}

function main()
{
   var name = document.name;
   var siteName = document.siteShortName;
  
   if (siteName == null)
   {
      if (logger.isLoggingEnabled())
         logger.log("Did not start workflow as the document named " + name + " is not located within a site.");
        
      return;
   }

   startWorkflow(document.properties.creator);
}

main();


Any clue as to why I'm receiving the above error?
1 REPLY 1

mitpatoliya
Star Collaborator
Star Collaborator
It seems like related to the "wfl:status" which is applied on every document which undergoes give workflow.
But if you have not tempered the lifecycleModel.xml file then it should work properly.
Is there any other error which you have noticed before or after this error in logs?
Please post more details from logs.