Quantcast
Channel: YouTrackYouTrack (JT) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 74845

JT-19483: Cannot use the ".oldvalue" in state machine

$
0
0
Reporter Dmitry Krasilschikov (dima) Dmitry Krasilschikov (dima)
Created Apr 19, 2013 4:50:32 PM
Updated Apr 19, 2013 4:50:32 PM
Priority Normal
Type Bug
State Open
Assignee Vadim Gurov (vgurov)
Subsystem Workflow
Fix versions Gentle
Fixed in builds No Fixed in build
Affected versions No Affected versions
Browser Any Browser
OS Any OS
Verified in build Not verified
Verified by Nobody
Reviewed by No reviewed by
Severity Routine
Consider the state machine:
statemachine sm for field State { 
 
  initial state Submitted { 
     
  } 
    
  state Reopened { 
    on fix[always] do { 
      message(State.oldValue.name); 
    } transit to Fixed 
  } 
    
  state Fixed { 
    on reopen[always] do {<define statements>} transit to Reopened 
  } 
 
}


On attempt to transit the state to "Fixed" the error appears: "Workflow test1 reports error: Can't access committed saved entity. Only getId is permitted. Issue: id = 71-2[up-to-date] (Saved)"

Viewing all articles
Browse latest Browse all 74845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>