{"record":{"id":"af461a2a86a329eb","repo":"flowable/flowable-engine","slug":"unsupported-import-type-s-import-type","errorCode":null,"errorMessage":"Unsupported import type '%s' (import type)","messagePattern":"Unsupported import type '(.+?)' \\(import type\\)","errorType":"exception","errorClass":"FlowableException","httpStatus":null,"severity":"error","filePath":"modules/flowable-engine/src/main/java/org/flowable/engine/impl/bpmn/behavior/WebServiceActivityBehavior.java","lineNumber":286,"sourceCode":"                    XMLImporter importerInstance = processEngineConfig.getWsdlImporterFactory()\n                            .createXMLImporter(theImport);\n\n                    xmlImporterMap.put(theImport.getNamespace(), importerInstance);\n                    importerInstance.importFrom(theImport, sourceSystemId);\n\n                    structureDefinitionMap.putAll(importerInstance.getStructures());\n                    wsServiceMap.putAll(importerInstance.getServices());\n                    wsOperationMap.putAll(importerInstance.getOperations());\n\n                } catch (FlowableException e) {\n                    throw e;\n                } catch (Exception e) {\n                    throw new FlowableException(String.format(\"Error importing '%s' as '%s'\", theImport.getLocation(),\n                            theImport.getImportType()), e);\n                }\n\n            } else {\n                throw new FlowableException(String.format(\"Unsupported import type '%s'\", theImport.getImportType()));\n            }\n        }\n    }\n\n    protected void returnMessage(List<DataAssociation> dataOutputAssociations, DelegateExecution execution) {\n        for (DataAssociation dataAssociationElement : dataOutputAssociations) {\n            AbstractDataAssociation dataAssociation = createDataOutputAssociation(dataAssociationElement);\n            dataAssociation.evaluate(execution);\n        }\n    }\n\n    protected void fillMessage(List<DataAssociation> dataInputAssociations, DelegateExecution execution) {\n        for (DataAssociation dataAssociationElement : dataInputAssociations) {\n            AbstractDataAssociation dataAssociation = createDataInputAssociation(dataAssociationElement);\n            dataAssociation.evaluate(execution);\n        }\n    }\n","sourceCodeStart":268,"sourceCodeEnd":304,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-engine/src/main/java/org/flowable/engine/impl/bpmn/behavior/WebServiceActivityBehavior.java#L268-L304","documentation":"Flowable throws this from WebServiceActivityBehavior.fillImporterInfo when a BPMN <import> element's importType is not 'wsdl' (and the location is not treated as WSDL). The web-service activity behavior only knows how to build a WSDL importer; anything else is rejected at BPMN parse time. The exception aborts parsing of the process containing the web-service task.","triggerScenarios":"A BPMN XML file defines a <serviceTask> with <import importType=\"...\"> where importType is anything other than the supported WSDL type (e.g. 'http://schemas.xmlsoap.org/wsdl/', misspelled, or 'xsd'). Hit during process definition parsing via fillDefinitionMaps.","commonSituations":"Hand-written or tool-generated BPMN copied from non-Flowable examples; typos in the importType attribute; attempting to import an XSD or other schema instead of a WSDL; modeling tools emitting import elements for other import types.","solutions":["Set importType on the <import> element to the WSDL namespace: http://schemas.xmlsoap.org/wsdl/","Point the import's location attribute at the actual WSDL document URL of the service","Remove the <import> element entirely if the web-service task does not need it and pass the WSDL location directly on the task","If a non-WSDL import is genuinely required, it is unsupported by this behavior — implement a custom ServiceTask behavior instead"],"exampleFix":"<!-- before -->\n<import importType=\"xsd\" location=\"http://example.com/service?wsdl\" />\n\n<!-- after -->\n<import importType=\"http://schemas.xmlsoap.org/wsdl/\" location=\"http://example.com/service?wsdl\" />","handlingStrategy":"validation","validationCode":"String type = importElement.getImportType();\nif (!\"http://schemas.xmlsoap.org/wsdl/\".equals(type)) {\n    throw new IllegalArgumentException(\"Only WSDL importType is supported, got: \" + type);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Always use importType=\"http://schemas.xmlsoap.org/wsdl/\" for web-service imports in BPMN","Validate BPMN files with the Flowable modeler/schema validation before deploying","Copy import elements only from working Flowable examples, not generic BPMN samples"],"tags":["bpmn","web-service","wsdl","parse-time","unsupported-import"],"backgroundTag":"unsupported-operation","analyzedSha":"d6d39ce1c69ff244f2d9dc6af756a9b95e865586","analyzedAt":"2026-09-11T06:41:19.413Z","contentChangedAt":"2026-09-11T06:41:19.413Z","schemaVersion":2},"datasetVersion":"2026-09-18T11:17:12.947Z"}