Hi,
I have developed custom Service tasks by following the steps (Extending the Eclipse Plugin | docs.camunda.org).
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, “ServiceTask.custom.style”, 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
!STACK 0
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