Advertisement
pierissimo

Untitled

Jun 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 16.97 KB | None | 0 0
  1. "flow": {
  2.       "createdAt": "2017-06-22T19:08:46.839Z",
  3.       "id": "30a99b08-f9db-42ef-91b3-c6e859966308",
  4.       "name": "Preflight and Post",
  5.       "nodes": [
  6.         {
  7.           "displayName": "Inputs",
  8.           "id": 0,
  9.           "inputs": [
  10.             {
  11.               "key": "MY File",
  12.               "type": "file",
  13.               "value": ""
  14.             }
  15.           ],
  16.           "name": "inputs",
  17.           "next": [
  18.             2
  19.           ],
  20.           "type": "input"
  21.         },
  22.         {
  23.           "displayName": "End",
  24.           "id": 1,
  25.           "name": "end",
  26.           "next": [],
  27.           "outputs": [],
  28.           "type": "end",
  29.           "inputs": {}
  30.         },
  31.         {
  32.           "displayName": "Fetch File (URL)",
  33.           "id": 2,
  34.           "inputs": {
  35.             "url": {
  36.               "values": [
  37.                 {
  38.                   "field": "MY File",
  39.                   "nodeName": "inputs",
  40.                   "taskDisplayName": "Inputs",
  41.                   "type": "ref"
  42.                 }
  43.               ]
  44.             }
  45.           },
  46.           "name": "fetchfileurl-0",
  47.           "next": [
  48.             3
  49.           ],
  50.           "task": {
  51.             "category": "File",
  52.             "description": "Fetch a file from a URL and save it in the flow.",
  53.             "displayName": "Fetch File (URL)",
  54.             "form": {
  55.               "url": {
  56.                 "description": "The URL of the file to fetch",
  57.                 "displayName": "URL",
  58.                 "key": "url",
  59.                 "type": "file",
  60.                 "validation": {
  61.                   "required": true
  62.                 }
  63.               }
  64.             },
  65.             "inputs": {
  66.               "url": {
  67.                 "isPayload": true,
  68.                 "key": "url",
  69.                 "type": "file"
  70.               }
  71.             },
  72.             "name": "fetchFileURL",
  73.             "outputs": {
  74.               "contentType": {
  75.                 "FormType": "select",
  76.                 "description": "The File type of the fetched file",
  77.                 "displayName": "File Type",
  78.                 "isPayload": false,
  79.                 "key": "contentType",
  80.                 "options": [
  81.                   {
  82.                     "label": ".pdf",
  83.                     "value": "application/pdf"
  84.                   },
  85.                   {
  86.                     "label": ".zpl",
  87.                     "value": "application/zpl"
  88.                   },
  89.                   {
  90.                     "label": ".jpeg",
  91.                     "value": "image/jpeg"
  92.                   },
  93.                   {
  94.                     "label": ".png",
  95.                     "value": "image/png"
  96.                   },
  97.                   {
  98.                     "label": ".bmp",
  99.                     "value": "image/bmp"
  100.                   },
  101.                   {
  102.                     "label": ".gif",
  103.                     "value": "image/gif"
  104.                   },
  105.                   {
  106.                     "label": ".tiff",
  107.                     "value": "image/tiff"
  108.                   },
  109.                   {
  110.                     "label": "File",
  111.                     "value": "application/vnd.hp-hpgl"
  112.                   },
  113.                   {
  114.                     "label": ".dll",
  115.                     "value": "application/x-msdownload"
  116.                   },
  117.                   {
  118.                     "label": ".zip",
  119.                     "value": "application/zip"
  120.                   },
  121.                   {
  122.                     "label": ".7zip",
  123.                     "value": "application/x-7z-compressed"
  124.                   },
  125.                   {
  126.                     "label": ".rar",
  127.                     "value": "application/x-rar-compressed"
  128.                   },
  129.                   {
  130.                     "label": ".sit",
  131.                     "value": "application/x-stuffit"
  132.                   },
  133.                   {
  134.                     "label": ".gmc",
  135.                     "value": "application/gmc+xml"
  136.                   },
  137.                   {
  138.                     "label": ".jdf",
  139.                     "value": "application/vnd.cip4-jdf+xml"
  140.                   },
  141.                   {
  142.                     "label": ".jmf",
  143.                     "value": "application/vnd.cip4-jmf+xml"
  144.                   },
  145.                   {
  146.                     "label": ".xml",
  147.                     "value": "application/xml"
  148.                   }
  149.                 ],
  150.                 "type": "string"
  151.               },
  152.               "fileSize": {
  153.                 "FormType": "fileSize",
  154.                 "description": "The File size of the fetched file",
  155.                 "displayName": "File Size",
  156.                 "isPayload": false,
  157.                 "key": "fileSize",
  158.                 "type": "number"
  159.               },
  160.               "url": {
  161.                 "FormType": "file",
  162.                 "description": "The outgoing file for the next task",
  163.                 "displayName": "FetchedFile",
  164.                 "isPayload": true,
  165.                 "key": "url",
  166.                 "type": "file"
  167.               }
  168.             },
  169.             "type": "task",
  170.             "workerType": "workforce.task.file.fetch"
  171.           },
  172.           "type": "task"
  173.         },
  174.         {
  175.           "displayName": "PDF Preflight (Callas)",
  176.           "id": 3,
  177.           "inputs": {
  178.             "analyzeOnly": {
  179.               "values": [
  180.                 {
  181.                   "type": "custom",
  182.                   "value": "true"
  183.                 }
  184.               ]
  185.             },
  186.             "profile": {
  187.               "values": [
  188.                 {
  189.                   "type": "custom",
  190.                   "value": "pdfx3"
  191.                 }
  192.               ]
  193.             },
  194.             "reportTypes": {
  195.               "values": [
  196.                 {
  197.                   "value": "SUMMARY"
  198.                 }
  199.               ]
  200.             },
  201.             "url": {
  202.               "values": [
  203.                 {
  204.                   "field": "url",
  205.                   "nodeName": "fetchfileurl-0",
  206.                   "taskDisplayName": "Fetch File (URL)",
  207.                   "type": "ref"
  208.                 }
  209.               ]
  210.             }
  211.           },
  212.           "name": "pdfpreflightcallas-1",
  213.           "next": [
  214.             4
  215.           ],
  216.           "task": {
  217.             "category": "PDF/Tools",
  218.             "description": "Preflight a PDF using the PDF Toolbox engine.",
  219.             "displayName": "PDF Preflight (Callas)",
  220.             "form": {
  221.               "checksOnly": {
  222.                 "description": "Do not modify the pdf",
  223.                 "displayName": "Checks Only",
  224.                 "key": "analyzeOnly",
  225.                 "type": "checkbox",
  226.                 "validation": {
  227.                   "required": true
  228.                 }
  229.               },
  230.               "file": {
  231.                 "description": "The PDF File to preflight",
  232.                 "displayName": "File",
  233.                 "key": "url",
  234.                 "type": "file",
  235.                 "validation": {
  236.                   "required": true
  237.                 }
  238.               },
  239.               "profile": {
  240.                 "description": "The Profile to check the PDF against",
  241.                 "displayName": "Profile",
  242.                 "key": "profile",
  243.                 "options": [
  244.                   {
  245.                     "label": "PDF X1A",
  246.                     "value": "pdfx1a"
  247.                   },
  248.                   {
  249.                     "label": "PDF X3",
  250.                     "value": "pdfx3"
  251.                   },
  252.                   {
  253.                     "label": "PDF X4",
  254.                     "value": "pdfx4"
  255.                   }
  256.                 ],
  257.                 "type": "select",
  258.                 "validation": {
  259.                   "required": true
  260.                 }
  261.               },
  262.               "reportType": {
  263.                 "description": "The type of report to generate from the preflight actions",
  264.                 "displayName": "Report Type",
  265.                 "key": "reportTypes",
  266.                 "options": [
  267.                   {
  268.                     "label": "Summary only",
  269.                     "value": "SUMMARY"
  270.                   },
  271.                   {
  272.                     "label": "Full PDF inventory",
  273.                     "value": "INVENTORY"
  274.                   },
  275.                   {
  276.                     "label": "Markup (fixes annotated)",
  277.                     "value": "COMMENT,overview"
  278.                   },
  279.                   {
  280.                     "label": "Markup (fixes on a mask)",
  281.                     "value": "MASK,overview"
  282.                   },
  283.                   {
  284.                     "label": "Markup (fixes on a layer)",
  285.                     "value": "LAYER,overview"
  286.                   },
  287.                   {
  288.                     "label": "Before/after comparison",
  289.                     "value": "COMPARE"
  290.                   }
  291.                 ],
  292.                 "type": "select",
  293.                 "validation": {
  294.                   "required": true
  295.                 }
  296.               }
  297.             },
  298.             "inputs": {
  299.               "analyzeOnly": {
  300.                 "isPayload": false,
  301.                 "key": "analyzeOnly",
  302.                 "type": "bool"
  303.               },
  304.               "profile": {
  305.                 "defaultValue": "pdfx4",
  306.                 "isPayload": false,
  307.                 "key": "profile",
  308.                 "type": "string"
  309.               },
  310.               "reportTypes": {
  311.                 "defaultValue": "SUMMARY",
  312.                 "isPayload": false,
  313.                 "key": "reportTypes",
  314.                 "type": "string"
  315.               },
  316.               "url": {
  317.                 "isPayload": true,
  318.                 "key": "url",
  319.                 "type": "file"
  320.               }
  321.             },
  322.             "name": "pdfPreflightCallas",
  323.             "outputs": {
  324.               "annotatedUrl": {
  325.                 "FormType": "file",
  326.                 "description": "A PDF report of the preflight changres",
  327.                 "displayName": "PDF Report",
  328.                 "isPayload": false,
  329.                 "key": "annotatedUrl",
  330.                 "type": "file"
  331.               },
  332.               "reportUrl": {
  333.                 "FormType": "file",
  334.                 "description": "An XML report of the preflight changes",
  335.                 "displayName": "XML Report",
  336.                 "isPayload": false,
  337.                 "key": "reportUrl",
  338.                 "type": "file"
  339.               },
  340.               "result": {
  341.                 "FormType": "checkbox",
  342.                 "description": "The result of the preflight",
  343.                 "displayName": "Result",
  344.                 "isPayload": false,
  345.                 "key": "result",
  346.                 "type": "bool"
  347.               },
  348.               "url": {
  349.                 "FormType": "file",
  350.                 "description": "The outgoing file for the next task",
  351.                 "displayName": "Preflighted File",
  352.                 "isPayload": true,
  353.                 "key": "url",
  354.                 "type": "file"
  355.               }
  356.             },
  357.             "type": "task",
  358.             "workerMapping": {
  359.               "analyzeOnly": "{{analyzeOnly}}",
  360.               "nonPdfCompatibleFileSkip": "true",
  361.               "outputOriginalOnError": "true",
  362.               "profile": "{{profile}}",
  363.               "reportTypes": [
  364.                 "{{reportTypes}}",
  365.                 "XML"
  366.               ],
  367.               "url": "{{url}}"
  368.             },
  369.             "workerType": "workforce.task.file.preflight"
  370.           },
  371.           "type": "task"
  372.         },
  373.         {
  374.           "displayName": "HTTP Request",
  375.           "id": 4,
  376.           "inputs": {
  377.             "body": {
  378.               "values": [
  379.                 {
  380.                   "field": "reportUrl",
  381.                   "nodeName": "pdfpreflightcallas-1",
  382.                   "taskDisplayName": "PDF Preflight (Callas)",
  383.                   "type": "ref"
  384.                 }
  385.               ]
  386.             },
  387.             "expectedStatusCodes": {
  388.               "values": [
  389.                 {
  390.                   "value": "200"
  391.                 }
  392.               ]
  393.             },
  394.             "method": {
  395.               "values": [
  396.                 {
  397.                   "value": "POST"
  398.                 }
  399.               ]
  400.             },
  401.             "timeout": {
  402.               "values": [
  403.                 {
  404.                   "value": "20000"
  405.                 }
  406.               ]
  407.             },
  408.             "url": {
  409.               "values": [
  410.                 {
  411.                   "type": "custom",
  412.                   "value": "https://requestb.in/zbki3qzb"
  413.                 }
  414.               ]
  415.             }
  416.           },
  417.           "name": "httprequest-2",
  418.           "next": [
  419.             1
  420.           ],
  421.           "task": {
  422.             "category": "Communication",
  423.             "description": "Make an Http request.",
  424.             "displayName": "HTTP Request",
  425.             "form": {
  426.               "address": {
  427.                 "description": "The HTTP endpoint to send the request to",
  428.                 "displayName": "Address",
  429.                 "key": "url",
  430.                 "type": "text",
  431.                 "validation": {
  432.                   "example": "http://www.mywebaddress.com",
  433.                   "hint": "Enter a web address, with http:// and a domain",
  434.                   "match": "https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_+.~#?&//=]*)",
  435.                   "required": true
  436.                 }
  437.               },
  438.               "body": {
  439.                 "description": "The Body of the HTTP Post",
  440.                 "displayName": "Body",
  441.                 "key": "body",
  442.                 "type": "textarea",
  443.                 "validation": {
  444.                   "required": false
  445.                 }
  446.               },
  447.               "method": {
  448.                 "description": "The HTTP method to use in the request.",
  449.                 "displayName": "Method",
  450.                 "key": "method",
  451.                 "options": [
  452.                   {
  453.                     "label": "PUT",
  454.                     "value": "PUT"
  455.                   },
  456.                   {
  457.                     "label": "GET",
  458.                     "value": "GET"
  459.                   },
  460.                   {
  461.                     "label": "POST",
  462.                     "value": "POST"
  463.                   },
  464.                   {
  465.                     "label": "DELETE",
  466.                     "value": "DELETE"
  467.                   }
  468.                 ],
  469.                 "type": "select",
  470.                 "validation": {
  471.                   "required": true
  472.                 }
  473.               },
  474.               "statusCodes": {
  475.                 "description": "Accepted status codes for the response",
  476.                 "displayName": "Status Codes",
  477.                 "key": "expectedStatusCodes",
  478.                 "type": "text",
  479.                 "validation": {
  480.                   "required": true
  481.                 }
  482.               },
  483.               "timeout": {
  484.                 "description": "How long to wait for a response before timing out",
  485.                 "displayName": "Timeout",
  486.                 "key": "timeout",
  487.                 "type": "integer",
  488.                 "validation": {
  489.                   "required": true
  490.                 }
  491.               }
  492.             },
  493.             "inputs": {
  494.               "body": {
  495.                 "isPayload": false,
  496.                 "key": "body",
  497.                 "type": "string"
  498.               },
  499.               "expectedStatusCodes": {
  500.                 "defaultValue": "200",
  501.                 "isPayload": false,
  502.                 "key": "expectedStatusCodes",
  503.                 "type": "string"
  504.               },
  505.               "method": {
  506.                 "defaultValue": "POST",
  507.                 "isPayload": false,
  508.                 "key": "method",
  509.                 "type": "string"
  510.               },
  511.               "timeout": {
  512.                 "defaultValue": "20000",
  513.                 "isPayload": false,
  514.                 "key": "timeout",
  515.                 "type": "number"
  516.               },
  517.               "url": {
  518.                 "isPayload": true,
  519.                 "key": "url",
  520.                 "type": "string"
  521.               }
  522.             },
  523.             "name": "httpRequest",
  524.             "outputs": {
  525.               "body": {
  526.                 "FormType": "textarea",
  527.                 "description": "The body of the HTTP response",
  528.                 "displayName": "Body",
  529.                 "isPayload": true,
  530.                 "key": "body",
  531.                 "type": "string"
  532.               },
  533.               "statusCode": {
  534.                 "FormType": "text",
  535.                 "description": "The code of the HTTP response",
  536.                 "displayName": "Status Code",
  537.                 "isPayload": false,
  538.                 "key": "statusCode",
  539.                 "type": "string"
  540.               }
  541.             },
  542.             "type": "task",
  543.             "workerType": "workforce.task.http"
  544.           },
  545.           "type": "task"
  546.         }
  547.       ],
  548.       "updatedAt": "2017-06-22T19:08:46.840Z"
  549.     },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement