Skip to content

Commit

Permalink
update the workflow template
Browse files Browse the repository at this point in the history
  • Loading branch information
v1r3n committed Feb 5, 2024
1 parent b95d37c commit 60c1d5e
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions ui/src/schema/workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export const NEW_WORKFLOW_TEMPLATE = {
version: 1,
tasks: [
{
name: "get_population_data",
taskReferenceName: "get_population_data",
name: "call_remote_api",
taskReferenceName: "call_remote_api",
inputParameters: {
http_request: {
uri: "https://datausa.io/api/data?drilldowns=Nation&measures=Population",
uri: "https://orkes-api-tester.orkesconductor.com/api",
method: "GET",
},
},
Expand All @@ -20,8 +20,8 @@ export const NEW_WORKFLOW_TEMPLATE = {
],
inputParameters: [],
outputParameters: {
data: "${get_population_data.output.response.body.data}",
source: "${get_population_data.output.response.body.source}",
data: "${call_remote_api.output.response.body.data}",
source: "${call_remote_api.output.response.body.source}",
},
schemaVersion: 2,
restartable: true,
Expand All @@ -45,11 +45,11 @@ const WORKFLOW_SCHEMA = {
version: 1,
tasks: [
{
name: "get_population_data",
taskReferenceName: "get_population_data",
name: "call_remote_api",
taskReferenceName: "call_remote_api",
inputParameters: {
http_request: {
uri: "https://datausa.io/api/data?drilldowns=Nation&measures=Population",
uri: "https://orkes-api-tester.orkesconductor.com/api",
method: "GET",
},
},
Expand All @@ -58,8 +58,8 @@ const WORKFLOW_SCHEMA = {
],
inputParameters: [],
outputParameters: {
data: "${get_population_data.output.response.body.data}",
source: "${get_population_data.output.response.body.source}",
data: "${call_remote_api.output.response.body.data}",
source: "${call_remote_api.output.response.body.source}",
},
schemaVersion: 2,
restartable: true,
Expand Down Expand Up @@ -108,11 +108,11 @@ const WORKFLOW_SCHEMA = {
examples: [
[
{
name: "get_population_data",
taskReferenceName: "get_population_data",
name: "call_remote_api",
taskReferenceName: "call_remote_api",
inputParameters: {
http_request: {
uri: "https://datausa.io/api/data?drilldowns=Nation&measures=Population",
uri: "https://orkes-api-tester.orkesconductor.com/api",
method: "GET",
},
},
Expand All @@ -137,11 +137,11 @@ const WORKFLOW_SCHEMA = {
},
examples: [
{
name: "get_population_data",
taskReferenceName: "get_population_data",
name: "call_remote_api",
taskReferenceName: "call_remote_api",
inputParameters: {
http_request: {
uri: "https://datausa.io/api/data?drilldowns=Nation&measures=Population",
uri: "https://orkes-api-tester.orkesconductor.com/api",
method: "GET",
},
},
Expand All @@ -156,7 +156,7 @@ const WORKFLOW_SCHEMA = {
title: "Task name",
description: "Task name",
default: "",
examples: ["get_population_data"],
examples: ["call_remote_api"],
},
taskReferenceName: {
$id: "#/properties/tasks/items/anyOf/0/properties/taskReferenceName",
Expand All @@ -165,7 +165,7 @@ const WORKFLOW_SCHEMA = {
description:
"A unique task reference name for this task in the entire workflow",
default: "",
examples: ["get_population_data"],
examples: ["call_remote_api"],
},
inputParameters: {
$id: "#/properties/tasks/items/anyOf/0/properties/inputParameters",
Expand All @@ -176,7 +176,7 @@ const WORKFLOW_SCHEMA = {
examples: [
{
http_request: {
uri: "https://datausa.io/api/data?drilldowns=Nation&measures=Population",
uri: "https://orkes-api-tester.orkesconductor.com/api",
method: "GET",
},
},
Expand Down Expand Up @@ -219,8 +219,8 @@ const WORKFLOW_SCHEMA = {
default: {},
examples: [
{
data: "${get_population_data.output.response.body.data}",
source: "${get_population_data.output.response.body.source}",
data: "${call_remote_api.output.response.body.data}",
source: "${call_remote_api.output.response.body.source}",
},
],
required: [],
Expand Down

0 comments on commit 60c1d5e

Please sign in to comment.