AnsweredAssumed Answered

Retrieve custom fields defined in the process XML

Question asked by rohail on Dec 26, 2014
Latest reply on Jan 8, 2015 by rohail
Hello, if I have tasks in my process where I have created some custom fields like so

<serviceTask id="addAccount" name="Add Account" activiti:expression="${businessRules.addAccount(execution)}" activiti:resultVariableName="result">
      <extensionElements>
        <activiti:field name="MyField1">
          <activiti:string><![CDATA[someValue]]></activiti:string>
        </activiti:field>
        <activiti:field name="MyField2">
          <activiti:string><![CDATA[otherValue]]></activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>

Is there any way for me to use the API to retrieve the fields from the process definition? I am not talking about run time, but just at design time, is there any way to retrieve this information through the API?

Outcomes