<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Libraries on Step Documentation</title>
    <link>https://step.dev/knowledgebase/30/libraries/</link>
    <description>Recent content in Libraries on Step Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Wed, 13 Feb 2019 00:00:00 +0000</lastBuildDate><atom:link href="https://step.dev/knowledgebase/30/libraries/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Plan library</title>
      <link>https://step.dev/knowledgebase/30/libraries/plans_lib/</link>
      <pubDate>Thu, 28 Feb 2019 14:08:01 +0100</pubDate>
      
      <guid>https://step.dev/knowledgebase/30/libraries/plans_lib/</guid>
      <description>All of the plans documented in this section can be downloaded and then imported into your own private instance by following this procedure.
Basics Here are a few basic, yet non-trivial plans which will help you get started with the most useful and common constructs. We will be practicing with a very simple source type called &amp;ldquo;Json String&amp;rdquo;, which will help us distribute data across iterations and threads.
We can pass an arbitrary array of Json objects and then access them object by object.</description>
    </item>
    
    <item>
      <title>Groovy library</title>
      <link>https://step.dev/knowledgebase/30/libraries/groovy_lib/</link>
      <pubDate>Wed, 22 May 2019 14:08:01 +0100</pubDate>
      
      <guid>https://step.dev/knowledgebase/30/libraries/groovy_lib/</guid>
      <description>Select For Update (atomic transaction) Below an example of Groovy script used to open an sql connection, update a column of the first row of a table, then close the connection.
sql = groovy.sql.Sql.newInstance(&amp;#39;jdbc:mysql://localhost/step&amp;#39;,&amp;#39;step&amp;#39;,&amp;#39;init&amp;#39;) sql.execute(&amp;#39;begin&amp;#39;) sql.firstRow(&amp;#39;select myColumn from myTable for update&amp;#39;)[0] sql.execute(&amp;#39;update myTable set myColumn = myColumn + 1&amp;#39;); sql.execute(&amp;#39;commit&amp;#39;) sql.close() Copy a file from a path to another java.nio.file.Files.copy(java.nio.file.Paths.get(file), java.nio.file.Paths.get(file+&amp;#39;2&amp;#39;)) REST call with JSON response response = new URL(&amp;#34;http://localhost:8080/rest/grid/agent&amp;#34;).text json = new com.</description>
    </item>
    
  </channel>
</rss>
