cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve custom fields defined in the process XML

rohail
Champ in-the-making
Champ in-the-making
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?
2 REPLIES 2

rohail
Champ in-the-making
Champ in-the-making
hi, can anyone respond to this question. Much appreciated. Thanks!

rohail
Champ in-the-making
Champ in-the-making
Hello, just bumping this hoping for a response