1 Reply Latest reply: May 18, 2013 10:10 AM by 1009710 RSS

    Persistence issue with BPEL

    BK574
      Hi All,

      I added the following properties to my composite.xml

      <component name="abcdProcess" version="2.0">
      <implementation.bpel src="abcd.bpel"/>
      <property name="bpel.config.auditLevel">Off</property>
      <property name="bpel.config.completionPersistPolicy">faulted</property>
      <property name="bpel.config.inMemoryOptimization">true</property>
      </component>

      But still all the instance information is getting stored in DEV_SOAINFRA Schema, Is anything i am doing wrong here.

      My BPEL Process is a one way BPEL Process with receive, invoke activities. Also, how can I turn off storing references and services information inside DEV_SOAINFRA from composite.xml. Appreciate your response.
        • 1. Re: Persistence issue with BPEL
          1009710
          <?xml version="1.0" encoding="UTF-8"?><bpws:process xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/" xmlns:ns="http://BP_PurgeService/com/bofa/gfd/purge/PurgeServiceProcessArtifacts" xmlns:ns0="http://com.bofa.gfd/" xmlns:ns1="http://LB_Common/EmailNotification" xmlns:ns2="http://com.bofa.gfd" xmlns:ns3="http://com/bofa/gfd/" xmlns:wpc="http://www.ibm.com/xmlns/prod/websphere/business-process/6.0.0/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.ibm.com/xmlns/prod/websphere/business-process/expression-lang/java/6.0.0/" name="PurgeServiceProcess" suppressJoinFailure="yes" targetNamespace="http://BP_PurgeService/com/bofa/gfd/purge" wpc:continueOnError="no" wpc:displayName="PurgeServiceProcess" wpc:executionMode="longRunning" wpc:id="1" wpc:validFrom="2011-11-15T09:00:24" wpc:version="IBM_7.0.300">
          <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="BP_PurgeService.wsdl" namespace="http://com.bofa.gfd/"/>
          <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="/resource/LB_Common/EmailNotification.wsdl" namespace="http://LB_Common/EmailNotification"/>
          <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="BP_PurgeService.wsdl" namespace="http://com.bofa.gfd/"/>
          <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="PurgeServiceProcessArtifacts.wsdl" namespace="http://BP_PurgeService/com/bofa/gfd/purge/PurgeServiceProcessArtifacts"/>
          <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="../../../../EmailNotification.wsdl" namespace="http://LB_Common/EmailNotification"/>
          <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="../email/BP_EmailNotification.wsdl" namespace="http://com/bofa/gfd/"/>
          <bpws:import importType="http://www.w3.org/2001/XMLSchema" location="../common/EmailRequest.xsd" namespace="http://com.bofa.gfd"/>
          <bpws:partnerLinks>
          <bpws:partnerLink myRole="Interface" name="BP_PurgeService" partnerLinkType="ns:BP_PurgeServicePLT" wpc:id="2"/>
          <bpws:partnerLink name="EmailNotificationPartner" partnerLinkType="ns:EmailNotificationPLT" partnerRole="Interface" wpc:id="3"/>
          <bpws:partnerLink name="BP_PurgeServicePartner" partnerLinkType="ns:BP_PurgeServicePLT1" partnerRole="Interface" wpc:id="4"/>
          </bpws:partnerLinks>
          <bpws:variables>
          <bpws:variable name="dateTime" type="xsd:dateTime" wpc:id="7"/>
          <bpws:variable name="emailRequest" type="ns2:EmailRequest" wpc:id="29"/>
          <bpws:variable name="purgeOutput" type="xsd:boolean" wpc:id="31">
          <bpws:from>true</bpws:from>
          </bpws:variable>
          <bpws:variable name="sendEmailRes" type="xsd:boolean" wpc:id="41"/>
          </bpws:variables>
          <bpws:sequence name="HiddenSequence" wpc:id="1073741829">
          <bpws:receive createInstance="yes" name="Receive" operation="invokeProcess" partnerLink="BP_PurgeService" portType="ns0:BP_PurgeService" wpc:displayName="Receive" wpc:id="6" wpc:transactionalBehavior="commitAfter">
          <wpc:output>
          <wpc:parameter name="dateTime" variable="dateTime"/>
          </wpc:output>
          </bpws:receive>
          <bpws:while name="WhileLoop" wpc:displayName="WhileLoop" wpc:id="8">
          <bpws:condition expressionLanguage="http://www.ibm.com/xmlns/prod/websphere/business-process/expression-lang/built-in/6.0.0/">
          <wpc:true/>
          </bpws:condition>
          <bpws:sequence name="HiddenSequence1" wpc:id="1073741839">
          <bpws:switch name="Choice" wpc:displayName="is date exists" wpc:id="12">
          <bpws:case wpc:displayName="Yes" wpc:id="13">
          <bpws:condition expressionLanguage="http://www.w3.org/TR/1999/REC-xpath-19991116"><![CDATA[$dateTime!='']]></bpws:condition>
          <bpws:invoke name="Snippet1" operation="null" partnerLink="null" portType="wpc:null" wpc:continueOnError="inherit" wpc:displayName="Snippet" wpc:id="17">
          <wpc:script>
          <wpc:javaCode><![CDATA[System.out.println("Pruge Processing started:"+new java.util.Date());]]></wpc:javaCode>
          </wpc:script>
          </bpws:invoke>
          </bpws:case>
          <bpws:otherwise wpc:id="14">
          <bpws:sequence name="HiddenSequence2" wpc:id="1073741842">
          <bpws:invoke name="Snippet2" operation="null" partnerLink="null" portType="wpc:null" wpc:continueOnError="inherit" wpc:displayName="Snippet" wpc:id="19">
          <wpc:script>
          <wpc:javaCode><![CDATA[System.out.println("Purge process is waiting for next day:"+new java.util.Date());]]></wpc:javaCode>
          </wpc:script>
          </bpws:invoke>
          <bpws:wait name="Wait" wpc:displayName="Wait" wpc:id="9">
          <bpws:for expressionLanguage="http://www.w3.org/TR/1999/REC-xpath-19991116"><![CDATA['P1D']]></bpws:for>
          </bpws:wait>
          </bpws:sequence>
          </bpws:otherwise>
          </bpws:switch>
          <bpws:invoke name="Invoke" operation="invokeProcess" partnerLink="BP_PurgeServicePartner" portType="ns0:BP_PurgeService" wpc:continueOnError="inherit" wpc:displayName="Invoke PurgeProcess" wpc:id="20">
          <wpc:input>
          <wpc:parameter name="dateTime" variable="dateTime"/>
          </wpc:input>
          <bpws:catchAll wpc:id="21">
          <bpws:sequence name="HiddenSequence3" wpc:id="1073741847">
          <bpws:invoke name="Snippet3" operation="null" partnerLink="null" portType="wpc:null" wpc:continueOnError="inherit" wpc:displayName="log Exception" wpc:id="22">
          <wpc:script>
          <wpc:javaCode><![CDATA[System.out.println("Exception occured in Purge Process");]]></wpc:javaCode>
          </wpc:script>
          </bpws:invoke>
          <bpws:assign name="Assign" wpc:displayName="Assign" wpc:id="30">
          <bpws:copy>
          <bpws:from><![CDATA[Processing Error occured in PurgeProcess]]></bpws:from>
          <bpws:to variable="emailRequest">
          <bpws:query queryLanguage="http://www.w3.org/TR/1999/REC-xpath-19991116"><![CDATA[catchAll[1]/description]]></bpws:query>
          </bpws:to>
          </bpws:copy>
          <bpws:copy>
          <bpws:from><![CDATA[High]]></bpws:from>
          <bpws:to variable="emailRequest">
          <bpws:query queryLanguage="http://www.w3.org/TR/1999/REC-xpath-19991116"><![CDATA[catchAll[1]/severity]]></bpws:query>
          </bpws:to>
          </bpws:copy>
          </bpws:assign>
          <bpws:invoke name="Invoke1" operation="sendEmail" partnerLink="EmailNotificationPartner" portType="ns3:BP_EmailNotification" wpc:continueOnError="inherit" wpc:displayName="send Email" wpc:id="24">
          <wpc:input>
          <wpc:parameter name="emailRequest" variable="emailRequest"/>
          </wpc:input>
          <wpc:output>
          <wpc:parameter name="sendEmailRes" variable="sendEmailRes"/>
          </wpc:output>
          <bpws:catchAll wpc:id="26">
          <bpws:invoke name="Snippet4" operation="null" partnerLink="null" portType="wpc:null" wpc:continueOnError="inherit" wpc:displayName="log Email Failure" wpc:id="27">
          <wpc:script>
          <wpc:javaCode><![CDATA[System.out.println("Exception occured during sending an email for purge process");]]></wpc:javaCode>
          </wpc:script>
          </bpws:invoke>
          </bpws:catchAll>
          </bpws:invoke>
          </bpws:sequence>
          </bpws:catchAll>
          </bpws:invoke>
          <bpws:invoke name="Snippet" operation="null" partnerLink="null" portType="wpc:null" wpc:continueOnError="inherit" wpc:displayName="Snippet" wpc:id="16">
          <wpc:script>
          <wpc:javaCode><![CDATA[dateTime=null;]]></wpc:javaCode>
          </wpc:script>
          </bpws:invoke>
          </bpws:sequence>
          </bpws:while>
          </bpws:sequence>
          </bpws:process>