Posted by scott815 on July 5, 2010 at 6:59pm
I am trying to find a way to create action in Drupal when workflow goes from one state to next to have the user Id to be entered in CCK field that I use as the one that is now assigned to this job.
I am trying to find a way to create action in Drupal when workflow goes from one state to next to have the user Id to be entered in CCK field that I use as the one that is now assigned to this job.
Comments
Combine with Rules
You can combine Workflow with Rules to get this behavior. Just set up a triggered rule that populates a CCK field when the workflow has the desired transition.
I have a similar behavior on my current project. When a node is saved it goes into Pending state, and a Rule sets up two scheduled rule sets, if it's still pending after 24 hours, ann email goes to the appropriate mod, and after 72 hours, a piece of text goes into a CCK field and the node goes into Denied status. A second rule watches for a transition from Pending to either Approved or Denied and deletes the reminder and timeout scheduled events.
So the behavior you want is completely within the realm of possibility, and is actually quite simple to set up.
Good luck!
action found is close
I found a action that is close called modify node fields but the problem I run into with this is that they want you to chose the person to choose in the field and I like to be able to use the current user that is logged into to be populated in the field. Not sure I can do if through this or do I have to use another module or maybe a action that using php only to change the current user assigned which should be blank.
action found is close
a