<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Process Instance bulk Import in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27950#M11966</link>
    <description>&lt;P&gt;Ok - so no ability to take advantage of rules in Alfresco Content Services.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not have an example, but this has been done using JSON and the Application Development Framework.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2020 13:58:10 GMT</pubDate>
    <dc:creator>jljwoznica</dc:creator>
    <dc:date>2020-01-14T13:58:10Z</dc:date>
    <item>
      <title>Process Instance bulk Import</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27945#M11961</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have designed &lt;STRONG&gt;sample process&lt;/STRONG&gt; with two task and form. I want to import bulk process instance for my sample process.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly anyone help me to achieve my scenario.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Amruta Wandakar&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 07:00:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27945#M11961</guid>
      <dc:creator>amruta_w</dc:creator>
      <dc:date>2020-01-09T07:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Process Instance bulk Import</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27946#M11962</link>
      <description>&lt;P&gt;Can you clarify? You want to bulk import information to initiate the process?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 14:16:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27946#M11962</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2020-01-09T14:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Process Instance bulk Import</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27947#M11963</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/2080"&gt;@jljwoznica&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;I can start process-Instance through API call, But i have a CSV file with all the required field variables for creating a process-Instance , if i call API for each record it will be having performance issue, because data will be more, kindly suggest me with example or document if possible&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Amruta Wandakar&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 12:27:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27947#M11963</guid>
      <dc:creator>amruta_w</dc:creator>
      <dc:date>2020-01-10T12:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Process Instance bulk Import</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27948#M11964</link>
      <description>&lt;P&gt;Are you using only APS or do you also have the content engine availalble.&amp;nbsp;&lt;BR /&gt;If you have content available, you can write a script that is run by a rule when the CSV file is added to the respository which parses the script by each line and launches the processes passing the variables.&lt;BR /&gt;&lt;BR /&gt;I believe you could use the Script task call in APS to do if you do not have process.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 18:01:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27948#M11964</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2020-01-10T18:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Process Instance bulk Import</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27949#M11965</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/2080"&gt;@jljwoznica&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reply, I'm using APS and I have process designed. It's great if share any documentation or exmaple, that will help me lot.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Amruta Wandakar&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 10:04:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27949#M11965</guid>
      <dc:creator>amruta_w</dc:creator>
      <dc:date>2020-01-14T10:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Process Instance bulk Import</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27950#M11966</link>
      <description>&lt;P&gt;Ok - so no ability to take advantage of rules in Alfresco Content Services.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not have an example, but this has been done using JSON and the Application Development Framework.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 13:58:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27950#M11966</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2020-01-14T13:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Process Instance bulk Import</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27951#M11967</link>
      <description>&lt;P&gt;Does this sample script help at all?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In this sample script where a “bfile” file variable was attached to a process.&amp;nbsp;Using the RelatedContentService runtime, you can parse that csv attachment to perform any action (ie: kick off additional processes.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;import com.activiti.service.runtime.RelatedContentService;&lt;BR /&gt;import com.activiti.service.runtime.RelatedContentStreamProvider;&lt;BR /&gt;import com.activiti.domain.runtime.RelatedContent;&lt;BR /&gt;import &lt;A class="c-link" href="http://java.io/" target="_blank" rel="noopener noreferrer nofollow"&gt;java.io&lt;/A&gt;.InputStream;&lt;BR /&gt;import &lt;A class="c-link" href="http://org.apache.commons.io/" target="_blank" rel="noopener noreferrer nofollow"&gt;org.apache.commons.io&lt;/A&gt;.IOUtils;&lt;BR /&gt;import java.nio.charset.StandardCharsets;import java.util.logging.Level;&lt;BR /&gt;import java.util.logging.Logger;import java.util.*;&lt;BR /&gt;import java.text.*;String bName = "bfile"; List&amp;lt;RelatedContent&amp;gt; barcodescontentList = relatedContentService.getFieldContentForProcessInstance(execution.getProcessInstanceId(), bName, 1, 0).getContent();&lt;BR /&gt;RelatedContent barcodescontent = barcodescontentList.get(0);&lt;BR /&gt;InputStream bIs = relatedContentStreamProvider.getContentStream(barcodescontent);&lt;BR /&gt;String bContents = IOUtils.toString(bIs, StandardCharsets.UTF_8);bContents.eachLine {&lt;BR /&gt;       /* Do some stuff for each line here */&lt;BR /&gt;}if (bContents.contains("search str")) {&lt;BR /&gt;     /* Do some stuff for searching for content here */&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jan 2020 13:36:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/process-instance-bulk-import/m-p/27951#M11967</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2020-01-15T13:36:31Z</dc:date>
    </item>
  </channel>
</rss>

