<?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: Commit a Transaction in Activiti JAVA Delegate Service task in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/commit-a-transaction-in-activiti-java-delegate-service-task/m-p/7697#M3504</link>
    <description>&lt;P&gt;Yes. My motive to post this query here was to get help from some community member if anyboday has already faced such issue. Thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Nov 2020 08:32:44 GMT</pubDate>
    <dc:creator>dilip_chenani</dc:creator>
    <dc:date>2020-11-09T08:32:44Z</dc:date>
    <item>
      <title>Commit a Transaction in Activiti JAVA Delegate Service task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/commit-a-transaction-in-activiti-java-delegate-service-task/m-p/7695#M3502</link>
      <description>&lt;P&gt;I am working on solution for&lt;/P&gt;&lt;P&gt;1) calling a new Child Process fromn within a Service task of Parent Process.&lt;/P&gt;&lt;P&gt;2) submiting the task form of Child process from&amp;nbsp; same Service task of Parent Process.&lt;/P&gt;&lt;P&gt;Problem i am facing is Child process is not getting commited in database but process instance id is generated in-memory. Therefore, while submiting the task form of child process, error is thrown saying "could not find process with id xxxx".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to manually/forcefully commit the transaction and can be implemented inside the code logic of javadelegate service task?&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the code will look like :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public class ExecuteBusinessProcessDelegate implements JavaDelegate{
protected Expression processdeploymentid;//Required field

@Override
	public void execute(DelegateExecution execution) throws Exception {
String deploymentid = expConvUtility.getExpressionAsString(processdeploymentid, execution);
RuntimeService runtimeService = execution.getEngineServices().getRuntimeService();
		ProcessInstance processInstance = runtimeService.startProcessInstanceById(processDefinitionId,variables);

/// Commit the transaction here &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;

/// Submit the task ID here
}
}&lt;/PRE&gt;</description>
      <pubDate>Sun, 25 Oct 2020 20:46:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/commit-a-transaction-in-activiti-java-delegate-service-task/m-p/7695#M3502</guid>
      <dc:creator>dilip_chenani</dc:creator>
      <dc:date>2020-10-25T20:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Commit a Transaction in Activiti JAVA Delegate Service task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/commit-a-transaction-in-activiti-java-delegate-service-task/m-p/7696#M3503</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/51023"&gt;@dilip_chenani&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a customer, have you raised a ticket for this issue?&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 11:52:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/commit-a-transaction-in-activiti-java-delegate-service-task/m-p/7696#M3503</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-11-02T11:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Commit a Transaction in Activiti JAVA Delegate Service task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/commit-a-transaction-in-activiti-java-delegate-service-task/m-p/7697#M3504</link>
      <description>&lt;P&gt;Yes. My motive to post this query here was to get help from some community member if anyboday has already faced such issue. Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 08:32:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/commit-a-transaction-in-activiti-java-delegate-service-task/m-p/7697#M3504</guid>
      <dc:creator>dilip_chenani</dc:creator>
      <dc:date>2020-11-09T08:32:44Z</dc:date>
    </item>
  </channel>
</rss>

