<?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 Problem adding Variables when starting with submitStartFormData in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-adding-variables-when-starting-with-submitstartformdata/m-p/210935#M164065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we want to start a Process with Form Parameters for the startEvent. For later steps in the Workflow we need to add additional variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that all Form Variables will become Workflow variables so I could just add them to the submitStartFormData call in the Map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem for us is, that the signature of the Map supplied to startProcessInstanceByKey is Map&amp;lt;String,Object&amp;gt; (which we actually use to submit eg. java.util.Date's), but the signature for the Map of submitStartFormData is Map&amp;lt;String,String&amp;gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We tried adding the variables after the start via something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;processInstance = getFormService().submitStartFormData(processDefinition.getId(), formValues);&lt;BR /&gt;getRuntimeService().setVariables(processInstance.getId(), dataMap);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but obviously the second statement never gets executed because the start of the process causes exceptions about unknown expressions/process variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other Ideas or hints besides converting all entries in the dataMap to Strings and handling everything as String in the Workflow?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greets, Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Nov 2015 10:09:17 GMT</pubDate>
    <dc:creator>prace</dc:creator>
    <dc:date>2015-11-13T10:09:17Z</dc:date>
    <item>
      <title>Problem adding Variables when starting with submitStartFormData</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-adding-variables-when-starting-with-submitstartformdata/m-p/210935#M164065</link>
      <description>Hi,we want to start a Process with Form Parameters for the startEvent. For later steps in the Workflow we need to add additional variables.I know that all Form Variables will become Workflow variables so I could just add them to the submitStartFormData call in the Map.Problem for us is, that the sig</description>
      <pubDate>Fri, 13 Nov 2015 10:09:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-adding-variables-when-starting-with-submitstartformdata/m-p/210935#M164065</guid>
      <dc:creator>prace</dc:creator>
      <dc:date>2015-11-13T10:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding Variables when starting with submitStartFormData</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-adding-variables-when-starting-with-submitstartformdata/m-p/210936#M164066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Providing log of thrown exceptions could help in understanding what's wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 15:40:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-adding-variables-when-starting-with-submitstartformdata/m-p/210936#M164066</guid>
      <dc:creator>balsarori</dc:creator>
      <dc:date>2015-11-16T15:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding Variables when starting with submitStartFormData</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-adding-variables-when-starting-with-submitstartformdata/m-p/210937#M164067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it's not the point of thrown Exceptions. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The point is, when starting a workflow without any start form parameters i use a Map&amp;lt;String,Object&amp;gt; for the variables. (eg. to suppy directly a java.util.date) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When starting a workflow with Form Paramers i can only submit formValues as &amp;lt;String,String&amp;gt;. So I can't supply e.g. a Date directly for later usage in the workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ideally the submitStartFormData method needs an additional Map&amp;lt;String,Object&amp;gt; for the "regular" workflow variables…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greets, Peter&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 15:46:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-adding-variables-when-starting-with-submitstartformdata/m-p/210937#M164067</guid>
      <dc:creator>prace</dc:creator>
      <dc:date>2015-11-16T15:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding Variables when starting with submitStartFormData</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-adding-variables-when-starting-with-submitstartformdata/m-p/210938#M164068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same&amp;nbsp;&lt;SPAN class=""&gt;confusion&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 09:37:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-adding-variables-when-starting-with-submitstartformdata/m-p/210938#M164068</guid>
      <dc:creator>dean</dc:creator>
      <dc:date>2017-02-17T09:37:58Z</dc:date>
    </item>
  </channel>
</rss>

