2 Replies Latest reply on Jan 9, 2013 12:24 PM by Bagagem

    Is it possible to change Fault Policy values using a configuration plan?

    luismi fernandez
      Hi All,

      I know that redeploying the fault policy file in the MDS is a way to do this, but I'd like to know if it's possible to do this using a configuration plan.

      Thanks in advance,
        • 1. Re: Is it possible to change Fault Policy values using a configuration plan?
          Jon-Eric
          Try this. Add inside the <composite> node of the configuration plan.

          <property name="oracle.composite.faultPolicyFile">
          <replace>your_policy_file.xml</replace>
          </property>

          I do this and have policies named fault_policy_dev.xml, fault_policy_qa.xml, and so on. Works just fine.
          • 2. Re: Is it possible to change Fault Policy values using a configuration plan?
            Bagagem
            sorry for ressurrect this thread...

            I think I understood the doubt of luismi fernandez, i'm actually having the same doubt...

            I know it is possible to change the reference in the composite.xml to the fault policy file through configuration plan, however I have several policies defined and want to change only one property - emailToAddress:
            <?xml version="1.0" encoding="UTF-8"?>
            <faultPolicies xmlns="http://schemas.oracle.com/bpel/faultpolicy"
                           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <faultPolicy version="1.0" id="CompanyInvocation_ServiceFaultPolicy"
                    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
                    xmlns:xs="http://www.w3.org/2001/XMLSchema"
                    xmlns="http://schemas.oracle.com/bpel/faultpolicy"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                    <Conditions>
                        <faultName xmlns:sh="http://company.com/framework/statusHandler/v1" name="sh:invocationFault">
                            <condition>
                                <action ref="alert-and-person-intervention"/>
                            </condition>
                        </faultName>
                    </Conditions>
                    <Actions>
                        <Action id="ora-person-intervention">
                            <humanIntervention/>
                        </Action>
                        <Action id="alert-and-person-intervention">
                            <javaAction className="com.company.framework.FaultEmailAlerter"
                                    defaultAction="ora-person-intervention"
                                    propertySet="emailSettings">
                            <returnValue value="OK" ref="ora-person-intervention"/>
                        </javaAction>
                      </Action>
                    </Actions>
                    <Properties>
                      <propertySet name="emailSettings">
                        <property name="emailServer">email-server</property>
                        <property name="emailPort">25</property>
                        <property name="emailToAddress">myemail@mailserver.com</property>
                        <property name="emailFromAddress">theiremail@mailserver.com</property>
                      </propertySet>
                    </Properties>
                </faultPolicy>
            </faultPolicies>
            Is it possible to change Fault Policy property using a configuration plan?

            Best regards,
            Bagagem