Hi,
I just started to play around with the camunda engine and possibility to develop my own connector. I started to use the file connector that Bernd Rücker has shown in the webinar last week.
-->
https://github.com/camunda/camunda-consulting/tree/master/one-time-examples/2015-01-webinars
I used a Tomcat with camunda 7.2 from your side. So I think the configuration for connectors should be enabled. Right?
I rewrite the connector to make it much less complex (*g*) so that it just make an sys.out at the moment.
I made a short bpmn.20 process with a start, the connector call by service task, a human task (just to let the process not get finished.) and an end task.
The process gets deployed so that I can start it from the tasklist.
But then I get an error that the connector with the id was not found.
Tasklist shows:
The process could not be started. : cannot POST /camunda/api/engine/engine/default/process-definition/e89b87dd-9e40-11e4-b15b-d4bed966892b/submit-form (500)
The Tomcat log shows:
SEVERE: Error while closing command context
org.camunda.connect.ConnectorException: No connector found for connector id 'nameOfMyConnector'
at org.camunda.connect.plugin.impl.ServiceTaskConnectorActivityBehavior.ensureConnectorInitialized(ServiceTaskConnectorActivityBehavior.java:93)
at org.camunda.connect.plugin.impl.ServiceTaskConnectorActivityBehavior.execute(ServiceTaskConnectorActivityBehavior.java:48)
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute.execute(PvmAtomicOperationActivityExecute.java:42)
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute.execute(PvmAtomicOperationActivityExecute.java:27)
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:440)
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:420)
...
So it looks if the engine did not find my connector.
1. I placed the connector code as .jar in the lib of my demo process .war
2. The name of the connector is the name I placed in the ID attribute of my XYZConnector.java class
--> public static final String ID = "nameOfMyConnector";
Is that right? Or do I have to define the name somewhere else?
3. the org.camunda.connect.spi.ConnectorProvider File under META-INF/services show the path to the XYZConnectorProvicerImpl so that the engine should find the connector. Right?
Can somebody please check if the things I described were correct? If yes - what else may I did wrong that my connector is not found by the engine?