<?xml version="1.0"?>
<memory xmlns:al="http://www.logilab.org/namespaces/Narval/1.2">

  <al:test recipe='test.test-039' category='basic'>
    <al:description lang="en">Test overidding protocol for step</al:description>
  </al:test>

  <al:recipe name='test-039' group='test'>
    <al:step id='step1' type='action' target='Selftest.NOP'/>
    <al:step id='step2' type='action' target='Selftest.test_input_nice'>
      <al:input id='element'>
	<al:match>isinstance(elmt, Element) and elmt.name == 'add'</al:match>
      </al:input>
    </al:step>
    <al:step id='step3' type='recipe' target='test.test-039bis'/>
    <al:step id='end_step' type='action' target='Selftest.NOP'/>
    <al:transition id='tr1'>
      <al:in idref='step1'/>
      <al:out idref='step2'/>
      <al:out idref='step3'/>
    </al:transition>

    <al:transition id='tr2'>
      <al:in idref='step2'/>
      <al:out idref='end_step'/>
    </al:transition>
    <al:transition id='tr3'>
      <al:in idref='step3'/>
      <al:out idref='end_step'/>
    </al:transition>
  </al:recipe>

  <al:recipe name='test-039bis' group='test'>
    <al:step id='step1' type='action' target='Selftest.NOP'/>
    <al:step id='step2' type='action' target='Selftest.NOP'/>
    <al:transition id='tr1'>
      <al:in idref='step1'/>
      <al:out idref='step2'/>
    </al:transition>
  </al:recipe>


  <element name="tartanpion"/>

</memory>
