[#ftl attributes={"generated.type":"factory"}]
{
  "factory": {
    "id": "[=properties.serviceId]-rest-connector-in",
    "displayName": "SERVICE :: REST :: [=properties.serviceId] :: IN",
    "type": "entaxy.runtime.connector",
    "description": "IN connector for REST service [=properties.serviceId]",
    "parent": "abstract-service-rest-connector-in",
    "isAbstract": false
  },
  "entaxy.runtime.connector": {},
  "fields": {
  	"serviceId": {
  		"type": "String", 
  		"required": true,
  		"isHidden": true,
  		"defaultValue": "[=properties.serviceId]"
  	},
	"##publish": {
		"type": "Map",
		"required": true,
		"isHidden": true,
		"defaultValue":{
	        "@INHERIT": {
	          "relation": "append"
	        },		
			"relation": [
				"[=properties.serviceId]:[=properties.serviceObjectType]:connector:dependency:bounds"
			]
		}
	},
  	"pre-route": {
		"@RESOURCE": {
			"__@INHERIT": {
				"preprocess": "append"
			},
			"__preprocess":[
				{
					"processor": "xslt",
					"source":"entaxy-file-internal:routes-common/soap-operation-router.xslt",
					"parameters": {
						"profileName": {				
							"@CALCULATED": {
								"expression": "${#OWNER#.properties.systemName}",
								"lazy": false
							}
						}
					}
				}
				
			],
			"postprocess": [
				{
				  	"processor": "component-library",
					"parameters": {
						"serviceType": "[=properties.serviceType]"
					}
				}			
			]
		},
  		"defaultValue": {
				"@RESOURCE": {
					"provider": "service-resources",
					"location": "[=properties.location]",
					"endType": "String",
					"format": "base64"
				}
			}
		}
  },
  "outputs": {
    "init": {
      "isDefault": true,
      "fields": {
      	"serviceId": {}
      },
      "config": {
        "configurable": false
      }
    }
  }
}
