{"id":"7758f0ba19e18091","definitionId":"b4d7e6f1c0fb785d","name":"Get User","createdAt":"2024-01-20T23:33:36.4399452+00:00","version":2,"toolVersion":"3.0.0.0","variables":[{"id":"976c6ad6cfb55542","name":"RouteData","typeName":"ObjectDictionary","isArray":false,"storageDriverTypeName":"Elsa.Workflows.Services.WorkflowStorageDriver, Elsa.Workflows.Core"},{"id":"1060eab189b486fd","name":"UserId","typeName":"String","isArray":false,"value":"","storageDriverTypeName":"Elsa.Workflows.Services.WorkflowStorageDriver, Elsa.Workflows.Core"},{"id":"219c226c272167f6","name":"User","typeName":"Object","isArray":false,"storageDriverTypeName":"Elsa.Workflows.Services.WorkflowStorageDriver, Elsa.Workflows.Core"}],"inputs":[],"outputs":[],"outcomes":[],"customProperties":{},"isReadonly":false,"isLatest":true,"isPublished":true,"options":{"autoUpdateConsumingWorkflows":false},"root":{"type":"Elsa.Flowchart","version":1,"id":"9a2d2702c571fcdc","nodeId":"Workflow1:9a2d2702c571fcdc","metadata":{},"customProperties":{"source":"FlowchartJsonConverter.cs:45","notFoundConnections":[],"canStartWorkflow":false,"runAsynchronously":false},"activities":[{"expectedStatusCodes":{"typeName":"Int32[]","expression":{"type":"Object","value":"[\u0022200\u0022,\u0022404\u0022]"}},"url":{"typeName":"System.Uri, System.Private.Uri","expression":{"type":"CSharp","value":"return $\u0022https://reqres.in/api/users/{Variables.UserId}\u0022;"}},"method":{"typeName":"String","expression":{"type":"Literal","value":"GET"}},"content":null,"contentType":null,"authorization":null,"disableAuthorizationHeaderValidation":null,"requestHeaders":{"typeName":"Elsa.Http.Models.HttpHeaders, Elsa.Http","expression":{"type":"Literal","value":{}}},"statusCode":null,"parsedContent":{"typeName":"Object","memoryReference":{"id":"219c226c272167f6"}},"responseHeaders":null,"result":null,"id":"47898b89878097e2","nodeId":"Workflow1:9a2d2702c571fcdc:47898b89878097e2","name":"FlowSendHttpRequest1","type":"Elsa.FlowSendHttpRequest","version":1,"customProperties":{"canStartWorkflow":false,"runAsynchronously":false},"metadata":{"designer":{"position":{"x":29.5,"y":343},"size":{"width":218.078125,"height":50}}}},{"statusCode":{"typeName":"System.Net.HttpStatusCode, System.Net.Primitives","expression":{"type":"Literal","value":"OK"}},"content":{"typeName":"Object","expression":{"type":"JavaScript","value":"getUser().data"}},"contentType":null,"responseHeaders":{"typeName":"Elsa.Http.Models.HttpHeaders, Elsa.Http","expression":{"type":"Literal","value":{}}},"id":"a5b0c7c420f89a11","nodeId":"Workflow1:9a2d2702c571fcdc:a5b0c7c420f89a11","name":"WriteHttpResponse1","type":"Elsa.WriteHttpResponse","version":1,"customProperties":{"canStartWorkflow":false,"runAsynchronously":false},"metadata":{"designer":{"position":{"x":380,"y":200},"size":{"width":183.640625,"height":50}}}},{"statusCode":{"typeName":"System.Net.HttpStatusCode, System.Net.Primitives","expression":{"type":"Literal","value":"NotFound"}},"content":null,"contentType":null,"responseHeaders":{"typeName":"Elsa.Http.Models.HttpHeaders, Elsa.Http","expression":{"type":"Literal","value":{}}},"id":"1e6c1edf20c4b6f7","nodeId":"Workflow1:9a2d2702c571fcdc:1e6c1edf20c4b6f7","name":"WriteHttpResponse2","type":"Elsa.WriteHttpResponse","version":1,"customProperties":{"canStartWorkflow":false,"runAsynchronously":false},"metadata":{"designer":{"position":{"x":380,"y":500},"size":{"width":183.640625,"height":50}}}},{"path":{"typeName":"String","expression":{"type":"Literal","value":"users/{userid}"}},"supportedMethods":{"typeName":"String[]","expression":{"type":"Object","value":"[\u0022GET\u0022]"}},"authorize":{"typeName":"Boolean","expression":{"type":"Literal","value":false}},"policy":{"typeName":"String","expression":{"type":"Literal"}},"requestTimeout":null,"requestSizeLimit":null,"fileSizeLimit":null,"allowedFileExtensions":null,"blockedFileExtensions":null,"allowedMimeTypes":null,"exposeRequestTooLargeOutcome":false,"exposeFileTooLargeOutcome":false,"exposeInvalidFileExtensionOutcome":false,"exposeInvalidFileMimeTypeOutcome":false,"parsedContent":null,"files":null,"routeData":{"typeName":"ObjectDictionary","memoryReference":{"id":"976c6ad6cfb55542"}},"queryStringData":null,"headers":null,"result":null,"id":"27607e7c43471471","nodeId":"Workflow1:9a2d2702c571fcdc:27607e7c43471471","name":"HttpEndpoint1","type":"Elsa.HttpEndpoint","version":1,"customProperties":{"canStartWorkflow":true,"runAsynchronously":false},"metadata":{"designer":{"position":{"x":-524.5,"y":343},"size":{"width":176.390625,"height":50}}}},{"variable":{"id":"1060eab189b486fd","name":"UserId","typeName":"String","value":"","storageDriverTypeName":"Elsa.Workflows.Services.WorkflowStorageDriver, Elsa.Workflows.Core"},"value":{"typeName":"Object","expression":{"type":"CSharp","value":"return Variables.RouteData[\u0022userid\u0022];"}},"id":"595a8892f09a15cd","nodeId":"Workflow1:9a2d2702c571fcdc:595a8892f09a15cd","name":"SetVariable1","type":"Elsa.SetVariable","version":1,"customProperties":{"canStartWorkflow":false,"runAsynchronously":false},"metadata":{"designer":{"position":{"x":-237.5,"y":343},"size":{"width":153.828125,"height":50}}}}],"connections":[{"source":{"activity":"27607e7c43471471","port":"Done"},"target":{"activity":"595a8892f09a15cd","port":"In"}},{"source":{"activity":"595a8892f09a15cd","port":"Done"},"target":{"activity":"47898b89878097e2","port":"In"}},{"source":{"activity":"47898b89878097e2","port":"200"},"target":{"activity":"a5b0c7c420f89a11","port":"In"}},{"source":{"activity":"47898b89878097e2","port":"404"},"target":{"activity":"1e6c1edf20c4b6f7","port":"In"}}]}}