I am writing script to cancel workflow which is in 'awaiting for approval' status. For this i am writing a toolbar script. In this script when i am using the variable 'current_phase' i am getting null point error. Not sure why it is giving null but this same variable is working for for 'document life cycle' context but not for toolbar context. Can some help me to get the current_phase value in toolbar script?
Is anything else we need to do to get this variable?