{
  "identifier" : "450af4e8-2636-4309-8aec-142a817832df",
  "workflowVersion" : "5",
  "nodes" : [ {
    "identifier" : "cea76ca5-e0f0-41ca-906b-965436e3b81d",
    "name" : "API Python",
    "location" : "634:277",
    "zIndex" : "0",
    "active" : "true",
    "component" : {
      "identifier" : "de.rcenvironment.script",
      "version" : "3.5",
      "name" : "Script"
    },
    "configuration" : {
      "pythonExecutionPath" : "${pythonExecutionPath}",
      "script" : "print(\"Test read_input(), value should be 1 ...\")\r\nprint(RCE.read_input(\"x\"))\r\nprint(RCE.read_input(\"x\") == 1)\r\n\r\nprint(\"Test  get_input_names_with_datum(), values should be x and y ...\")\r\nprint(RCE.get_input_names_with_datum())\r\nprint(RCE.get_input_names_with_datum() == [\"x\", \"y\"] or RCE.get_input_names_with_datum() == [\"y\", \"x\"])\r\n\r\n\r\nprint(\"Test  get_output_names(), values should be f and g ...\")\r\nprint(RCE.get_output_names())\r\nprint(RCE.get_output_names() == [\"f\", \"g\"] or RCE.get_output_names() == [\"g\", \"f\"])\r\n\r\nprint(\"Test get_execution_count() ...\")\r\nprint(RCE.get_execution_count())\r\nprint(RCE.get_execution_count() == 1)\r\n\r\nprint(\"Test write_output with value 3\")\r\nRCE.write_output(\"f\", 3)\r\n\r\nprint(\"Test write_not_a_value_output\")\r\nRCE.write_not_a_value_output(\"g\")\r\n",
      "scriptLanguage" : "Jython",
      "storeComponentHistoryData" : "true",
      "usageOfScript" : "NEW"
    },
    "dynamicInputs" : [ {
      "identifier" : "8bfb15f3-2c80-40d7-8fe4-fcc06c0cb59e",
      "name" : "x",
      "epIdentifier" : "default",
      "group" : "null",
      "datatype" : "Float",
      "metadata" : {
        "inputExecutionConstraint_4aae3eea" : "Required",
        "inputHandling_73b1056e" : "Single"
      }
    }, {
      "identifier" : "94be55fb-c76f-4648-a007-2fcb7c6e1314",
      "name" : "y",
      "epIdentifier" : "default",
      "group" : "null",
      "datatype" : "Float",
      "metadata" : {
        "inputExecutionConstraint_4aae3eea" : "Required",
        "inputHandling_73b1056e" : "Single"
      }
    } ],
    "dynamicOutputs" : [ {
      "identifier" : "aa8eab76-50fa-4820-be2b-6d20df3e65a9",
      "name" : "f",
      "epIdentifier" : "default",
      "datatype" : "Float"
    }, {
      "identifier" : "59f3f0ad-e669-4c54-a7db-b7511712b1e7",
      "name" : "g",
      "epIdentifier" : "default",
      "datatype" : "Float"
    } ]
  }, {
    "identifier" : "caa3f183-9329-48e7-b54a-cebc02a922a2",
    "name" : "Parametric Study API Jython",
    "location" : "474:277",
    "zIndex" : "1",
    "active" : "true",
    "component" : {
      "identifier" : "de.rcenvironment.parametricstudy",
      "version" : "4",
      "name" : "Parametric Study"
    },
    "configuration" : {
      "faultTolerance-NAV_5e0ed1cd" : "Discard",
      "loopFaultTolerance_5e0ed1cd" : "Fail",
      "maxRerunBeforeDiscard-NAV_5e0ed1cd" : "1",
      "maxRerunBeforeFail-NAV_5e0ed1cd" : "1"
    },
    "dynamicInputs" : [ {
      "identifier" : "f69b4a80-0238-4833-8567-f60c987964b4",
      "name" : "x",
      "epIdentifier" : "parameters",
      "group" : "null",
      "datatype" : "Float",
      "metadata" : {
        "inputExecutionConstraint_4aae3eea" : "Required",
        "inputHandling_73b1056e" : "Single"
      }
    }, {
      "identifier" : "2a0c4386-32b0-4374-b626-6dda86a390a0",
      "name" : "y",
      "epIdentifier" : "parameters",
      "group" : "null",
      "datatype" : "Float",
      "metadata" : {
        "inputExecutionConstraint_4aae3eea" : "Required",
        "inputHandling_73b1056e" : "Single"
      }
    } ],
    "staticOutputs" : [ {
      "identifier" : "cb3f1e29-2d09-4d1e-97d8-207f63d25b71",
      "name" : "Design variable",
      "datatype" : "Float",
      "metadata" : {
        "FromValue" : "1",
        "StepSize" : "1",
        "ToValue" : "1",
        "UseInputAsFromValue" : "false",
        "UseInputAsStepSizeValue" : "false",
        "UseInputAsToValue" : "false",
        "fitStepSizeToBounds" : "true"
      }
    }, {
      "identifier" : "59632918-ef0c-4996-8e9b-5345931b61ff",
      "name" : "Done",
      "datatype" : "Boolean"
    } ]
  }, {
    "identifier" : "f3c59e17-0d2a-4c2c-829d-52828f34b32c",
    "name" : "Parametric Study SUM Jython",
    "location" : "474:389",
    "zIndex" : "2",
    "active" : "true",
    "component" : {
      "identifier" : "de.rcenvironment.parametricstudy",
      "version" : "4",
      "name" : "Parametric Study"
    },
    "configuration" : {
      "faultTolerance-NAV_5e0ed1cd" : "Fail",
      "loopFaultTolerance_5e0ed1cd" : "Fail",
      "maxRerunBeforeDiscard-NAV_5e0ed1cd" : "1",
      "maxRerunBeforeFail-NAV_5e0ed1cd" : "1"
    },
    "staticOutputs" : [ {
      "identifier" : "e3c076f8-ff90-47da-900a-8b69f5721fb6",
      "name" : "Design variable",
      "datatype" : "Float",
      "metadata" : {
        "FromValue" : "0",
        "StepSize" : "1",
        "ToValue" : "10",
        "UseInputAsFromValue" : "false",
        "UseInputAsStepSizeValue" : "false",
        "UseInputAsToValue" : "false",
        "fitStepSizeToBounds" : "true"
      }
    }, {
      "identifier" : "8cb3f548-c571-4e37-a23b-b128ba3b0628",
      "name" : "Done",
      "datatype" : "Boolean"
    } ]
  }, {
    "identifier" : "c3fc7e6f-14eb-43a8-b223-1777986a29a8",
    "name" : "SUM Python",
    "location" : "634:389",
    "zIndex" : "3",
    "active" : "true",
    "component" : {
      "identifier" : "de.rcenvironment.script",
      "version" : "3.5",
      "name" : "Script"
    },
    "configuration" : {
      "pythonExecutionPath" : "${pythonExecutionPath}",
      "script" : "sum = RCE.read_state_variable(\"sum\", RCE.read_input(\"x\"))\r\nRCE.write_state_variable(\"sum\", sum + RCE.read_input(\"x\"))\r\nprint (\"Current sum in dict: \" + str(RCE.get_state_dict()))\r\nprint (\"Current sum: \" + str(RCE.read_state_variable(\"sum\")))\r\n\r\nif RCE.get_execution_count() == 11:\r\n  RCE.write_output(\"f\",  RCE.read_state_variable(\"sum\"))",
      "scriptLanguage" : "Jython",
      "storeComponentHistoryData" : "true",
      "usageOfScript" : "NEW"
    },
    "dynamicInputs" : [ {
      "identifier" : "4305c542-b0a9-489b-94bb-09bc0f1b7908",
      "name" : "x",
      "epIdentifier" : "default",
      "group" : "null",
      "datatype" : "Float",
      "metadata" : {
        "inputExecutionConstraint_4aae3eea" : "Required",
        "inputHandling_73b1056e" : "Queue"
      }
    } ],
    "dynamicOutputs" : [ {
      "identifier" : "55e896cc-f608-4a91-b013-7e3033661fdf",
      "name" : "f",
      "epIdentifier" : "default",
      "datatype" : "Float"
    } ]
  } ],
  "connections" : [ {
    "source" : "cea76ca5-e0f0-41ca-906b-965436e3b81d",
    "output" : "aa8eab76-50fa-4820-be2b-6d20df3e65a9",
    "target" : "caa3f183-9329-48e7-b54a-cebc02a922a2",
    "input" : "f69b4a80-0238-4833-8567-f60c987964b4"
  }, {
    "source" : "cea76ca5-e0f0-41ca-906b-965436e3b81d",
    "output" : "59f3f0ad-e669-4c54-a7db-b7511712b1e7",
    "target" : "caa3f183-9329-48e7-b54a-cebc02a922a2",
    "input" : "2a0c4386-32b0-4374-b626-6dda86a390a0"
  }, {
    "source" : "caa3f183-9329-48e7-b54a-cebc02a922a2",
    "output" : "cb3f1e29-2d09-4d1e-97d8-207f63d25b71",
    "target" : "cea76ca5-e0f0-41ca-906b-965436e3b81d",
    "input" : "8bfb15f3-2c80-40d7-8fe4-fcc06c0cb59e"
  }, {
    "source" : "caa3f183-9329-48e7-b54a-cebc02a922a2",
    "output" : "cb3f1e29-2d09-4d1e-97d8-207f63d25b71",
    "target" : "cea76ca5-e0f0-41ca-906b-965436e3b81d",
    "input" : "94be55fb-c76f-4648-a007-2fcb7c6e1314"
  }, {
    "source" : "f3c59e17-0d2a-4c2c-829d-52828f34b32c",
    "output" : "e3c076f8-ff90-47da-900a-8b69f5721fb6",
    "target" : "c3fc7e6f-14eb-43a8-b223-1777986a29a8",
    "input" : "4305c542-b0a9-489b-94bb-09bc0f1b7908"
  } ],
  "labels" : "[{\"identifier\":\"28ded08d-8a30-4212-a1d7-bfb965b13e45\",\"headerText\":\"Introducing RCE's Python API\",\"text\":\"This workflow demonstrates all Python API methods available in the Script workflow component. They are also available in the pre and post scripts of integrated tools. In the context help (\\\"F1\\\") of the Script workflow component, you will also find a list of all methods including documentation.\",\"location\":\"315:72\",\"size\":\"598:143\",\"alpha\":\"204\",\"colorHeader\":\"0:0:0\",\"colorText\":\"0:0:0\",\"colorBackground\":\"0:255:64\",\"labelPosition\":\"CENTER\",\"textAlignmentType\":\"LEFT\",\"headerAlignmentType\":\"CENTER\",\"border\":\"false\",\"headerSize\":\"11\",\"textSize\":\"9\",\"zIndex\":\"0\"}]"
}