title: How to fetch a task id in Alfresco Activiti
body: <p>I need to know how to fetch the task id from within a BPMN process.
  I tried the following without luck:</p>
  
  <pre><code>&lt;serviceTask id="assignApplicationId" name="Assign Application Id" 
    activiti:expression="${sequenceUtil.getOutboundId(**task.id**)}" 
    activiti:resultVariable="OutboundWF_ApplicationNumber"/&gt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>&lt;serviceTask id="assignApplicationId" name="Assign Application Id" 
    activiti:expression="${sequenceUtil.getOutboundId(**bpm_taskid**)}" 
    activiti:resultVariable="OutboundWF_ApplicationNumber"/&gt;
  </code></pre>