I want to passed share data from workflow definition to activity, that is to say, set data to workflow context and next get data from background context
What kind of data? You can propagate context from workflow to activity if needed, but in most cases adding this data to the activity arguments is a better approach.