How to use the categories in the dispatch?

I am new to the SW PDM. We have some categories like toolbox, templates and standard parts. these categories Which are located in different folder go into one workflow called standard parts workflow. We also added a dispatch during state transaction of files released to move the standard parts from other folders into the special folder for standard parts. However, it makes all the files including toolbox and templates categories go into standard parts folder. I find that categories is not a variable we can use in dispatch. And I also can’t find a solution to add a category variable in data card.

Is there any way that only move the categories of standard parts when the documents released?

  1. For all documents block START
  2. Jump IF left(%fileCategories%,14)=standard parts NO_CASE THEN GOTO MoveFiles
  3. Jump IF ALWAYS THEN GOTO SkipMoving
  4. Label MoveFiles
  5. Move/Rename file %PathToSelectedFile% %RootFolderPath%\\xxxx\\standard parts\\%NameOfSelectedFile%
  6. Label SkipMoving
  7. End For all documents block END
Comments 3
SA
SA 2021-06-27

I cant ask a question. it shows 

Some required* fields are missing or wrong

please

MD
MD 2021-06-28

Categories are only used as conditions for Workflows. They are not available in Dispatch 

WM
WM 2021-06-28

Hi @RL 
It may be possible to use the Category within a Workflow Condition to trigger DISPATCH differently. 
For example. If you have two Transitions leaving the pre-release state with the same name​, one with a condition that allows files of the Standard Parts category to follow it, you could end that transition in a temporary State which has another Automatic transition out. You can then trigger the DISPATCH Action to run on that Transition, since only Standard Parts will follow it.