Red Hat Bugzilla – Bug 980842
Data assignement to "Interface" ignored in "ServiceTask".
Last modified: 2014-08-06 16:13:14 EDT
An data assignment to "Interface" in ioSpecification is ignore when a interface definition is present in the process. It would be nice if the user would see a warning message that it is ignored.
<bpmn2:dataInput id="DataInput_4" name="Interface"/>
<bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_8">SimpleService</bpmn2:from>
<bpmn2:to xsi:type="bpmn2:tFormalExpression" id="FormalExpression_7">DataInput_4</bpmn2:to>
Perhaps this ioSpecification part could be used in case the mandatory name attribute is missing in the interface element. The missing attribute is currently ignored by the validator.
Marek, would it be possible to attach complete bpmn2 and if possible test case? But the most important is to have the bpmn2 itself.
Created attachment 768350 [details]
Hi, sure. My apologies for not doing it right away.
Please note that the interface on line 11 is missing it's 'name' attribute. The implementation name is set on line 75 using the 'Interface' parameter. This parameter will be empty in the WebServiceWorkItemHandler.
fixed in master, the issue was due to service task handler was overriding the assignments done by the TaskHandler and thus it appeared to be ignored as it was simply reset.
Please note that not all parameters should be possible to set via data input assignments, for example following is a list that cannot:
- implementation - it's bpmn2 regular attribute of serviceTask
- operationRef - it's bpmn2 regular attribute of serviceTask
Moreover Interface, Operation are not used by the WebService implementation as it relies directly on operationRef attribute instead to find the right operation and interface. Although they are completely valid for Java service task.
Verified on ER3.