<xml xmlns="https://developers.google.com/blockly/xml">
  <variables>
    <variable id="$l{IZ#6T!0KWuO$YamR8">var_Int64</variable>
    <variable id="5$qv[vi$Yz%$3,`/CML7">var_Department</variable>
    <variable id="Fy|}ia7w!]Uz},vn[LJc">message</variable>
    <variable id="0C5Rz_j*A1X!Eq24e[3h">newDepName</variable>
  </variables>
  <block type="variables_set" inline="true" x="20" y="20">
    <field name="VAR" id="$l{IZ#6T!0KWuO$YamR8">var_Int64</field>
    <value name="VALUE">
      <block type="math_number">
        <field name="NUM">1</field>
      </block>
    </value>
    <next>
      <block type="variables_set">
        <field name="VAR" id="5$qv[vi$Yz%$3,`/CML7">var_Department</field>
        <value name="VALUE">
          <block type="converttojson">
            <value name="ValueToConvert">
              <block type="get__api_DB_Departments___id">
                <value name="val_id">
                  <shadow type="System_Int64"></shadow>
                  <block type="variables_get">
                    <field name="VAR" id="$l{IZ#6T!0KWuO$YamR8">var_Int64</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </value>
        <next>
          <block type="text_print">
            <value name="TEXT">
              <shadow type="text">
                <field name="TEXT">abc</field>
              </shadow>
              <block type="converttostring">
                <value name="ValueToConvert">
                  <block type="variables_get">
                    <field name="VAR" id="5$qv[vi$Yz%$3,`/CML7">var_Department</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="variables_set">
                <field name="VAR" id="Fy|}ia7w!]Uz},vn[LJc">message</field>
                <value name="VALUE">
                  <block type="text">
                    <field name="TEXT">Please enter new name for Department ( old name :</field>
                  </block>
                </value>
                <next>
                  <block type="text_append">
                    <field name="VAR" id="Fy|}ia7w!]Uz},vn[LJc">message</field>
                    <value name="TEXT">
                      <shadow type="text">
                        <field name="TEXT"></field>
                      </shadow>
                      <block type="getproperty">
                        <field name="objectName">object</field>
                        <field name="prop">property</field>
                        <value name="ObjectToChange">
                          <block type="variables_get">
                            <field name="VAR" id="5$qv[vi$Yz%$3,`/CML7">var_Department</field>
                          </block>
                        </value>
                        <value name="PropertyName">
                          <block type="text">
                            <field name="TEXT">name</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="text_append">
                        <field name="VAR" id="Fy|}ia7w!]Uz},vn[LJc">message</field>
                        <value name="TEXT">
                          <shadow type="text">
                            <field name="TEXT">):</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="variables_set">
                            <field name="VAR" id="0C5Rz_j*A1X!Eq24e[3h">newDepName</field>
                            <value name="VALUE">
                              <block type="text_prompt_ext">
                                <mutation type="TEXT"></mutation>
                                <field name="TYPE">TEXT</field>
                                <value name="TEXT">
                                  <shadow type="text">
                                    <field name="TEXT">abc</field>
                                  </shadow>
                                  <block type="variables_get">
                                    <field name="VAR" id="Fy|}ia7w!]Uz},vn[LJc">message</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="modifyproperty">
                                <field name="objectName">object</field>
                                <field name="prop">,property</field>
                                <field name="newValue">toValue</field>
                                <value name="ObjectToChange">
                                  <block type="variables_get">
                                    <field name="VAR" id="5$qv[vi$Yz%$3,`/CML7">var_Department</field>
                                  </block>
                                </value>
                                <value name="PropertyName">
                                  <block type="text">
                                    <field name="TEXT">name</field>
                                  </block>
                                </value>
                                <value name="NewValue">
                                  <block type="variables_get">
                                    <field name="VAR" id="0C5Rz_j*A1X!Eq24e[3h">newDepName</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="text_print">
                                    <value name="TEXT">
                                      <shadow type="text">
                                        <field name="TEXT">abc</field>
                                      </shadow>
                                      <block type="converttostring">
                                        <value name="ValueToConvert">
                                          <block type="variables_get">
                                            <field name="VAR" id="5$qv[vi$Yz%$3,`/CML7">var_Department</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="text_print">
                                        <value name="TEXT">
                                          <shadow type="text">
                                            <field name="TEXT">abc</field>
                                          </shadow>
                                          <block type="put__api_DB_Departments___id">
                                            <value name="val_id">
                                              <shadow type="System_Int64"></shadow>
                                              <block type="variables_get">
                                                <field name="VAR" id="$l{IZ#6T!0KWuO$YamR8">var_Int64</field>
                                              </block>
                                            </value>
                                            <value name="val_values">
                                              <block type="variables_get">
                                                <field name="VAR" id="5$qv[vi$Yz%$3,`/CML7">var_Department</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="variables_set">
                                            <field name="VAR" id="5$qv[vi$Yz%$3,`/CML7">var_Department</field>
                                            <value name="VALUE">
                                              <block type="converttojson">
                                                <value name="ValueToConvert">
                                                  <block type="get__api_DB_Departments___id">
                                                    <value name="val_id">
                                                      <shadow type="System_Int64"></shadow>
                                                      <block type="variables_get">
                                                        <field name="VAR" id="$l{IZ#6T!0KWuO$YamR8">var_Int64</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="text_print">
                                                <value name="TEXT">
                                                  <shadow type="text">
                                                    <field name="TEXT">abc</field>
                                                  </shadow>
                                                  <block type="getproperty">
                                                    <field name="objectName">object</field>
                                                    <field name="prop">property</field>
                                                    <value name="ObjectToChange">
                                                      <block type="variables_get">
                                                        <field name="VAR" id="5$qv[vi$Yz%$3,`/CML7">var_Department</field>
                                                      </block>
                                                    </value>
                                                    <value name="PropertyName">
                                                      <block type="text">
                                                        <field name="TEXT">name</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </next>
  </block>
</xml>