lib/openwfe/expool/fs_expstorage.rb
#
# Fetches the root expression of a process instance
#
Fetches the root expression of a process instance
Fetches the root expression of a process instance
def fetch_root (wfid)
      dir = dir_for(wfid)
      fexps = Dir["#{dir}/*.#{@suffix}"].collect { |path| load_fexp(path) }
      fexps.find { |fexp|
        fexp.fei.expid == '0' &&
        fexp.fei.sub_instance_id == '' &&
        fexp.is_a?(OpenWFE::DefineExpression)
      }
    end
def fetch_root ( wfid ) dir = dir_for ( wfid ) fexps = Dir [ "#{dir}/*.#{@suffix}" ] . collect { | path | load_fexp ( path ) } fexps . find { | fexp | fexp . fei . expid == '0' && fexp . fei . sub_instance_id == '' && fexp . is_a? ( OpenWFE :: DefineExpression ) } end
Fetches the root expression of a process instance
Fetches the root expression of a process instance
wfid
<not_specific>