-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy(2)-k1- get photo album for user::[email protected]::test
- Loading branch information
Showing
1 changed file
with
239 additions
and
0 deletions.
There are no files selected for viewing
239 changes: 239 additions & 0 deletions
239
...LRUO6D5ui62eBHZ8tMUA590f7UWK/definition_workflow_024G5U5LRUO6D5ui62eBHZ8tMUA590f7UWK.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,239 @@ | ||
{ | ||
"workflow": { | ||
"unique_name": "definition_workflow_024G5U5LRUO6D5ui62eBHZ8tMUA590f7UWK", | ||
"name": "Copy(2)-k1- get photo album for user", | ||
"title": "Copy(2)-k1- get photo album for user", | ||
"type": "generic.workflow", | ||
"base_type": "workflow", | ||
"variables": [ | ||
{ | ||
"schema_id": "datatype.string", | ||
"properties": { | ||
"value": "", | ||
"scope": "output", | ||
"name": "albums retrieved", | ||
"type": "datatype.string", | ||
"is_required": false, | ||
"is_invisible": false | ||
}, | ||
"unique_name": "variable_workflow_024G5U5MEMEMX4qyPPoHm18gj8dkc7Shgi5", | ||
"object_type": "variable_workflow" | ||
}, | ||
{ | ||
"schema_id": "datatype.string", | ||
"properties": { | ||
"value": "", | ||
"scope": "input", | ||
"name": "username", | ||
"type": "datatype.string", | ||
"is_required": true, | ||
"is_invisible": false | ||
}, | ||
"unique_name": "variable_workflow_024G5U5MEM2ZB2TZTVbG5kiqpNhy8jVQ9iG", | ||
"object_type": "variable_workflow" | ||
} | ||
], | ||
"properties": { | ||
"atomic": { | ||
"is_atomic": false | ||
}, | ||
"delete_workflow_instance": false, | ||
"display_name": "Copy(2)-k1- get photo album for user", | ||
"runtime_user": { | ||
"target_default": true | ||
}, | ||
"target": { | ||
"no_target": true | ||
} | ||
}, | ||
"object_type": "definition_workflow", | ||
"actions": [ | ||
{ | ||
"unique_name": "definition_activity_024G5U5NW6EWB3Dox89IuXk34bNvmnedQpG", | ||
"name": "HTTP Request", | ||
"title": "Get User ID(HTTP Request)", | ||
"type": "web-service.http_request", | ||
"base_type": "activity", | ||
"properties": { | ||
"action_timeout": 180, | ||
"allow_auto_redirect": true, | ||
"allow_headers_redirect": false, | ||
"continue_on_error_status_code": false, | ||
"continue_on_failure": false, | ||
"display_name": "Get User ID(HTTP Request)", | ||
"method": "GET", | ||
"relative_url": "/users?username=$workflow.definition_workflow_024G5U5LRUO6D5ui62eBHZ8tMUA590f7UWK.input.variable_workflow_024G5U5MEM2ZB2TZTVbG5kiqpNhy8jVQ9iG$", | ||
"runtime_user": { | ||
"target_default": true | ||
}, | ||
"skip_execution": false, | ||
"target": { | ||
"override_workflow_target": true, | ||
"target_id": "definition_target_024AD8889ZL603xKhT8sOb0ryIlRtUp7ldI" | ||
} | ||
}, | ||
"object_type": "definition_activity" | ||
}, | ||
{ | ||
"unique_name": "definition_activity_024G5U5P2I7630YqqafwTYtHbQDZyAs3Pvw", | ||
"name": "JSONPath Query", | ||
"title": "Extract User ID(JSONPath Query)", | ||
"type": "corejava.jsonpathquery", | ||
"base_type": "activity", | ||
"properties": { | ||
"action_timeout": 180, | ||
"continue_on_failure": true, | ||
"display_name": "Extract User ID(JSONPath Query)", | ||
"input_json": "$activity.definition_activity_024G5U5NW6EWB3Dox89IuXk34bNvmnedQpG.output.response_body$", | ||
"jsonpath_queries": [ | ||
{ | ||
"jsonpath_query": "$.[0].id", | ||
"jsonpath_query_name": "userID", | ||
"jsonpath_query_type": "string", | ||
"zdate_type_format": "yyyy-MM-dd'T'HH:mm:ssZ" | ||
} | ||
], | ||
"skip_execution": false | ||
}, | ||
"object_type": "definition_activity" | ||
}, | ||
{ | ||
"unique_name": "definition_activity_024G5U5QCAKAH36wJEc9AOjiiyswYfFKuHL", | ||
"name": "Condition Block", | ||
"title": "Did we get a User ID? (Condition Block)", | ||
"type": "logic.if_else", | ||
"base_type": "activity", | ||
"properties": { | ||
"continue_on_failure": false, | ||
"display_name": "Did we get a User ID? (Condition Block)", | ||
"skip_execution": false | ||
}, | ||
"object_type": "definition_activity", | ||
"blocks": [ | ||
{ | ||
"unique_name": "definition_activity_024G5U5RBQT5N0imrwKQrOwrjZYkKFdoAEs", | ||
"name": "Condition Branch", | ||
"title": "User found", | ||
"type": "logic.condition_block", | ||
"base_type": "activity", | ||
"properties": { | ||
"condition": { | ||
"left_operand": "$activity.definition_activity_024G5U5P2I7630YqqafwTYtHbQDZyAs3Pvw.output.succeeded$", | ||
"operator": "eq", | ||
"right_operand": true | ||
}, | ||
"continue_on_failure": false, | ||
"display_name": "User found", | ||
"skip_execution": false | ||
}, | ||
"object_type": "definition_activity", | ||
"actions": [ | ||
{ | ||
"unique_name": "definition_activity_024G5U5T5KETF4H8NaWOBCQUnKYClmwif1y", | ||
"name": "HTTP Request", | ||
"title": "Get Photo Albums(HTTP Request)", | ||
"type": "web-service.http_request", | ||
"base_type": "activity", | ||
"properties": { | ||
"action_timeout": 180, | ||
"allow_auto_redirect": true, | ||
"allow_headers_redirect": false, | ||
"continue_on_error_status_code": false, | ||
"continue_on_failure": false, | ||
"display_name": "Get Photo Albums(HTTP Request)", | ||
"method": "GET", | ||
"relative_url": "/users/$activity.definition_activity_024G5U5P2I7630YqqafwTYtHbQDZyAs3Pvw.output.jsonpath_queries.userID$/albums", | ||
"runtime_user": { | ||
"target_default": true | ||
}, | ||
"skip_execution": false, | ||
"target": { | ||
"override_workflow_target": true, | ||
"target_id": "definition_target_024AD8889ZL603xKhT8sOb0ryIlRtUp7ldI" | ||
} | ||
}, | ||
"object_type": "definition_activity" | ||
}, | ||
{ | ||
"unique_name": "definition_activity_024G5U5UX2IBK2vEQOHMuFcrWVVzIgMcdTj", | ||
"name": "Set Variables", | ||
"title": "Set Output Variables", | ||
"type": "core.set_multiple_variables", | ||
"base_type": "activity", | ||
"properties": { | ||
"continue_on_failure": false, | ||
"display_name": "Set Output Variables", | ||
"skip_execution": false, | ||
"variables_to_update": [ | ||
{ | ||
"variable_to_update": "$workflow.definition_workflow_024G5U5LRUO6D5ui62eBHZ8tMUA590f7UWK.output.variable_workflow_024G5U5MEMEMX4qyPPoHm18gj8dkc7Shgi5$", | ||
"variable_value_new": "$activity.definition_activity_024G5U5T5KETF4H8NaWOBCQUnKYClmwif1y.output.response_body$" | ||
} | ||
] | ||
}, | ||
"object_type": "definition_activity" | ||
} | ||
] | ||
}, | ||
{ | ||
"unique_name": "definition_activity_024G5U5WE823J2eY3GDMnXkiBtR9WpKJlM6", | ||
"name": "Condition Branch", | ||
"title": "USER Not Found", | ||
"type": "logic.condition_block", | ||
"base_type": "activity", | ||
"properties": { | ||
"condition": { | ||
"left_operand": "$activity.definition_activity_024G5U5P2I7630YqqafwTYtHbQDZyAs3Pvw.output.succeeded$", | ||
"operator": "eq", | ||
"right_operand": false | ||
}, | ||
"continue_on_failure": false, | ||
"display_name": "USER Not Found", | ||
"skip_execution": false | ||
}, | ||
"object_type": "definition_activity", | ||
"actions": [ | ||
{ | ||
"unique_name": "definition_activity_024G5U5XW6K500ANbVrUfaWHu2y86Q1tyS5", | ||
"name": "Completed", | ||
"title": "User not found", | ||
"type": "logic.completed", | ||
"base_type": "activity", | ||
"properties": { | ||
"completion_type": "failed-completed", | ||
"continue_on_failure": false, | ||
"display_name": "User not found", | ||
"result_message": "User not found", | ||
"skip_execution": false | ||
}, | ||
"object_type": "definition_activity" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"categories": [ | ||
"category_1BMfMXSnJMyt5Ihqi7rWJr5N8cf" | ||
] | ||
}, | ||
"targets": { | ||
"definition_target_024AD8889ZL603xKhT8sOb0ryIlRtUp7ldI": { | ||
"unique_name": "definition_target_024AD8889ZL603xKhT8sOb0ryIlRtUp7ldI", | ||
"name": "k1-jasonplaceholder", | ||
"title": "k1-jasonplaceholder", | ||
"type": "web-service.endpoint", | ||
"base_type": "target", | ||
"object_type": "definition_target", | ||
"properties": { | ||
"description": "jasonplaceholder", | ||
"disable_certificate_validation": false, | ||
"display_name": "k1-jasonplaceholder", | ||
"host": "jsonplaceholder.typicode.com", | ||
"ignore_proxy": false, | ||
"no_runtime_user": true, | ||
"protocol": "https" | ||
} | ||
} | ||
} | ||
} |