All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kitchensink.kitchenSink-ephemeralWorkflowWithStoredTasks.json Maven / Gradle / Ivy

There is a newer version: 3.21.10
Show newest version
{
  "name": "kitchenSink-ephemeralWorkflowWithStoredTasks",
  "workflowDef": {
    "name": "ephemeralKitchenSinkStoredTasks",
    "description": "kitchensink workflow definition",
    "version": 1,
    "tasks": [
      {
        "name": "task_1",
        "taskReferenceName": "task_1",
        "inputParameters": {
          "mod": "${workflow.input.mod}",
          "oddEven": "${workflow.input.oddEven}"
        },
        "type": "SIMPLE"
      },
      {
        "name": "event_task",
        "taskReferenceName": "event_0",
        "inputParameters": {
          "mod": "${workflow.input.mod}",
          "oddEven": "${workflow.input.oddEven}"
        },
        "type": "EVENT",
        "sink": "conductor"
      },
      {
        "name": "dyntask",
        "taskReferenceName": "task_2",
        "inputParameters": {
          "taskToExecute": "${workflow.input.task2Name}"
        },
        "type": "DYNAMIC",
        "dynamicTaskNameParam": "taskToExecute"
      },
      {
        "name": "oddEvenDecision",
        "taskReferenceName": "oddEvenDecision",
        "inputParameters": {
          "oddEven": "${task_2.output.oddEven}"
        },
        "type": "DECISION",
        "caseValueParam": "oddEven",
        "decisionCases": {
          "0": [
            {
              "name": "task_4",
              "taskReferenceName": "task_4",
              "inputParameters": {
                "mod": "${task_2.output.mod}",
                "oddEven": "${task_2.output.oddEven}"
              },
              "type": "SIMPLE"
            },
            {
              "name": "dynamic_fanout",
              "taskReferenceName": "fanout1",
              "inputParameters": {
                "dynamicTasks": "${task_4.output.dynamicTasks}",
                "input": "${task_4.output.inputs}"
              },
              "type": "FORK_JOIN_DYNAMIC",
              "dynamicForkTasksParam": "dynamicTasks",
              "dynamicForkTasksInputParamName": "input"
            },
            {
              "name": "dynamic_join",
              "taskReferenceName": "join1",
              "type": "JOIN"
            }
          ],
          "1": [
            {
              "name": "fork_join",
              "taskReferenceName": "forkx",
              "type": "FORK_JOIN",
              "forkTasks": [
                [
                  {
                    "name": "task_10",
                    "taskReferenceName": "task_10",
                    "type": "SIMPLE"
                  },
                  {
                    "name": "sub_workflow_x",
                    "taskReferenceName": "wf3",
                    "inputParameters": {
                      "mod": "${task_1.output.mod}",
                      "oddEven": "${task_1.output.oddEven}"
                    },
                    "type": "SUB_WORKFLOW",
                    "subWorkflowParam": {
                      "name": "sub_flow_1",
                      "version": 1
                    }
                  }
                ],
                [
                  {
                    "name": "task_11",
                    "taskReferenceName": "task_11",
                    "type": "SIMPLE"
                  },
                  {
                    "name": "sub_workflow_x",
                    "taskReferenceName": "wf4",
                    "inputParameters": {
                      "mod": "${task_1.output.mod}",
                      "oddEven": "${task_1.output.oddEven}"
                    },
                    "type": "SUB_WORKFLOW",
                    "subWorkflowParam": {
                      "name": "sub_flow_1",
                      "version": 1
                    }
                  }
                ]
              ]
            },
            {
              "name": "join",
              "taskReferenceName": "join2",
              "type": "JOIN",
              "joinOn": [
                "wf3",
                "wf4"
              ]
            }
          ]
        }
      },
      {
        "name": "search_elasticsearch",
        "taskReferenceName": "get_es_1",
        "inputParameters": {
          "http_request": {
            "uri": "http://localhost:9200/conductor/_search?size=10",
            "method": "GET"
          }
        },
        "type": "HTTP"
      },
      {
        "name": "task_30",
        "taskReferenceName": "task_30",
        "inputParameters": {
          "statuses": "${get_es_1.output..status}",
          "workflowIds": "${get_es_1.output..workflowId}"
        },
        "type": "SIMPLE"
      }
    ],
    "outputParameters": {
      "statues": "${get_es_1.output..status}",
      "workflowIds": "${get_es_1.output..workflowId}"
    },
    "schemaVersion": 2,
    "ownerEmail": "[email protected]"
  },
  "input": {
    "task2Name": "task_5"
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy