cancel
Showing results for 
Search instead for 
Did you mean: 

Change workflow description

fuad_gafarov
Champ in-the-making
Champ in-the-making
Hi

How I can change workflow description?
taskInstance.description - change it only for current user. I need to change description for all users.
5 REPLIES 5

mitpatoliya
Star Collaborator
Star Collaborator
If you want to update the workflow description you need to update the property "bpm:workflowDescription"
And if you want to update the description related to task you need to update "bpm:description"
and for updating it in the process definition file you have to refer it like this.
bpm_workflowDescription=value
bpm_description=value

fuad_gafarov
Champ in-the-making
Champ in-the-making
Thanks for reply.
But how I can type it? Please type piece of code.
I type bpm_workflowDescription = value    and bpm_package.children[0].properties["bpm:workflowDescription"] - but no result

mitpatoliya
Star Collaborator
Star Collaborator
It could be something like this.

<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
  <runas>admin</runas>
  <script>
   <variable name="bpm_workflowDescription" access="read,write"/>
      bpm_workflowDescription ="test description";
  </script>
</action>

Check for the exact syntex.
Sorry,my code is not with me right now.

fuad_gafarov
Champ in-the-making
Champ in-the-making
Syntax is right.
But I can't do it. 
Alf. make an error.
Standart error - org.alfresco.service.cmr.workflow.WorkflowException: 00110053 Failed to signal transition done from workflow task jbpm$3006.

fuad_gafarov
Champ in-the-making
Champ in-the-making
I've done it.


       <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
          <runas>admin</runas>
         <script>
         <variable name="bpm_workflowDescription" access="read,write" />
            <expression>
               bpm_workflowDescription = "new description";
         </expression>
         </script>   
       </action>

Refer to : https://forums.alfresco.com/en/viewtopic.php?t=5200

mitpatoliya - great thanks