3 Replies Latest reply: May 21, 2013 10:03 AM by BK574 RSS

    Is it possible to pass the property value dynamically to composite.xml

    BK574
      Hi,

      Is it possible to pass the property value dynamically to composite.xml from bpel?

      For ex:

      <property name="bpel.config.auditLevel">$variable</property>

      I will get a different $variable value every time to bpel.

      Also, when I included the following code inside .bpel
      invoke name="InvokeListFileFTPAdapter-ListFiles"
      partnerLink="ListFilesFTPAdapter"
      portType="ns3:FileListing_ptt" operation="FileListing"
      inputVariable="listfilesRequest"
      outputVariable="listfilesResponse" bpelx:invokeAsDetail="no">
      <bpelx:toProperties>
      <bpelx:toProperty name="bpel.auditLevel"
      variable="AuditVariable"/>
      </bpelx:toProperties>
      </invoke>
      where auditvariable='Off'
      I don't see any change in em. The invoke activity is showing full payload, Can't we turn off the audit level from .bpel not from composite.xml
        • 1. Re: Is it possible to pass the property value dynamically to composite.xml
          PuneetRekhade
          If I am not wrong, you want to selectively choose to show or hide the details of certain "Invokes" in the BPEL Process.
          You can try this out :

          http://docs.oracle.com/cd/E23943_01/admin.1111/e10226/bp_config.htm#CEGHEDGJ

          Hope it helps !

          Puneet.
          • 2. Re: Is it possible to pass the property value dynamically to composite.xml
            Arik
            Hi,

            You can use bpel preferences for that:

            1.
            In the composite add a property, for ex:

            <component name="test">
            <implementation.bpel src="test.bpel"/>
            <property name="bpel.preference.exam">abc</property>
            </component>

            2.
            To get the value within your bpel process use: ora:getPreference(exam)

            3.
            Then, you can change the value in the EM:
            Under Farm_soa_domain>weblogic domain>your_domain>soa_server1
            Right click on menu>system Mbean browser>oracle.soa.config>server:soa_server1>SCAComposite>your project>SCAComposite.SCAComponent>processName>

            Now, click on the properties attribute : you can see the exam property and change the value.

            Arik
            • 3. Re: Is it possible to pass the property value dynamically to composite.xml
              BK574
              Thanks for your replies,

              I supposed to pass the value directly from bpel not from EM. Everytime, I get different value has input for my BPEL Process. Based on the input value i have to set the property.

              Also,

              Can we pass the following value dynamically through BPEL

              <property name="auditLevel" many="false">Development</property> (I need to pass the development value dynamically from BPEL)