Closed (fixed)
Project:
Workflow
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 May 2013 at 03:04 UTC
Updated:
12 Dec 2016 at 22:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kristen polPatch is attached
(Updating attribution on November 23, 2015.)
Comment #2
kristen polComment #3
nancydruThanks, Kristen. Is it not sufficient to check the transition from "state A" to "state B"?
Comment #4
kristen polIn our case, there are times when we only want to know the previous state and actually don't care what state it is currently. :)
[Update] I'm realizing that maybe my issue summary wasn't clear as it does sounds like I wanted to check the previous and current states at the same time.
Another useful scenario: you want to negate the previous state check... e.g. previous state was not xyz.
Comment #5
nancydruCommitted with attribution.
Comment #6
kristen polThanks!
Comment #8
delacosta456 commentedhi
sorry for re-opening this long time discussion
But i am looking in rules for having an action like "Go back to the previous State" without needs to know which state it was / without specify that state in the list of state.
The goal is that we want to have (n addition to state) radio button of Accepted / rejected.
-If accepted, action : Go to next state (already exist with workflow_rules)
- if reject , action : Go back to previous state (what i am looking for)
Comment #9
nancydruLook at the code in the Workflow Revert sub-module.