cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow name and Task type

irene08
Champ in-the-making
Champ in-the-making
Where can I find the correct workflow name and task type? What js/xml file? So that I can hide some workflows. I'll be using that in this script.

<config evaluator="string-compare" condition="Workflow">
   <hidden-workflows>
         <workflow name="__________________________"/>
   </hidden-workflows>
   <hidden-tasks>
        <task type="_____________________"/>
   </hidden-tasks>
</config>

Thank you,
Irene
4 REPLIES 4

mitpatoliya
Star Collaborator
Star Collaborator
The exact name will be defined the workflow process definition file only.
So, you need to go and check each of the definition file.
Similar  for the task name.

irene08
Champ in-the-making
Champ in-the-making
The exact name will be defined the workflow process definition file only.
So, you need to go and check each of the definition file.
Similar  for the task name.


Hi! This is my script and I have an error. That two workflow should be hidden.
1. Pooled Review And Approve
2. Review And Approve

<config evaluator="string-compare" condition="Workflow">
   <hidden-workflows>
         <workflow name="Pooled Review And Approve"/>
        <workflow name="Review And Approve"/>
   </hidden-workflows>
   <hidden-tasks>
      <task type="Pooled review and approval of content using Activiti workflow engine"/>
        <task type="Review and approval of content using Activiti workflow engine"/>   
  </hidden-tasks>
  </config>

Thank you,
Irene

mitpatoliya
Star Collaborator
Star Collaborator
In process definition file you need to check for this tag

<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="wf:reviewpooled">

where you need to use the name attribute's value which in this case is "wf:reviewpooled"

Similarly for tasks also
        <task name="wf:reviewTask" swimlane="reviewer">

So ultimately

<config evaluator="string-compare" condition="Workflow">
<hidden-workflows>
<workflow name="wf:reviewpooled"/>
</hidden-workflows>
<hidden-tasks>
<task type="wf:reviewTask"/>
</hidden-tasks>
</config>

irene08
Champ in-the-making
Champ in-the-making
In process definition file you need to check for this tag

<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="wf:reviewpooled">

where you need to use the name attribute's value which in this case is "wf:reviewpooled"

Similarly for tasks also
        <task name="wf:reviewTask" swimlane="reviewer">

So ultimately

<config evaluator="string-compare" condition="Workflow">
<hidden-workflows>
<workflow name="wf:reviewpooled"/>
</hidden-workflows>
<hidden-tasks>
<task type="wf:reviewTask"/>
</hidden-tasks>
</config>


Hi! Good Day! This is what I did based on what you've said and it didn't work. I think the task type is wrong? Same task type I've seen in the review_pooled_processdefinition.xml and review_processdefinition.xml.

<config evaluator="string-compare" condition="Workflow">
   <hidden-workflows>
         <workflow name="wf:reviewpooled"/>
    <workflow name="wf:review"/>
   </hidden-workflows>
  
   <hidden-tasks>
   <task type="wf:reviewTask"/>
        <task type="wf:reviewTask"/>   
   </hidden-tasks>
</config>

Thank you so much. Your opinion will be helpful.

Irene Smiley Happy