When I call deployment service ( /deployment/create) , I will get ("ENGINE-09005 Could not parse BPMN process. Errors: * One of the attributes ‘class’, ‘delegateExpression’, ‘type’, or ‘expression’ is mandatory on serviceTask)since I did n’t specify (class or delegateExpression or delegateExpression ) but I used (bpmn2:extensionElements) for http- connector.
I still have these errors even after adding the http-connector dependencies to pom.xml to the embedded-spring-rest application.
Can you please tell whether REST API support deploying a process model contain service task to be implemented by http-connector or not? , or any alternative solution.
I attached it .I have seen ConnectProcessEnginePlugin on Connectors | docs.camunda.org , but I am not sure how to add this plugin in spring configuration file(applicationContext.xml).
I would be much appreciated if you can help me with adding the required bean and it’s properties.
See 1 how to add a ProcessEnginePlugin to the SpringProcessEngineConfiguration. In your case you have to add the org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin instead of org.camunda.spin.plugin.impl.SpinProcessEnginePlugin.
I mean when I did the modification on the spring configuration file then used deployment service to deploy model with service task, I get the following error.
Apache Tomcat/7.0.73 - Error report
HTTP Status 404 - /camunda-quickstart-embedded-spring-rest/deployment/create
description The requested resource is not available.
Apache Tomcat/7.0.73
.
Before adding the modification I could deploy a model with script task successfully ,after adding it, I can’t deploy the simple model with script task (have same error HTTP 404).
The problem for error HTTP - 404 was because there was a problem with uploading class “org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin” after removing it from .m2 local repository and updated project(reinstall dependencies) , I could upload that model with service task.
Now when I want to start process instance , I get the following error: No connector found for connector id ‘http-connector’.
Thank you very much for your answers and notes finally all service tasks are finally executed and I get the results on the eclipse console. The last question please, is it possible to get that result by using a REST API?
I want to get variables return by service task( which contain the response of calling a service) and script task.
I think have to use the following in a script task execution.setVariable('processInstanceVariable', scriptTaskVariable);
After that have to use variable -instance service to return variable values but when I call it, I’ll get empty array.