cancel
Showing results for 
Search instead for 
Did you mean: 

Web service task deployment error

matus
Champ in-the-making
Champ in-the-making
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?

5 REPLIES 5

matus
Champ in-the-making
Champ in-the-making
Sorry some kind of paste error here is how the task looked:  "serviceTask id="webService" name="testWebService" implementation="##WebService" operationRef="tns:loginToIdmOperation"

vasile_dirla
Star Contributor
Star Contributor
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


matus
Champ in-the-making
Champ in-the-making
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)?

matus
Champ in-the-making
Champ in-the-making
Allright solved my problem i think as far as the second error goes, just had to add tns namespace link to the definition tag

matus
Champ in-the-making
Champ in-the-making
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?