public Object loadWorkflowData(String stepId,String key){
  Object data=null;
  String workflowUri=getMainWorkflowUri(stepId);
  try {
    if (workflowUri != null) {
      String dataPath=String.format(_zkStepDataPath,workflowUri) + String.format(_zkWorkflowData,key);
      if (_dataManager.checkExists(dataPath) != null) {
        data=_dataManager.getData(dataPath,false);
      }
    }
  }
 catch (  Exception ex) {
    String exMsg="Exception adding global data to workflow from stepId: " + stepId + ": "+ ex.getMessage();
    _log.error(exMsg);
    data=null;
  }
  return data;
}

public Object loadWorkflowData ( String stepId , String key ) { Object data = null ; String workflowUri = getMainWorkflowUri ( stepId ) ; try { if ( workflowUri != null ) { String dataPath = String . format ( _zkStepDataPath , workflowUri ) + String . format ( _zkWorkflowData , key ) ; if ( _dataManager . checkExists ( dataPath ) != null ) { data = _dataManager . getData ( dataPath , false ) ; } } } catch ( Exception ex ) { String exMsg = "Exception adding global data to workflow from stepId: " + stepId + ": " + ex . getMessage ( ) ; _log . error ( exMsg ) ; data = null ; } return data ; }
gets the step workflow data stored under / workflow / stepdata / { workflowuri } / data / { key } where workflowuri is the uri of the main workflow regardless of whether the step belongs in the main workflow or one of its nested workflows .
