AnsweredAssumed Answered

How to get extensionElements variable value if we have only taskId through API

Question asked by krishnapatra on Aug 9, 2016
Latest reply on Aug 10, 2016 by trademak
I'm using activiti with spring rest api. User will be having option to select any of its listed tasks and ask for the values of extensionElements. To do so, I'm making a rest call with taskid.
Is there a way to fetch value of extensionElements through taskId.

Below is my workflow:
         <userTask id="writeReportTask" name="Write monthly financial report" activiti:assignee="${assignee}" activiti:owner="${owner}">
            <extensionElements>
                <activiti:field name="clientName" stringValue="${clientName}" />
                <activiti:field name="companyName" stringValue="${companyName}" />
            </extensionElements>
          </userTask>

         <userTask id="financeReportTask" name="review monthly financial report" activiti:assignee="${assignee}" activiti:owner="${owner}">
            <extensionElements>
                <activiti:field name="clientName" stringValue="${clientName}" />
                <activiti:field name="companyName" stringValue="${companyName}" />
            </extensionElements>
          </userTask>

Outcomes