Configuring the Rule

Procedure

  1. Select the rule created previously when the WSDL was imported.
  2. Select the Form tab.
  3. Specify the rule actions as shown in the following code snippet. Content and Context assist will operate as the actions are defined.
    System.debugOut("###Action###");
    System.debugOut("###Printing SOAP Input###");
    System.debugOut(soapeventin@payload);
    System.debugOut("###Creating Concept Instance###");
    Concepts.Account account = Instance.createInstance("xslt://");
    System.debugOut("###Invoking Decision Table###");
    VirtualRuleFunctions.ReviewAccount(account);
    System.debugOut("###Creating the SOAP Output###");
    AdvBEIntegration.AdvBEIntegrationProcess.Events.AdvBEIntegrationProcess_CallBE_OUTPUT output = Event.createEvent("xslt://");
    System.debugOut("###Printing SOAP Output###");
    System.debugOut(output@payload);
    System.debugOut("###Deleting Concept Instance###");
    Instance.deleteInstance(account);
    Event.replyEvent(soapeventin, output);
    Note: The Instance.createInstance and Event.createEvent definitions will be defined (using the XSLT mapper) in the next two tasks.