Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "flow": {
- "createdAt": "2017-06-22T19:08:46.839Z",
- "id": "30a99b08-f9db-42ef-91b3-c6e859966308",
- "name": "Preflight and Post",
- "nodes": [
- {
- "displayName": "Inputs",
- "id": 0,
- "inputs": [
- {
- "key": "MY File",
- "type": "file",
- "value": ""
- }
- ],
- "name": "inputs",
- "next": [
- 2
- ],
- "type": "input"
- },
- {
- "displayName": "End",
- "id": 1,
- "name": "end",
- "next": [],
- "outputs": [],
- "type": "end",
- "inputs": {}
- },
- {
- "displayName": "Fetch File (URL)",
- "id": 2,
- "inputs": {
- "url": {
- "values": [
- {
- "field": "MY File",
- "nodeName": "inputs",
- "taskDisplayName": "Inputs",
- "type": "ref"
- }
- ]
- }
- },
- "name": "fetchfileurl-0",
- "next": [
- 3
- ],
- "task": {
- "category": "File",
- "description": "Fetch a file from a URL and save it in the flow.",
- "displayName": "Fetch File (URL)",
- "form": {
- "url": {
- "description": "The URL of the file to fetch",
- "displayName": "URL",
- "key": "url",
- "type": "file",
- "validation": {
- "required": true
- }
- }
- },
- "inputs": {
- "url": {
- "isPayload": true,
- "key": "url",
- "type": "file"
- }
- },
- "name": "fetchFileURL",
- "outputs": {
- "contentType": {
- "FormType": "select",
- "description": "The File type of the fetched file",
- "displayName": "File Type",
- "isPayload": false,
- "key": "contentType",
- "options": [
- {
- "label": ".pdf",
- "value": "application/pdf"
- },
- {
- "label": ".zpl",
- "value": "application/zpl"
- },
- {
- "label": ".jpeg",
- "value": "image/jpeg"
- },
- {
- "label": ".png",
- "value": "image/png"
- },
- {
- "label": ".bmp",
- "value": "image/bmp"
- },
- {
- "label": ".gif",
- "value": "image/gif"
- },
- {
- "label": ".tiff",
- "value": "image/tiff"
- },
- {
- "label": "File",
- "value": "application/vnd.hp-hpgl"
- },
- {
- "label": ".dll",
- "value": "application/x-msdownload"
- },
- {
- "label": ".zip",
- "value": "application/zip"
- },
- {
- "label": ".7zip",
- "value": "application/x-7z-compressed"
- },
- {
- "label": ".rar",
- "value": "application/x-rar-compressed"
- },
- {
- "label": ".sit",
- "value": "application/x-stuffit"
- },
- {
- "label": ".gmc",
- "value": "application/gmc+xml"
- },
- {
- "label": ".jdf",
- "value": "application/vnd.cip4-jdf+xml"
- },
- {
- "label": ".jmf",
- "value": "application/vnd.cip4-jmf+xml"
- },
- {
- "label": ".xml",
- "value": "application/xml"
- }
- ],
- "type": "string"
- },
- "fileSize": {
- "FormType": "fileSize",
- "description": "The File size of the fetched file",
- "displayName": "File Size",
- "isPayload": false,
- "key": "fileSize",
- "type": "number"
- },
- "url": {
- "FormType": "file",
- "description": "The outgoing file for the next task",
- "displayName": "FetchedFile",
- "isPayload": true,
- "key": "url",
- "type": "file"
- }
- },
- "type": "task",
- "workerType": "workforce.task.file.fetch"
- },
- "type": "task"
- },
- {
- "displayName": "PDF Preflight (Callas)",
- "id": 3,
- "inputs": {
- "analyzeOnly": {
- "values": [
- {
- "type": "custom",
- "value": "true"
- }
- ]
- },
- "profile": {
- "values": [
- {
- "type": "custom",
- "value": "pdfx3"
- }
- ]
- },
- "reportTypes": {
- "values": [
- {
- "value": "SUMMARY"
- }
- ]
- },
- "url": {
- "values": [
- {
- "field": "url",
- "nodeName": "fetchfileurl-0",
- "taskDisplayName": "Fetch File (URL)",
- "type": "ref"
- }
- ]
- }
- },
- "name": "pdfpreflightcallas-1",
- "next": [
- 4
- ],
- "task": {
- "category": "PDF/Tools",
- "description": "Preflight a PDF using the PDF Toolbox engine.",
- "displayName": "PDF Preflight (Callas)",
- "form": {
- "checksOnly": {
- "description": "Do not modify the pdf",
- "displayName": "Checks Only",
- "key": "analyzeOnly",
- "type": "checkbox",
- "validation": {
- "required": true
- }
- },
- "file": {
- "description": "The PDF File to preflight",
- "displayName": "File",
- "key": "url",
- "type": "file",
- "validation": {
- "required": true
- }
- },
- "profile": {
- "description": "The Profile to check the PDF against",
- "displayName": "Profile",
- "key": "profile",
- "options": [
- {
- "label": "PDF X1A",
- "value": "pdfx1a"
- },
- {
- "label": "PDF X3",
- "value": "pdfx3"
- },
- {
- "label": "PDF X4",
- "value": "pdfx4"
- }
- ],
- "type": "select",
- "validation": {
- "required": true
- }
- },
- "reportType": {
- "description": "The type of report to generate from the preflight actions",
- "displayName": "Report Type",
- "key": "reportTypes",
- "options": [
- {
- "label": "Summary only",
- "value": "SUMMARY"
- },
- {
- "label": "Full PDF inventory",
- "value": "INVENTORY"
- },
- {
- "label": "Markup (fixes annotated)",
- "value": "COMMENT,overview"
- },
- {
- "label": "Markup (fixes on a mask)",
- "value": "MASK,overview"
- },
- {
- "label": "Markup (fixes on a layer)",
- "value": "LAYER,overview"
- },
- {
- "label": "Before/after comparison",
- "value": "COMPARE"
- }
- ],
- "type": "select",
- "validation": {
- "required": true
- }
- }
- },
- "inputs": {
- "analyzeOnly": {
- "isPayload": false,
- "key": "analyzeOnly",
- "type": "bool"
- },
- "profile": {
- "defaultValue": "pdfx4",
- "isPayload": false,
- "key": "profile",
- "type": "string"
- },
- "reportTypes": {
- "defaultValue": "SUMMARY",
- "isPayload": false,
- "key": "reportTypes",
- "type": "string"
- },
- "url": {
- "isPayload": true,
- "key": "url",
- "type": "file"
- }
- },
- "name": "pdfPreflightCallas",
- "outputs": {
- "annotatedUrl": {
- "FormType": "file",
- "description": "A PDF report of the preflight changres",
- "displayName": "PDF Report",
- "isPayload": false,
- "key": "annotatedUrl",
- "type": "file"
- },
- "reportUrl": {
- "FormType": "file",
- "description": "An XML report of the preflight changes",
- "displayName": "XML Report",
- "isPayload": false,
- "key": "reportUrl",
- "type": "file"
- },
- "result": {
- "FormType": "checkbox",
- "description": "The result of the preflight",
- "displayName": "Result",
- "isPayload": false,
- "key": "result",
- "type": "bool"
- },
- "url": {
- "FormType": "file",
- "description": "The outgoing file for the next task",
- "displayName": "Preflighted File",
- "isPayload": true,
- "key": "url",
- "type": "file"
- }
- },
- "type": "task",
- "workerMapping": {
- "analyzeOnly": "{{analyzeOnly}}",
- "nonPdfCompatibleFileSkip": "true",
- "outputOriginalOnError": "true",
- "profile": "{{profile}}",
- "reportTypes": [
- "{{reportTypes}}",
- "XML"
- ],
- "url": "{{url}}"
- },
- "workerType": "workforce.task.file.preflight"
- },
- "type": "task"
- },
- {
- "displayName": "HTTP Request",
- "id": 4,
- "inputs": {
- "body": {
- "values": [
- {
- "field": "reportUrl",
- "nodeName": "pdfpreflightcallas-1",
- "taskDisplayName": "PDF Preflight (Callas)",
- "type": "ref"
- }
- ]
- },
- "expectedStatusCodes": {
- "values": [
- {
- "value": "200"
- }
- ]
- },
- "method": {
- "values": [
- {
- "value": "POST"
- }
- ]
- },
- "timeout": {
- "values": [
- {
- "value": "20000"
- }
- ]
- },
- "url": {
- "values": [
- {
- "type": "custom",
- "value": "https://requestb.in/zbki3qzb"
- }
- ]
- }
- },
- "name": "httprequest-2",
- "next": [
- 1
- ],
- "task": {
- "category": "Communication",
- "description": "Make an Http request.",
- "displayName": "HTTP Request",
- "form": {
- "address": {
- "description": "The HTTP endpoint to send the request to",
- "displayName": "Address",
- "key": "url",
- "type": "text",
- "validation": {
- "example": "http://www.mywebaddress.com",
- "hint": "Enter a web address, with http:// and a domain",
- "match": "https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_+.~#?&//=]*)",
- "required": true
- }
- },
- "body": {
- "description": "The Body of the HTTP Post",
- "displayName": "Body",
- "key": "body",
- "type": "textarea",
- "validation": {
- "required": false
- }
- },
- "method": {
- "description": "The HTTP method to use in the request.",
- "displayName": "Method",
- "key": "method",
- "options": [
- {
- "label": "PUT",
- "value": "PUT"
- },
- {
- "label": "GET",
- "value": "GET"
- },
- {
- "label": "POST",
- "value": "POST"
- },
- {
- "label": "DELETE",
- "value": "DELETE"
- }
- ],
- "type": "select",
- "validation": {
- "required": true
- }
- },
- "statusCodes": {
- "description": "Accepted status codes for the response",
- "displayName": "Status Codes",
- "key": "expectedStatusCodes",
- "type": "text",
- "validation": {
- "required": true
- }
- },
- "timeout": {
- "description": "How long to wait for a response before timing out",
- "displayName": "Timeout",
- "key": "timeout",
- "type": "integer",
- "validation": {
- "required": true
- }
- }
- },
- "inputs": {
- "body": {
- "isPayload": false,
- "key": "body",
- "type": "string"
- },
- "expectedStatusCodes": {
- "defaultValue": "200",
- "isPayload": false,
- "key": "expectedStatusCodes",
- "type": "string"
- },
- "method": {
- "defaultValue": "POST",
- "isPayload": false,
- "key": "method",
- "type": "string"
- },
- "timeout": {
- "defaultValue": "20000",
- "isPayload": false,
- "key": "timeout",
- "type": "number"
- },
- "url": {
- "isPayload": true,
- "key": "url",
- "type": "string"
- }
- },
- "name": "httpRequest",
- "outputs": {
- "body": {
- "FormType": "textarea",
- "description": "The body of the HTTP response",
- "displayName": "Body",
- "isPayload": true,
- "key": "body",
- "type": "string"
- },
- "statusCode": {
- "FormType": "text",
- "description": "The code of the HTTP response",
- "displayName": "Status Code",
- "isPayload": false,
- "key": "statusCode",
- "type": "string"
- }
- },
- "type": "task",
- "workerType": "workforce.task.http"
- },
- "type": "task"
- }
- ],
- "updatedAt": "2017-06-22T19:08:46.840Z"
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement