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

<al:test recipe='test.test-022' category='basic'>
  <al:description lang="en">Tests the contexts for argument selection for actions: transition > step</al:description>
</al:test>

<al:recipe name='test-022' group='test' start_step='step1' end_step='step3'>
  <al:step id='step1' type='action' target='Selftest.NOP'/>
  <al:step id='step2' type='action' target='Selftest.test_input'/>
  <al:step id='step3' type='action' target='Selftest.test_input'/>

  <al:transition id='t1'>
    <al:in idref='step1'/>
    <al:out idref='step2'/>
    <al:condition><al:match>elmt.flag</al:match></al:condition>
  </al:transition>

  <al:transition id='t2' >
    <al:in idref='step2'/>
    <al:out idref='step3'/>
    <al:condition><al:match>isinstance(elmt, Element) and not elmt.flag</al:match></al:condition>
  </al:transition>
</al:recipe>

<element flag='true'/>
<element/>

</memory>
