Exception: OpenWFE::PausedError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/openwfe/expool/expressionpool.rb

Overview

This error is raised when an expression belonging to a paused process is applied or replied to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(wfid) ⇒ PausedError

Returns a new instance of PausedError.



1050
1051
1052
1053
1054
# File 'lib/openwfe/expool/expressionpool.rb', line 1050

def initialize (wfid)

    super "process '#{wfid}' is paused"
    @wfid = wfid
end

Instance Attribute Details

#wfidObject (readonly)

Returns the value of attribute wfid.



1048
1049
1050
# File 'lib/openwfe/expool/expressionpool.rb', line 1048

def wfid
  @wfid
end

Instance Method Details

#==(other) ⇒ Object

Returns true if the other is a PausedError issued for the same process instance (wfid).



1069
1070
1071
1072
1073
1074
# File 'lib/openwfe/expool/expressionpool.rb', line 1069

def == (other)

    return false unless other.is_a?(PausedError)

    (@wfid == other.wfid)
end

#hashObject

Returns a hash for this PausedError instance. (simply returns the hash of the paused process’ wfid).



1060
1061
1062
1063
# File 'lib/openwfe/expool/expressionpool.rb', line 1060

def hash

    @wfid.hash
end