test/flowtestbase.rb in openwferu-0.9.5 vs test/flowtestbase.rb in openwferu-0.9.6
- old
+ new
@@ -43,11 +43,11 @@
attr_reader \
:engine, :tracer
def setup
- @engine = eval("#{$WORKFLOW_ENGINE_CLASS}").new()
+ @engine = $WORKFLOW_ENGINE_CLASS.new()
@tracer = Tracer.new
@engine.application_context["__tracer"] = @tracer
end
@@ -100,10 +100,14 @@
#1 : ${f:customer_name}
# """))
# register unique tracing participant
- li = OpenWFE::LaunchItem.new(flowDef)
+ li = if flowDef.kind_of? OpenWFE::LaunchItem
+ flowDef
+ else
+ OpenWFE::LaunchItem.new(flowDef)
+ end
@engine.launch(li)
sleep(sleepTime)