Web service task deployment error
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2015 10:52 AM
Hello everyone,
I tried to create a web service task through activiti modeler, but couldnt find right attributes there, so i just left it empty and exported the bpmn,xml file and edited it there. The final task looked like this:
<serviceTask id="webService" name="testWebService" implementation="##WebService" operationRef="tns:loginToIdmOperation">
…
</serviceTask>
When i imported it back to activiti explorer not only did the image (which was previously fine) disappeared in "Model workspace tab", but when trying to deploy the process i get the following error:
One of the attributes 'class', 'delegateExpression', 'type', 'operation', or 'expression' is mandatory on serviceTask.
Does anyone have any tips on this please?
I tried to create a web service task through activiti modeler, but couldnt find right attributes there, so i just left it empty and exported the bpmn,xml file and edited it there. The final task looked like this:
<serviceTask id="webService" name="testWebService" implementation="##WebService" operationRef="tns:loginToIdmOperation">
…
</serviceTask>
When i imported it back to activiti explorer not only did the image (which was previously fine) disappeared in "Model workspace tab", but when trying to deploy the process i get the following error:
One of the attributes 'class', 'delegateExpression', 'type', 'operation', or 'expression' is mandatory on serviceTask.
Does anyone have any tips on this please?
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2015 10:54 AM
Sorry some kind of paste error here is how the task looked: "serviceTask id="webService" name="testWebService" implementation="##WebService" operationRef="tns:loginToIdmOperation"
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2015 03:41 PM
Hi Matus,
would be great if you could provide us some more information:
1. the xml you want to deploy.
2. some more information form your log file.
3. Activiti version.
Note: Activiti Explorer is just an application which demonstrates the capabilities of Activiti Engine.
therefore would be great if you provide us a unit test to show this issue. (if there is a real issue or maybe just an incomplete XML)
http://forums.activiti.org/content/sticky-how-write-unit-test
would be great if you could provide us some more information:
1. the xml you want to deploy.
2. some more information form your log file.
3. Activiti version.
Note: Activiti Explorer is just an application which demonstrates the capabilities of Activiti Engine.
therefore would be great if you provide us a unit test to show this issue. (if there is a real issue or maybe just an incomplete XML)
http://forums.activiti.org/content/sticky-how-write-unit-test
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2015 02:48 AM
Hello Vasile, thank you for the reply.
I attached the xml, not sure if it's the best way to share xml with you (as i can only attach .txt). Activiti version is 5.18.0 . When deployed directly through activiti engine i get different error:
08:44:51,738 INFO [org.activiti.engine.impl.bpmn.deployer.BpmnDeployer] (MSC service thread 1-15) Processing resource registracia.bpmn20.xml
08:44:52,254 ERROR [stderr] (MSC service thread 1-15) UndeclaredPrefix: Cannot resolve 'tns:loginToIdmItem' as a QName: the prefix 'tns' is not declared.
I'm not sure if i understood the namespace attribute of the import tag correctly, is it supposed to be the namespace of the wsdl or some kind of default activiti namespace (as shown in examples)?
I attached the xml, not sure if it's the best way to share xml with you (as i can only attach .txt). Activiti version is 5.18.0 . When deployed directly through activiti engine i get different error:
08:44:51,738 INFO [org.activiti.engine.impl.bpmn.deployer.BpmnDeployer] (MSC service thread 1-15) Processing resource registracia.bpmn20.xml
08:44:52,254 ERROR [stderr] (MSC service thread 1-15) UndeclaredPrefix: Cannot resolve 'tns:loginToIdmItem' as a QName: the prefix 'tns' is not declared.
I'm not sure if i understood the namespace attribute of the import tag correctly, is it supposed to be the namespace of the wsdl or some kind of default activiti namespace (as shown in examples)?
activiti_3.txt.zip
3 KB
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2015 07:47 AM
Allright solved my problem i think as far as the second error goes, just had to add tns namespace link to the definition tag
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2015 08:21 AM
But now it says
14:10:39,194 ERROR [stderr] (MSC service thread 1-8) cvc-id.1: There is no ID/IDREF binding for IDREF 'guidSystem'.
where guidSystem is what i put into <targetRef></targetRef> of "simple" dataInputAssociation. When trying to google it, i found that there must exist something that the tag above is referencing. But i thought the service call itself should somehow link the reference to the model of the message. Anyone can give an insight on this please?
14:10:39,194 ERROR [stderr] (MSC service thread 1-8) cvc-id.1: There is no ID/IDREF binding for IDREF 'guidSystem'.
where guidSystem is what i put into <targetRef></targetRef> of "simple" dataInputAssociation. When trying to google it, i found that there must exist something that the tag above is referencing. But i thought the service call itself should somehow link the reference to the model of the message. Anyone can give an insight on this please?
