266. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/4/2017 8:04:41 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

266.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\tests\acceptance-tests\features\steps activities_steps.rb Mon Aug 28 19:41:48 2017 UTC
2 rdk.zip\rdk\product\tests\acceptance-tests\features\steps activities_steps.rb Tue Oct 3 20:08:20 2017 UTC

266.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 11 636
Changed 10 24
Inserted 0 0
Removed 0 0

266.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

266.4 Active regular expressions

No regular expressions were active.

266.5 Comparison detail

  1   require 's et'
  2   When(/^the  client re quests act ivities in stances fo r pid "([^ "]*)"$/) d o |pid|
  3     request  = RDKQuery .new('acti vities-ins tances-ava ilable')
  4     request. add_parame ter('conte xt', 'pati ent')
  5     request. add_parame ter('pid',  pid)
  6     path = r equest.pat h
  7     p path
  8     @respons e = HTTPar tyRDK.get( path)
  9   end
  10  
  11   When(/^the  client re quests act ivities av ailable$/)  do
  12     request  = RDKQuery .new('acti vities-ava ilable')
  13     path = r equest.pat h
  14     p path
  15     @respons e = HTTPar tyRDK.get( path)
  16   end
  17  
  18   Given(/^th e client h as the cur rent deplo ymentid$/)  do
  19     step 'th e client r equests ac tivities a vailable'
  20     step 'a  successful  response  is returne d'
  21     step 'cl ient grabs  the deplo ymentId'
  22   end
  23  
  24   Then(/^cli ent grabs  the deploy mentId$/)  do
  25     json_obj ect = JSON .parse(@re sponse.bod y)
  26     item_arr ay = json_ object['da ta']['item s']
  27     all_ids  = []
  28     item_arr ay.each do  | item_ob ject |
  29       if ite m_object[' id'] == 'O rder.Reque st'
  30         all_ ids.push(i tem_object ['deployme ntId'])
  31       end
  32     end
  33     @deploym ent_id = a ll_ids.las t
  34     expect(@ deployment _id).to_no t be_nil,  "Could not  find a va lid deploy mentId.  T est is loo king for t he deploym entId of O rder.Reque st"
  35   end
  36  
  37   When(/^the  client re quests a s ingle inst ance activ ity for pi d "([^"]*) "$/) do |a rg1|
  38     request  = RDKQuery .new('acti vities-sin gle-instan ce')
  39     request. add_parame ter('id',  @processin stanceid)
  40     path = r equest.pat h
  41     p path
  42     @respons e = HTTPar tyRDK.get( path)
  43   end
  44  
  45   def start_ activity_p ayload(pid )
  46     pid_arra y = pid.sp lit(';')
  47     facility  = pid_arr ay[0]
  48     patient_ id = pid_a rray[1]
  49  
  50     p "#{fac ility}  #{ patient_id }"
  51     tomorrow  = Date.to day.next_d ay.strftim e("%Y%m%d0 00000")
  52     nextmont h = Date.t oday.next_ month.strf time("%Y%m %d000000")
  53     timestam p = Time.n ow.strftim e "%Y-%m-% dT%H:%M:%S .%LZ" # 20 16-08-04T1 8:58:58.62 4Z
  54     timeonly  = Time.no w.strftime  "%H:%M:%S "
  55     title =  "TestAddRe quest #{Da te.today}  #{timeonly }"
  56     user_id  = '1000000 0270'
  57     p title
  58  
  59     @activit y_title =  title
  60     @activit y_user_id  = user_id
  61  
  62     # TODO:  HOW TO HAN DLE THE VI SIT HARD C ODED
  63                                     #{"deploym entId"=>"V istaCore:O rder", "pr ocessDefId "=>"Order. Request",  "parameter "=>{"reque stActivity "=>{"objec tType"=>"r equestActi vity", "pa tientUid"= >"urn:va:p atient: R E D A CTED :3:3", "au thorUid"=> "urn:va:us er: R E D A CTED :100000000 16", "crea tionDateTi me"=>"2016 0815000000 ", "domain "=>"ehmp-a ctivity",  "subDomain "=>"reques t", "visit "=>{"locat ion"=>"urn :va:locati on: R E D A CTED :195", "se rviceCateg ory"=>"I",  "dateTime "=>"201608 12134500",  "location Desc"=>"Ca rdiology"} , "ehmpSta te"=>"acce pted", "di splayName" =>"Test ",  "referenc eId"=>"",  "instanceN ame"=>"Tes t", "data" =>{"activi ty"=>{"obj ectType"=> "activity" , "deploym entId"=>"V istaCore:" , "process Definition Id"=>"Orde r.Request" , "process InstanceId "=>"", "st ate"=>"acc epted", "i nitiator"= >"10000000 016", "ass ignTo"=>"P erson", "t imeStamp"= >"", "urge ncy"=>"9",  "assigned To"=>" R E D A CTED ;100000002 70", "inst anceName"= >"TestAddR equ", "dom ain"=>"Req uest", "so urceFacili tyId"=>"50 0", "desti nationFaci lityId"=>" 500", "typ e"=>"Order "}, "signa ls"=>[], " requests"= >{"objectT ype"=>"req uest", "ta skinstance Id"=>"", " urgency"=> "routine",  "earliest Date"=>"20 1608160000 00", "late stDate"=>" 2016091500 0000", "ti tle"=>"Tes tAddReques t 2016-08- 15 13:17:2 5", "assig nTo"=>"Per son", "req uest"=>"Te stAddReque st 2016-08 -15 13:17: 25", "subm ittedByUid "=>"urn:va :user: R E D A CTED :100000000 16", "subm ittedByNam e"=>"TDNUR SE,ONE", " submittedT imeStamp"= >"2016-08- 15T13:17:2 5.475Z", " visit"=>{" location"= >"urn:va:l ocation: R E D A CTED :195", "se rviceCateg ory"=>"I",  "dateTime "=>"201608 12134500",  "location Desc"=>"Ca rdiology"} , "route"= >{"facilit y"=>"500",  "facility Name"=>"",  "person"= >" R E D A CTED ;100000002 70", "pers onName"=>" USER, PANO RAMA"}}, " responses" =>[]}}, "i cn"=>" R E D A CTED ;3", "pid" =>" R E D A CTED ;3", "inst anceName"= >"TestAddR equest 201 6-08-15 13 :17:25", " formAction "=>"accept ed", "urge ncy"=>"9",  "subDomai n"=>"Reque st", "assi gnedTo"=>" R E D A CTED ;100000002 70", "type "=>"Order" , "facilit y"=>"500",  "destinat ionFacilit y"=>"500",  "descript ion"=>"Tes tDesc 2016 -08-15 13: 17:25"}}
  64                                    #{"deploym entId":"Vi staCore:Or der:",    "processDe fId":"Orde r.Request" ,"paramete r":{"reque stActivity ":{"object Type":"req uestActivi ty","patie ntUid":"ur n:va:patie nt: R E D A CTED :3:3","aut horUid":"u rn:va:user : R E D A CTED :100000000 16",                                  "creationD ateTime":" 2016081600 0000","dom ain":"ehmp -activity" ,"subDomai n":"reques t","visit" :{"locatio n":"urn:va :location: R E D A CTED :195","ser viceCatego ry":"I","d ateTime":" 2016081213 4500","loc ationDesc" :"Cardiolo gy"},"ehmp State":"ac cepted","d isplayName ":"Test"," referenceI d":"","ins tanceName" :"TestAddR e","data": {"activity ":{"object Type":"act ivity","de ploymentId ":"VistaCo re:Order", "processDe finitionId ":"Order.R equest","p rocessInst anceId":"" ,"state":" accepted", "initiator ":"1000000 0016","tim eStamp":"" ,"urgency" :"9","assi gnedTo":" R E D A CTED ;100000002 70","insta nceName":" TestAddReq uest 2016- ","domain" :"Request" ,"sourceFa cilityId": "500","des tinationFa cilityId": "500","typ e":"Order" ,"assignTo ":"Person" },"signals ":[],"requ ests":[{"o bjectType" :"request" ,"taskinst anceId":"" ,"urgency" :"routine" ,"earliest Date":"201 6081700000 0","latest Date":"201 6091600000 0","title" :"TestAd", "request": "TestAddRe quest 2016 -08-16 14: 12:14","su bmittedByU id":"urn:v a:user: R E D A CTED :100000000 16","submi ttedByName ":"TDNURSE ,ONE","sub mittedTime Stamp":"20 16-08-16T1 4:12:14.65 3Z","visit ":{"locati on":"urn:v a:location : R E D A CTED :195","ser viceCatego ry":"I","d ateTime":" 2016081213 4500","loc ationDesc" :"Cardiolo gy"},"assi gnTo":"Per son","rout e":{"facil ity":"500" ,"facility Name":""," person":" R E D A CTED ;100000002 70","perso nName":"US ER, PANORA MA"}}],"re sponses":[ ]}},"icn": " R E D A CTED ;3","pid": " R E D A CTED ;3","insta nceName":" TestAddReq uest 2016- 08-16 14:1 2:14","for mAction":" accepted", "urgency": "9","subDo main":"Req uest","ass ignedTo":" R E D A CTED ;100000002 70","type" :"Order"," facility": "500","des tinationFa cility":"5 00","descr iption":"T estDesc 20 16-08-16 1 4:12:14"}}
  65       payload_js on = JSON. parse(%Q[{ "deploymen tId":"#{@d eployment_ id}","proc essDefId": "Order.Req uest","par ameter":{" requestAct ivity":{"o bjectType" :"requestA ctivity"," patientUid ":"urn:va: patient:#{ facility}: #{patient_ id}:#{pati ent_id}"," authorUid" :"urn:va:u ser: R E D A CTED :#{user_id }","creati onDateTime ":"#{tomor row}","dom ain":"ehmp -activity" ,"subDomai n":"reques t","visit" :{"locatio n":"urn:va :location: R E D A CTED :158","ser viceCatego ry":"X","d ateTime":" 2014081413 0730","loc ationDesc" :"7A GEN M ED"},"ehmp State":"ac cepted","d isplayName ":"#{title }","refere nceId":"", "instanceN ame":"#{ti tle}","dat a":{"activ ity":{"obj ectType":" activity", "deploymen tId":"#{@d eployment_ id}","proc essDefinit ionId":"Or der.Reques t","proces sInstanceI d":"","sta te":"accep ted","init iator":"#{ user_id}", "assignTo" :"Me","tim eStamp":"" ,"urgency" :9,"assign edTo":" R E D A CTED ;#{user_id }","instan ceName":"# {title}"," domain":"R equest","s ourceFacil ityId":"50 0","type": "Order"}," signals":[ ],                                                      "requests" :[{"object Type":"req uest","tas kinstanceI d":"","urg ency":"rou tine","ear liestDate" :"#{tomorr ow}","late stDate":"# {nextmonth }","title" :"#{title} ","assignT o":"Me","s ubmittedBy Uid":"urn: va:user: R E D A CTED :#{user_id }","submit tedByName" :"USER,PAN ORAMA","su bmittedTim eStamp":"# {timestamp }","visit" :{"locatio n":"urn:va :location: R E D A CTED :158","ser viceCatego ry":"X","d ateTime":" 2014081413 0730","loc ationDesc" :"7A GEN M ED"}}],"re sponses":[ ]}},"icn": "#{pid}"," pid":"#{pi d}","insta nceName":" #{title}", "formActio n":"accept ed","urgen cy":"9","s ubDomain": "Request", "assignedT o":" R E D A CTED ;#{user_id }","type": "Order","f acility":" R E D A CTED ","descrip tion":"Tes t Descript ion."}}]). to_json
  66   end
  67  
  68   When(/^the  client st arts an ac tivity on  patient "( [^"]*)"$/)  do |pid|
  69     request  = RDKQuery .new('acti vities-sta rt')
  70     headers  = {}
  71     headers[ 'Content-T ype'] = "a pplication /json"
  72     path = r equest.pat h
  73  
  74     payload_ json = sta rt_activit y_payload  pid
  75     @respons e = HTTPar tyRDK.post (path, pay load_json,  headers)
  76   end
  77  
  78   Given(/^th e client h as started  an activi ty$/) do
  79     p @proce ssinstance id
  80  
  81     expect(@ processins tanceid).t o_not be_n il
  82     expect(@ processins tanceid).t o_not be_n il, "Expec ted an act ivity to h ave been s tarted in  a previous  test"
  83   end
  84  
  85   Given(/^th e response  contains  a process  instance i d$/) do
  86     json_obj ect = JSON .parse(@re sponse.bod y)
  87  
  88     @process instanceid  = json_ob ject['data ']['proces sInstanceI d']
  89     expect(@ processins tanceid).t o_not be_n il
  90     p @proce ssinstance id
  91   end
  92  
  93   def reques t_activiti es_instanc es_availab le(user, t able)
  94     request  = RDKQuery .new('acti vities-ins tances-ava ilable')
  95     request. add_parame ter('conte xt', 'staf f')
  96     request. add_parame ter('mode' , 'open')
  97     table.ro ws.each do  | label,  value |
  98       reques t.add_para meter(labe l, value)
  99     end
  100     path = r equest.pat h
  101     p path
  102     @respons e = HTTPar tyRDK.get_ as_user(pa th, user,   TestClien ts.passwor d_for(user ))
  103   end
  104  
  105   When(/^the  client re quests ope n activiti es for the  staff con text$/) do  |table|
  106       request_ac tivities_i nstances_a vailable " PW           ", table
  107   end
  108  
  109   When(/^the  clicent r equests op en activit ies for th e patient  context$/)  do |table |
  110     request  = RDKQuery .new('acti vities-ins tances-ava ilable')
  111     request. add_parame ter('conte xt', 'pati ent')
  112     request. add_parame ter('mode' , 'open')
  113     table.ro ws.each do  | label,  value |
  114       reques t.add_para meter(labe l, value)
  115     end
  116     path = r equest.pat h
  117     p path
  118     @respons e = HTTPar tyRDK.get( path)
  119   end
  120  
  121   When(/^the  clicent r equests cl osed activ ities for  the patien t context$ /) do |tab le|
  122     end_date  = Date.to day.next_m onth(6).st rftime("%Y %m%d1000")
  123     start_da te = Date. today.prev _month(18) .strftime( "%Y%m%d100 0")
  124     request  = RDKQuery .new('acti vities-ins tances-ava ilable')
  125     request. add_parame ter('conte xt', 'pati ent')
  126     request. add_parame ter('mode' , 'closed' )
  127     request. add_parame ter('endDa te', end_d ate)
  128     request. add_parame ter('start Date', sta rt_date)
  129     table.ro ws.each do  | label,  value |
  130       reques t.add_para meter(labe l, value)
  131     end
  132     path = r equest.pat h
  133     p path
  134     @respons e = HTTPar tyRDK.get( path)
  135   end
  136  
  137   When(/^the  clicent r equests op en and clo sed activi ties for t he patient  context$/ ) do |tabl e|
  138     end_date  = Date.to day.next_m onth(6).st rftime("%Y %m%d1000")
  139     start_da te = Date. today.prev _month(18) .strftime( "%Y%m%d100 0")
  140     request  = RDKQuery .new('acti vities-ins tances-ava ilable')
  141     request. add_parame ter('conte xt', 'pati ent')
  142     request. add_parame ter('endDa te', end_d ate)
  143     request. add_parame ter('start Date', sta rt_date)
  144     table.ro ws.each do  | label,  value |
  145       reques t.add_para meter(labe l, value)
  146     end
  147     path = r equest.pat h
  148     p path
  149     @respons e = HTTPar tyRDK.get( path)
  150   end
  151  
  152   Then(/^the  response  contains a  task for  the new pr ocess inst ance id$/)  do
  153     source_a llvalues =  all_value s_in_set(@ response.b ody, 'data .items.PRO CESSINSTAN CEID')
  154     
  155     expect(s ource_allv alues).to  include(@p rocessinst anceid)
  156   end
  157  
  158   When(/^the  user tdnu rse has st arted an a ctivity as signed to  a person w ith parame ters$/) do  |table|
  159     request  = RDKQuery .new('acti vities-sta rt')
  160     headers  = {}
  161     headers[ 'Content-T ype'] = "a pplication /json"
  162     path = r equest.pat h
  163  
  164     paramete rs = {}
  165     table.ro ws.each do  | paramet er, value  |
  166       parame ters[param eter] = va lue
  167     end
  168     payload_ json = sta rt_person_ activity(p arameters) .to_json 
  169       @response  = HTTParty RDK.post_a s_user(pat h, " R E D A CTED ; USER ", " DNS       ", payload _json, hea ders)
  170   end
  171  
  172   When(/^the  user tdnu rse has st arted an a ctivity as signed to  a person i n the futu re with pa rameters$/ ) do |tabl e|
  173     request  = RDKQuery .new('acti vities-sta rt')
  174     headers  = {}
  175     headers[ 'Content-T ype'] = "a pplication /json"
  176     path = r equest.pat h
  177  
  178     paramete rs = {}
  179     table.ro ws.each do  | paramet er, value  |
  180       parame ters[param eter] = va lue
  181     end
  182     paramete rs["earlie stDate"] =  Date.toda y.next.nex t.strftime ("%Y%m%d04 0000")
  183     payload_ json = sta rt_person_ activity(p arameters) .to_json
  184       @response  = HTTParty RDK.post_a s_user(pat h, " R E D A CTED ; USER ", " DNS       ", payload _json, hea ders)
  185   end
  186  
  187   Given(/^th e user "([ ^"]*)" has  started a n activity  assigned  to a perso n with par ameters$/)  do |user,  table|
  188     request  = RDKQuery .new('acti vities-sta rt')
  189     path = r equest.pat h
  190     paramete rs = {}
  191     table.ro ws.each do  | paramet er, value  |
  192       parame ters[param eter] = va lue
  193     end
  194     payload_ json = sta rt_person_ activity(p arameters) .to_json 
  195     @respons e = HTTPar tyRDK.post _as_user(p ath, user,  TestClien ts.passwor d_for(user ), payload _json, Tas kHelper.he aders)
  196     expect(@ response.c ode).to eq (200), "re sponse cod e was #{@r esponse.co de}: respo nse body # {@response .body}"
  197     json = J SON.parse( @response. body)
  198     @process instanceid  = json['d ata']['pro cessInstan ceId']
  199   end
  200  
  201   Given(/^th e user tdn urse has s tarted an  activity f or any tea m with par ameters$/)  do |table |
  202     request  = RDKQuery .new('acti vities-sta rt')
  203     headers  = {}
  204     headers[ 'Content-T ype'] = "a pplication /json"
  205     path = r equest.pat h
  206  
  207     paramete rs = {}
  208     table.ro ws.each do  | paramet er, value  |
  209       parame ters[param eter] = va lue
  210     end
  211     payload_ json = sta rt_anyteam _activity( parameters ).to_json 
  212       @response  = HTTParty RDK.post_a s_user(pat h, " R E D A CTED ; USER ", " DNS       ", payload _json, hea ders)
  213   end
  214  
  215   Given(/^th e user tdn urse has s tarted an  activity f or my team s with par ameters$/)  do |table |
  216     request  = RDKQuery .new('acti vities-sta rt')
  217     headers  = {}
  218     headers[ 'Content-T ype'] = "a pplication /json"
  219     path = r equest.pat h
  220  
  221     paramete rs = {}
  222     table.ro ws.each do  | paramet er, value  |
  223       parame ters[param eter] = va lue
  224     end
  225     payload_ json = sta rt_myteam_ activity(p arameters) .to_json 
  226       @response  = HTTParty RDK.post_a s_user(pat h, " R E D A CTED ; USER ", " DNS       ", payload _json, hea ders)
  227   end
  228  
  229   Given(/^th e user tdn urse has s tarted an  activity a ssigned to  me with p arameters$ /) do |tab le|
  230     request  = RDKQuery .new('acti vities-sta rt')
  231     path = r equest.pat h
  232  
  233     paramete rs = {}
  234     table.ro ws.each do  | paramet er, value  |
  235       parame ters[param eter] = va lue
  236     end
  237     payload_ json = sta rt_activit y_assigned tome(param eters).to_ json 
  238       @response  = HTTParty RDK.post_a s_user(pat h, " R E D A CTED ; USER ", " DNS       ", payload _json, Tas kHelper.he aders)
  239   end
  240  
  241   Given(/^th e user "([ ^"]*)" has  started a  consult w ith parame ters$/) do  |user, ta ble|
  242     expect(@ deployment _id).to_no t be_nil
  243     activiti es_start_c all user,  table
  244   end
  245  
  246   Given(/^th e user tdn urse has s tarted an  activity f or Patient 's Teams w ith parame ters$/) do  |table|
  247     request  = RDKQuery .new('acti vities-sta rt')
  248     headers  = {}
  249     headers[ 'Content-T ype'] = "a pplication /json"
  250     path = r equest.pat h
  251  
  252     paramete rs = {}
  253     table.ro ws.each do  | paramet er, value  |
  254       parame ters[param eter] = va lue
  255     end
  256     payload_ json = sta rt_patient team_activ ity(parame ters).to_j son 
  257       @response  = HTTParty RDK.post_a s_user(pat h, " R E D A CTED ; USER ", " DNS       ", payload _json, hea ders)
  258   end
  259  
  260   def all_va lues_in_se t(response _body, fie ldsource)
  261     json = J SON.parse( response_b ody)
  262     output_s tring = ""
  263  
  264     fieldsou rce = fiel dsource
  265     steps_so urce = fie ldsource.s plit('.')
  266  
  267     source_a llvalues =  []
  268  
  269     json_ver ify = Json Verifier.n ew
  270     json_ver ify.save_a ll_values_ of_path(0,  steps_sou rce, json,  output_st ring, sour ce_allvalu es)
  271     # p "--- ----- #{fi eldsource} "
  272     # p "arr aylength:  #{source_a llvalues.l ength}"
  273     source_a llvalues_s et = Sorte dSet.new(s ource_allv alues) # s ource_allv alues.to_s et
  274     # p "set length: #{ source_all values_set .length}"
  275     source_a llvalues_s et
  276   end
  277  
  278   Then(/^the  activity  response d oes not co ntain the  title$/) d o
  279     source_a llvalues =  all_value s_in_set(@ response.b ody, 'data .items.INS TANCENAME' )
  280     
  281     expect(s ource_allv alues).to_ not includ e(@new_act ivity_titl e)
  282   end
  283  
  284   Then(/^the  activity  response d oes contai n the titl e$/) do
  285     source_a llvalues =  all_value s_in_set(@ response.b ody, 'data .items.INS TANCENAME' )
  286     
  287     expect(s ource_allv alues).to  include(@n ew_activit y_title)
  288   end
  289  
  290   When(/^the  user "([^ "]*)" requ ests open  activities  for the p atient con text$/) do  |patient_ access_cod e, table|
  291     request  = RDKQuery .new('acti vities-ins tances-ava ilable')
  292     request. add_parame ter('conte xt', 'pati ent')
  293     request. add_parame ter('mode' , 'open')
  294     table.ro ws.each do  | label,  value |
  295       reques t.add_para meter(labe l, value)
  296     end
  297     path = r equest.pat h
  298     p path
  299     verify_c ode = Test Clients.pa ssword_for (patient_a ccess_code )
  300     expect(v erify_code ).to_not b e_nil, "Te st Framewo rk does no t have a s aved verif y code for  #{patient _access_co de}"
  301  
  302     @respons e = HTTPar tyRDK.get_ as_user(pa th, patien t_access_c ode, verif y_code)
  303   end
  304  
  305   Then(/^the  activity  response o nly contai ns activit ies starte d by pu(\d +)$/) do | arg1|
  306     source_a llvalues_n ames = all _values_in _set(@resp onse.body,  'data.ite ms.CREATED BYNAME')
  307     source_a llvalues_i d = all_va lues_in_se t(@respons e.body, 'd ata.items. CREATEDBYI D')
  308  
  309     expect(s ource_allv alues_name s.length). to_not be  > 1, "expe cted only  1 created  by name, r eceived #{ source_all values_nam es.length}  (#{source _allvalues _names})"
  310     expect(s ource_allv alues_name s).to incl ude('USER, PANORAMA')  if source _allvalues _names.len gth > 0
  311  
  312     expect(s ource_allv alues_id.l ength).to_ not be > 1 , "expecte d only 1 c reated by  name, rece ived #{sou rce_allval ues_id.len gth} (#{so urce_allva lues_id})"
  313       expect(sou rce_allval ues_id).to  include(' R E D A CTED ;100000002 70') if so urce_allva lues_names .length >  0
  314   end
  315  
  316   Then(/^the  activity  response o nly contai ns activit ies starte d by tdnur se$/) do
  317     source_a llvalues_n ames = all _values_in _set(@resp onse.body,  'data.ite ms.CREATED BYNAME')
  318     source_a llvalues_i d = all_va lues_in_se t(@respons e.body, 'd ata.items. CREATEDBYI D')
  319  
  320     expect(s ource_allv alues_name s.length). to eq(1)
  321     expect(s ource_allv alues_name s).to incl ude('TDNUR SE,ONE')
  322  
  323     expect(s ource_allv alues_id.l ength).to  eq(1), "ex pected onl y 1 create d by name,  received  #{source_a llvalues_i d.length}  (#{source_ allvalues_ id})"
  324       expect(sou rce_allval ues_id).to  include(' R E D A CTED ;100000000 16')
  325   end
  326  
  327   Given(/^th e successf ul respons e contains  a process InstanceId $/) do
  328     json = J SON.parse( @response. body)
  329     @process instanceid  = json['d ata']['pro cessInstan ceId']
  330   end