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