AnsweredAssumed Answered

Allowing expressions in properties of CustomServiceTask

Question asked by f3lix on Jul 15, 2011
Latest reply on Jul 15, 2011 by f3lix
Hello,

I followed the user guide and successfully added and entry to the designer's palette by extending AbstractCustomServiceTask and adding the appropiate annotations.

If i have a text property like this:


@Property(type = PropertyType.TEXT, displayName = "Service endpoint URL")
private String endpointURL;

the user can enter text for the field endpointURL, but I also want to allow expressions for this field. How can I do this?

Or put it another way: currently the generated BPMN2 XML will look like this:

   <activiti:field name="endpointURL">
          <activiti:string>${endpointUrl}</activiti:string>
    </activiti:field>

How do I get the following (with AbstractCustomServiceTask ):

   <activiti:field name="endpointURL">
          <activiti:expression>${endpointUrl}</activiti:expression>
    </activiti:field>

Regards,
Felix

Outcomes