Are you try for the below scenario ?
Given .....
When.....
Then.....
When the account comes to active state generate myAccnumber
Then print myAccnumber
That is,The Business people need to access(or pass) the myAccnumber in forthcoming steps.Right?
In such case, declare a static variable in your step definition(As you suggest)class and let all your step definition can share it.