title: Fabric Composer test code not working
body: <p>I´ve just replaced the Composer default sample ("sampleAsset", "sampleTransaction", etc) by another one I created, for my better understanding.  Everything works except for the transaction, which return me the error message: 
  "**Error: Could not find any functions to execute for transaction org.acme.sample.CompraDoVinho#**2b2d0624-bc..."</p>
  
  <p>Find below the source codes:</p>
  
  <blockquote>
    <p>Blockquote</p>
  </blockquote>
  
  <h2>Model file:</h2>
  
  <p>namespace org.acme.sample</p>
  
  <p>asset Vinho identified by IDvinho {</p>
  
  <pre><code>o String IDvinho
  --&gt; Participante owner
  o String uva
  o String nomeVinho 
  o Integer preco 
  </code></pre>
  
  <p>}</p>
  
  <p>participant Participante identified by IDparticipante {</p>
  
  <pre><code>o String IDparticipante
  o String tipo
  o String nomeEmpresa
  </code></pre>
  
  <p>}</p>
  
  <p>transaction CompraDoVinho identified by IDcompra {</p>
  
  <pre><code>o String IDcompra
  --&gt; Vinho asset
  o Integer precoVenda
  </code></pre>
  
  <p>}</p>
  
  <h2>Logic:</h2>
  
  <p>function onSampleTransaction(CompraDoVinho) {</p>
  
  <pre><code>CompraDoVinho.asset.preco = CompraDoVinho.precoVenda;
  
  return getAssetRegistry('org.acme.sample.Vinho')
  
      .then(function (assetRegistry) {
  
          return assetRegistry.update(CompraDoVinho.asset);
  
    });
  </code></pre>
  
  <p>}</p>
  
  <h2>Permissions:</h2>
  
  <p>rule Default {</p>
  
  <pre><code>description: "Allow all participants access to all resources"
  participant: "ANY"
  operation: ALL
  resource: "org.acme.sample"
  action: ALLOW
  </code></pre>
  
  <p>}</p>
  
  <blockquote>
    <p>Blockquote</p>
  </blockquote>
  
  <p>Could anybody help me finding where is the bug in my code?</p>
  
  <p>Thanks in advance</p>