Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "workqueue": {
- "workqueues": [],
- "isFetching": false,
- "workqueue": {
- "command": "execute",
- "createdAt": "2017-06-22T19:09:05.577Z",
- "data": {
- "__v": 0,
- "_id": "594c15d1b4ae0801001c0e06",
- "appId": "593e789e30848201007aa49f",
- "created": "2017-06-22T19:09:05.762Z",
- "description": "Flow 30a99b08-f9db-42ef-91b3-c6e859966308",
- "errorTasks": [],
- "firstTasks": [
- "594c15d1b4ae0801001c0e09"
- ],
- "initialState": {
- "inputs": {
- "MY File": "http://www.pdf995.com/samples/pdf.pdf"
- }
- },
- "name": "Preflight and Post",
- "started": "2017-06-22T19:09:05.918Z",
- "state": {
- "inputs": {
- "MY File": "http://www.pdf995.com/samples/pdf.pdf"
- }
- },
- "status": "started",
- "tags": [
- "ppPlanId:30a99b08-f9db-42ef-91b3-c6e859966308",
- "ppQueueId:93c620be-bcaf-4c0c-833a-e8b3b6a8ffaf"
- ],
- "updated": "2017-06-22T19:09:05.927Z"
- },
- "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,
- "inputs": {},
- "name": "end",
- "next": [],
- "outputs": [],
- "type": "end"
- },
- {
- "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"
- },
- "id": "93c620be-bcaf-4c0c-833a-e8b3b6a8ffaf",
- "initialState": {
- "MY File": "http://www.pdf995.com/samples/pdf.pdf"
- },
- "links": {},
- "tasks": [
- {
- "_id": "594c15d1b4ae0801001c0e09",
- "depends": [],
- "duration": 1206,
- "endUrl": "https://workforce-api.oneflowcloud.com/api/workqueues/token/430f2010-577e-11e7-ad59-43a702548875/end?signature=ed3b316a4097b2280f6ee9b1d402546e7919479c93d95d17d914814cf16ec6be",
- "ended": "2017-06-22T19:09:07.326Z",
- "inputs": {
- "url": "$state.inputs.MY File"
- },
- "logs": [
- {
- "_id": "594c15d3f6c5d301003b91e9",
- "level": "info",
- "message": "Set Credentials and BucketName",
- "timestamp": "2017-06-22T19:09:05.385Z"
- },
- {
- "_id": "594c15d3f6c5d301003b91e7",
- "level": "info",
- "message": "Generating temporary directory",
- "timestamp": "2017-06-22T19:09:05.385Z"
- },
- {
- "_id": "594c15d3f6c5d301003b91e6",
- "level": "info",
- "message": "Downloading http://www.pdf995.com/samples/pdf.pdf",
- "timestamp": "2017-06-22T19:09:05.385Z"
- },
- {
- "_id": "594c15d3f6c5d301003b91e8",
- "level": "info",
- "message": "accountId or fileVersionId was missing, skipping OneFlow API updates",
- "timestamp": "2017-06-22T19:09:05.385Z"
- },
- {
- "_id": "594c15d3f6c5d301003b91e5",
- "level": "info",
- "message": "Resolved content-type to application/pdf",
- "timestamp": "2017-06-22T19:09:06.508Z"
- },
- {
- "_id": "594c15d3f6c5d301003b91e4",
- "level": "info",
- "message": "Generating S3 Path",
- "timestamp": "2017-06-22T19:09:06.508Z"
- },
- {
- "_id": "594c15d3f6c5d301003b91e3",
- "level": "info",
- "message": "Updating File Properties",
- "timestamp": "2017-06-22T19:09:06.508Z"
- },
- {
- "_id": "594c15d3f6c5d301003b91e2",
- "level": "info",
- "message": "Uploading to live-workforce-files/task.oneflow.fetch/2017-06-22/594c15d1b4ae0801001c0e06/594c15d1b4ae0801001c0e09/f5d8c7e6-2711-4274-925d-014936982362.pdf",
- "timestamp": "2017-06-22T19:09:06.508Z"
- },
- {
- "_id": "594c15d3f6c5d301003b91e1",
- "level": "info",
- "message": "Update File S3 Path",
- "timestamp": "2017-06-22T19:09:06.590Z"
- },
- {
- "_id": "594c15d3f6c5d301003b91e0",
- "level": "info",
- "message": "Update outputs",
- "timestamp": "2017-06-22T19:09:06.590Z"
- },
- {
- "_id": "594c15d3f6c5d301003b91df",
- "level": "info",
- "message": "Fetch was successful",
- "timestamp": "2017-06-22T19:09:06.591Z"
- }
- ],
- "name": "fetchfileurl-0",
- "outputs": {
- "url": "$state.fetchfileurl-0.url"
- },
- "queued": "2017-06-22T19:09:06.065Z",
- "retries": 0,
- "started": "2017-06-22T19:09:06.097Z",
- "status": "ended",
- "token": "430f2010-577e-11e7-ad59-43a702548875",
- "type": "workforce.task.file.fetch",
- "wait": 32
- },
- {
- "_id": "594c15d1b4ae0801001c0e08",
- "depends": [
- "594c15d1b4ae0801001c0e09"
- ],
- "endUrl": "https://workforce-api.oneflowcloud.com/api/workqueues/token/441aeac0-577e-11e7-aef3-9f3fc99bf821/end?signature=88dfb01f14dcf817830e17a6186b7acb583ae254b0a5e53fa96945a80317c0f7",
- "inputs": {
- "analyzeOnly": "true",
- "nonPdfCompatibleFileSkip": "true",
- "outputOriginalOnError": "true",
- "profile": "pdfx3",
- "reportTypes": [
- {
- "?": {
- "or": [
- {
- "value": "SUMMARY"
- }
- ]
- }
- },
- "XML"
- ],
- "url": "$state.fetchfileurl-0.url"
- },
- "logs": [],
- "name": "pdfpreflightcallas-1",
- "outputs": {
- "reportUrl": "$state.pdfpreflightcallas-1.reportUrl"
- },
- "queued": "2017-06-22T19:09:07.820Z",
- "retries": 0,
- "status": "queued",
- "token": "441aeac0-577e-11e7-aef3-9f3fc99bf821",
- "type": "workforce.task.file.preflight"
- },
- {
- "_id": "594c15d1b4ae0801001c0e07",
- "depends": [
- "594c15d1b4ae0801001c0e08"
- ],
- "inputs": {
- "body": "$state.pdfpreflightcallas-1.reportUrl",
- "expectedStatusCodes": {
- "?": {
- "or": [
- {
- "value": "200"
- }
- ]
- }
- },
- "method": {
- "?": {
- "or": [
- {
- "value": "POST"
- }
- ]
- }
- },
- "timeout": {
- "?": {
- "or": [
- {
- "value": "20000"
- }
- ]
- }
- },
- "url": "https://requestb.in/zbki3qzb"
- },
- "logs": [],
- "name": "httprequest-2",
- "outputs": {
- "body": "$state.httprequest-2.body",
- "statusCode": "$state.httprequest-2.statusCode"
- },
- "retries": 0,
- "status": "notstarted",
- "type": "workforce.task.http"
- }
- ],
- "updatedAt": "2017-06-22T19:09:05.758Z",
- "workforceId": "594c15d1b4ae0801001c0e06"
- },
- "isFetchingItem": false,
- "isCreating": false,
- "isUpdating": false,
- "isDeleting": false,
- "listPreferences": {
- "viewType": "tableView",
- "gridView": {
- "limit": 18,
- "currentPage": 1
- },
- "tableView": {
- "limit": 10,
- "currentPage": 1
- },
- "filters": {}
- },
- "runningWorkqueueModal": {
- "isOpen": false,
- "workqueue": null
- },
- "workqueuesObserveData": {
- "channel": "bf30a713-9d45-4109-bb32-51d0d340636e"
- },
- "workqueueObserveData": {
- "channel": "f65116b7-3f8b-43b3-8d92-846dd850b5e9"
- }
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement