lib/openwfe/flowexpressionid.rb in openwferu-0.9.3 vs lib/openwfe/flowexpressionid.rb in openwferu-0.9.4

- old
+ new

@@ -121,12 +121,17 @@ def FlowExpressionId.to_fei (string) fei = FlowExpressionId.new() ss = string.split(" ") - #puts "\n#{ss}" + #require 'pp' + #puts + #pp ss + + ss = ss[1..-1] if ss[0] == "(" + fei.owfe_version = ss[1] ssRawEngineId = ss[2].split("/") fei.engine_id= ssRawEngineId[0] fei.initial_engine_id= ssRawEngineId[1] @@ -135,9 +140,12 @@ fei.workflow_definition_name = ss[4] fei.workflow_definition_revision = ss[5] fei.workflow_instance_id = ss[6] fei.expression_name = ss[7] fei.expression_id = ss[8][0..-2] + + fei.expression_id = fei.expression_id[0..-2] \ + if fei.expression_id[-1, 1] == ")" return fei end end