<?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 Can not pass process variable if using submitStartFormData to new process in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12689#M5611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;the API of&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;formService.&lt;SPAN&gt;submitStartFormData&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;only support&amp;nbsp;&lt;SPAN&gt;Map&amp;lt;String,String&amp;gt;, but If I have a service task after the start form event, which need accept a boolean value or complex java bean. How can I pass&amp;nbsp;process variable just like&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;runtimeService&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN class="" style="color: #353833; background-color: #eeeeef; font-weight: bold;"&gt;&lt;A href="https://www.activiti.org/javadocs/org/activiti/engine/RuntimeService.html#startProcessInstanceById-java.lang.String-java.lang.String-java.util.Map-" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" rel="nofollow noopener noreferrer"&gt;startProcessInstanceById&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #353833; background-color: #eeeeef;"&gt;(&lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; background-color: #eeeeef; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&lt;SPAN style="color: #353833; background-color: #eeeeef;"&gt;&amp;nbsp;processDefinitionId, &lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; background-color: #eeeeef; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&lt;SPAN style="color: #353833; background-color: #eeeeef;"&gt;&amp;nbsp;businessKey, &lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" style="color: #4a6782; background-color: #eeeeef; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.util" rel="nofollow noopener noreferrer"&gt;Map&lt;/A&gt;&lt;SPAN style="color: #353833; background-color: #eeeeef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; background-color: #eeeeef; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&lt;SPAN style="color: #353833; background-color: #eeeeef;"&gt;,&lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" style="color: #4a6782; background-color: #eeeeef; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;Object&lt;/A&gt;&lt;SPAN style="color: #353833; background-color: #eeeeef;"&gt;&amp;gt;&amp;nbsp;variables)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #eeeeef; color: #353833;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #eeeeef; color: #353833;"&gt;&lt;A __default_attr="225199" __jive_macro_name="thread" _jive_internal="true" class="jive_macro_thread jive_macro link-titled" href="https://community.alfresco.com/thread/225199-problem-adding-variables-when-starting-with-submitstartformdata" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #eeeeef; color: #353833;"&gt;Same problem but not solved&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2017 09:44:42 GMT</pubDate>
    <dc:creator>dean</dc:creator>
    <dc:date>2017-02-17T09:44:42Z</dc:date>
    <item>
      <title>Can not pass process variable if using submitStartFormData to new process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12689#M5611</link>
      <description>the API of&amp;nbsp;formService.submitStartFormDataonly support&amp;nbsp;Map&amp;lt;String,String&amp;gt;, but If I have a service task after the start form event, which need accept a boolean value or complex java bean. How can I pass&amp;nbsp;process variable just like&amp;nbsp;runtimeServicestartProcessInstanceById(String&amp;nbsp;processDefinitionI</description>
      <pubDate>Fri, 17 Feb 2017 09:44:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12689#M5611</guid>
      <dc:creator>dean</dc:creator>
      <dc:date>2017-02-17T09:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can not pass process variable if using submitStartFormData to new process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12690#M5612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why don't you use the startProcessInstanceById method? You could also pass your form variables there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 10:50:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12690#M5612</guid>
      <dc:creator>nikmenke</dc:creator>
      <dc:date>2017-02-17T10:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can not pass process variable if using submitStartFormData to new process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12691#M5613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you "have to" use toe formService rather than the runtimeService?&lt;/P&gt;&lt;P&gt;Runtime Service lets you start a process instance with business key, variables etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If formService is a requirement, please explain the scenario so we can help.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 22:57:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12691#M5613</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-17T22:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can not pass process variable if using submitStartFormData to new process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12692#M5614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I used start form event, when user submit a form request then start a new process instance. I think that is why formService provides the function '&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;submitStartFormData&lt;/SPAN&gt;'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My start event:&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;startEvent &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="start" &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="Start" &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;activiti&lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;:initiator&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="applyUserId"&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;activiti&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;:formProperty &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="f_name" &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="${f_name}" &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="Name" &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="string" &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;expression&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="#{contact.name}" &lt;/SPAN&gt;&lt;SPAN style="color: #bababa;"&gt;required&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;="true"&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;/&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;/startEvent&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I need pass complex java bean 'contact' into process as process variables. Then use&amp;nbsp;&lt;SPAN&gt;formService.&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;submitStartFormData to start the process, the form variable should be a map, key is 'f_name', value is 'jeff'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #727174;"&gt;After the process instance&amp;nbsp;started, I could&amp;nbsp;get contact from process, the contact.name should equal '&lt;SPAN style="background-color: #ffffff;"&gt;jeff&lt;/SPAN&gt;'.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2017 15:00:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12692#M5614</guid>
      <dc:creator>dean</dc:creator>
      <dc:date>2017-02-19T15:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can not pass process variable if using submitStartFormData to new process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12693#M5615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, Just because you use a start event (all processes MUST use some kind of start event), doesn't mean you have to start the process using a form.&lt;/P&gt;&lt;P&gt;There are many ways to start a process, if you want to inject variables other than Strings then you need to use the appropriate runtimeService.startProcessInstanceByID() or startProcessInstanceByKey().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2017 15:10:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12693#M5615</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-19T15:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can not pass process variable if using submitStartFormData to new process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12694#M5616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;Thanks for the quick reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still think believe the interface should add one more parameter&lt;/P&gt;&lt;P&gt;from&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;ProcessInstance &lt;SPAN style="color: #ffc66d;"&gt;submitStartFormData&lt;/SPAN&gt;(String processDefinitionId&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;String businessKey&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;Map&amp;lt;String&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;String&amp;gt; properties)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;to&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;ProcessInstance &lt;SPAN style="color: #ffc66d;"&gt;submitStartFormData&lt;/SPAN&gt;(String processDefinitionId&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;String businessKey&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;Map&amp;lt;String&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;String&amp;gt; properties, Map&amp;lt;String, Object&amp;gt;&lt;PRE style="font-size: 9.0pt;"&gt;&lt;SPAN style="background-color: #344134;"&gt;variables&lt;/SPAN&gt;&lt;/PRE&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2017 15:16:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12694#M5616</guid>
      <dc:creator>dean</dc:creator>
      <dc:date>2017-02-19T15:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can not pass process variable if using submitStartFormData to new process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12695#M5617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Feel free to open an Jira and even better, provide a pull request with the implementation you are looking for.&lt;/P&gt;&lt;P&gt;Can't guarantee the feature will get into the code, but a pull request is you best opportunity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 17:00:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/can-not-pass-process-variable-if-using-submitstartformdata-to/m-p/12695#M5617</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-20T17:00:55Z</dc:date>
    </item>
  </channel>
</rss>

