0 Replies Latest reply on Jul 1, 2019 6:18 AM by andrianopoulosg

    How can i set a Global-variable at process start in XML format ?

    andrianopoulosg

      Environment

      • Red Hat JBoss BPM Suite
        • 6.4

      Question

      Is there any way of setting a global variable at process start along with simple process variables using REST API and application/XML format?

       

      The way i start a process with process variables is shown below, but what is the xml <tag> that will set a global variable called e.g "sampleVar" ?

          

      ''''

      <map-type class="java.util.HashMap">

           <entry>

                <key class="java.lang.String">sampleString</key>

                <value class="java.lang.String">A</value>

           </entry>

           <entry>

                <key class="java.lang.String">sampleXML</key>

                <value class="java.lang.String">B</value>

           </entry>

           <entry>

                <key class="java.lang.String">WSRequest</key>

                <value class="acme.service.soap.hotelws.HotelRequest">

                     <targetCity>Atlanta</targetCity>

                     <startDate>2019-06-27</startDate>

                     <endDate>2019-06-27</endDate>

                </value>

           </entry>

      </map-type>

      ''''