You must set some variables card file data on the transition . The value should be set by the user . In functional transition can set a variable , but it should be specific and prescribed in the Administration tool . You must do the same , you only need user to enter this value.
Analyzing the history file when the state occurs ( with notation of variables) in approximately the following: checking out a file system , then change the value , then cheking file as the user makes a transition.
Or how to use the API to change the user's right to file in a particular state of flux.