README.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. INTRODUCTION
  5. ------------
  6. There is an important issue to keep in mind as you use action hooks and workflow!!
  7. If the machine readable name of the content type on which you want to define actions
  8. in the workflow exceeds 20 characters then the actions you define will not be visible
  9. in the screen where you define the triggers nor will they execute.
  10. The reason is that the length of the field "op" in the "trigger-assignments" table
  11. is 32 characters. The name of this "op"-field is a concatenation of the string
  12. "workflow-" with the machine readable name of the content type, another "-" and the
  13. transition-id on which the action has to be performed. If the latter has a length of
  14. 1 then this leaves 32 - 9 - 1 - 1 = 21 characters for the machine readable name of
  15. the content type.
  16. So: KEEP YOUR CONTENT TYPE NAMES SHORT.
  17. Unfortunately the code that handles this is in core, so not readily changeable. If
  18. you have trouble seeing your actions check your name lengths.
  19. See further discussion at:
  20. http://drupal.org/node/585726
  21. See request put to core to make the change at:
  22. http://drupal.org/node/1062068
  23. Closed and told to have workflow make the table change ourselves. Given that changing
  24. name lengths hazardly would spread the bugs around even more this approach was
  25. not followed.