AnsweredAssumed Answered

Custom extension elements.. possible ??

Question asked by rashmis on Nov 17, 2010
Latest reply on Nov 17, 2010 by tiesebarrell
Hi,

I was wondering how can I create my own custom extension element ?
For example, I am using a ServiceTask for sending mails. My xml looks something like this :

<serviceTask id="sendMail" activiti:type="mail">
      <extensionElements>
       <activiti:field activiti:name="from" activiti:string-value="xxx@foo.com" />
        <activiti:field activiti:name="to" activiti:string-value="yyy@bar.com" />
        <activiti:field activiti:name="subject" activiti:string-value="Hey There !" />
     </extensionElements>
</serviceTask>

I want to add a new extensionElement here called
<activiti:field activiti:name="myNewExtension" activiti:string-value="myNewExtnValue" />
Is this possible ?

Thanks

Outcomes