Camunda Eclipse: How to add connector and its inputoutput parameters to Custom Service Task code



I have developed custom Service tasks by following the steps (

I have created separate plug-in project for each custom task. I am facing following issues,

  • When I change the color for one task using below snippet, and run the project in eclipse. the color is applying to all the tasks. Please help me

StyleUtil.applyStyle(decorateContainer, “”, new ShapeStyle(IColorConstant.BLUE), false);

  • I wanted to set the name to the task (Name field under General category of property panel) and connector details. I am facing some issues here,

public ServiceTask createBusinessObject(ICreateContext context) {
ServiceTask serviceTask = super.createBusinessObject(context);
serviceTask.eSet(PluginConstants.CLASS_STRUCTURAL_FEATURE, PluginConstants.CLASS_VALUE);

                         serviceTask.eSet(ModelPackage.eINSTANCE.getConnectorType_ConnectorId(), "http-connector");

//and the input parameters for the connector.

Exception while setting
!MESSAGE GFCommandStack.execute(Command) java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection
java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection

Please help me on these issues. Very urgent. Critical delivery milestone. Thanks


Hi @tb0095408,

The Eclipse Plugin is no longer in active development (see the note in our docs:

Instead, we provide the Camunda Modeler (download here:

Best regards,


Thanks Mat for the reply. We are almost at the end of our dev now. Your help is really appreciated for the above query.

We will sure migrate to new platform in future but for now, please provide a solution for the above query. Thanks for understanding.