return createPortType(this.graph.getID(), workflowOperationName, inputMessage, outputMessage);
}
private WsdlPortType createPortType(String portTypeName, String operationName, WsdlMessage inputMessage,
WsdlMessage outputMessage) {
WsdlPortType portType = this.definitions.addPortType(portTypeName);
WsdlPortTypeOperation operation = portType.addOperation(operationName);
if (inputMessage != null) {
operation.setInput(inputMessage);
}
if (outputMessage != null) {
operation.setOutput(outputMessage);