title: How can I get sub workflow steps/tasks output?
body: <p>I created a cluster workflow template, which will do some tasks. And I will use last step output as current workflow parameters. When I ref this template, I don't know how can I get the <code>output</code> from cluster workflow task/step.</p>
  <p><strong>Cluster Workflow Template</strong></p>
  <pre class="lang-yaml prettyprint-override"><code>apiVersion: argoproj.io/v1alpha1
  kind: ClusterWorkflowTemplate
  metadata:
    name: gen-params
  spec:
    templates:
    - name: tasks
      steps:
      - - name: prepare
          template: prepare
      - - name: gen-params
          template: gen-params
  ...     
  </code></pre>
  <p><strong>Workflow</strong></p>
  <pre class="lang-yaml prettyprint-override"><code>apiVersion: argoproj.io/v1alpha1
  kind: Workflow
  metadata:
    name: demo
  spec:
    entrypoint: main
    templates:
    - name: main
      steps:
      - - name: gen-params
          templateRef:
            name: gen-params
            template: tasks
            clusterScope: true
      - - name: calculate
          template: calculate
          arguments:
            parameters:
            - name: params
              value: &quot;{{steps.gen-params.steps.gen-params.outputs.result}}&quot;  # not work
  ...
  </code></pre>