{"_id":"5787fc975286030e00589ddc","__v":1,"project":"5764745b4f867c0e002bc8ed","version":{"_id":"5764745b4f867c0e002bc8f0","project":"5764745b4f867c0e002bc8ed","__v":4,"createdAt":"2016-06-17T22:06:19.667Z","releaseDate":"2016-06-17T22:06:19.667Z","categories":["5764745b4f867c0e002bc8f1","57683255bb15f40e00a288ce","57683306d8067e1900fc823d","57694b8f47693a0e00002b19"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"githubsync":"","user":"5564f227f0f70f0d00a9ab20","category":{"_id":"57683306d8067e1900fc823d","__v":0,"project":"5764745b4f867c0e002bc8ed","version":"5764745b4f867c0e002bc8f0","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-06-20T18:16:38.236Z","from_sync":false,"order":3,"slug":"development","title":"Development"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-07-14T20:56:55.250Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":999,"body":"Some connectors will need to process any message, irregardless of jobType.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Add defaultJobType to package.json\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"name\\\": \\\"connector-name\\\",\\n  \\\"connector\\\": {\\n    \\\"defaultJobType\\\": \\\"SomeJob\\\"\\n  }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"package.json\"\n    }\n  ]\n}\n[/block]","excerpt":"Specify a default jobType for a Connector","slug":"default-job-type","type":"basic","title":"Default Job Type"}

Default Job Type

Specify a default jobType for a Connector

Some connectors will need to process any message, irregardless of jobType. [block:api-header] { "type": "basic", "title": "Add defaultJobType to package.json" } [/block] [block:code] { "codes": [ { "code": "{\n \"name\": \"connector-name\",\n \"connector\": {\n \"defaultJobType\": \"SomeJob\"\n }\n}", "language": "json", "name": "package.json" } ] } [/block]