AnsweredAssumed Answered

Alfresco shows the right task title but fails to show task description

Question asked by gpeter on Jul 22, 2014
Latest reply on Aug 3, 2014 by jakepens71
Hi there,
Thanks to JPotts guide to advanced workflows i got a decent understandigs of how to exploit them and how to interact with them via webscripts.
Now I'm facing a problem that does not report any error log so i don't know how to fix it.
Basically i can give to the task the correct title via the messages/ file, but from the very same file alfresco does not get the "description".
I have to use this and not share because i need to read them via webscript [ service/api/task-instances ].
In the end what i get is:

"name": "wpa:anagraficaTask",
"title": "Task's Title",
"description": "ThisIsTheNameFieldInActivityDesigner"

Instead of :

"name": "wpa:anagraficaTask",
"title": "Task's Title",
"description": "This should be the description"

So it reads workflow's name and description correctly, the task's name correctly but not the task description( note that "ThisIsTheNameFieldInActivityDesigner" is the Name form in the task properties in Activity Designer ).

Here are the configuration files (i have cut off redundant/optional parts to enhance readability […]):

<bean id="wpa.sciaWorkflowBootstrap" parent="workflowDeployer">
   <property name="workflowDefinitions">
         <prop key="engineId">activiti</prop>
         <prop key="location">alfresco/extension/workflows/scia.bpmn</prop>
         <prop key="mimetype">text/xml</prop>
         <prop key="redeploy">true</prop>
    <property name="labels">
    <property name="models">

messages/ :

wpa_workflowmodel.type.wpa_anagraficaTask.title=Task Title should be the description

model/wpamodel.xml :

<model name="wpa:workflowmodel" xmlns="">
<!– Import Alfresco Dictionary Definitions –>
      <import uri="" prefix="d" />
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="" prefix="cm" />
      <import uri="" prefix="bpm" />            
<!– Introduction of new namespaces defined by this model –>
   <namespace uri="iconn.test.wrapperpa" prefix="wpa" />

   <type name="wpa:anagraficaTask">

user task section in the bpmn:

    <userTask id="usertask6" name="ThisIsTheNameFieldInActivityDesigner" activiti:assignee="${}" activiti:formKey="wpa:anagraficaTask">
        <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[logger.log("|=====1====| executing js di create anagrafica");
var node = bpm_package.children[0];['wpa:idTask']=task.getId();;]]></activiti:string>
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[logger.log("|=====1====| executing js di complete anagrafica");
var node = bpm_package.children[0];
var link = "wrapperpa/showdaticatastali";['wpa:link']=link;;]]></activiti:string>

Any idea?
Am i doing something wrong or is this some sort of a bug that i should report?
Thank you.