lib/openwfe/flowexpressionid.rb in openwferu-0.9.6 vs lib/openwfe/flowexpressionid.rb in openwferu-0.9.7

- old
+ new

@@ -123,10 +123,14 @@ #end def to_debug_s "(fei #{@workflow_definition_name} #{@workflow_definition_revision} #{@workflow_instance_id} #{@expression_id} #{@expression_name})" end + def to_short_s + "(fei #{@workflow_instance_id} #{@expression_id} #{@expression_name})" + end + # # Returns the workflow instance id without any subflow indices. # For example, if the wfid is "1234.0.1", this method will # return "1234". # @@ -146,13 +150,11 @@ fei = FlowExpressionId.new() ss = string.split(" ") - #require 'pp' - #puts - #pp ss + #require 'pp'; puts; pp ss ss = ss[1..-1] if ss[0] == "(" fei.owfe_version = ss[1] @@ -168,10 +170,10 @@ fei.expression_id = ss[8][0..-2] fei.expression_id = fei.expression_id[0..-2] \ if fei.expression_id[-1, 1] == ")" - return fei + fei end end end