2 Replies Latest reply: Jul 28, 2014 10:45 PM by Oracle Fusion Middleware Development Team RSS

    Invoking issue OPA Determinations from Siebel Client 8.2

    Oracle Fusion Middleware Development Team


      I am using Siebel 8.2 and OPA 10.4.5. The "DS Smoke Test" button is enabled in Employee applet, but when I click nothing is happening. Verified Server Side script as below from Siebel Tools.

      and configured Oubound service as below. Please suggest.

       

      Administration - Outbound Services

      DeterminationServer   name space: http://oracle.com/determinations/server/10.0/server/types

       

      Service Ports config:

       

      Name: AdminSmokeTest

      Display Name: Policy Automation Determination Server

      Address: http://localhost:8888/siebel-determinations-server/assess/soap/generic/10.0/AdminSmokeTest

       

      Operations:

       

      Assess  with Authentication Type : none

       

      Server Side Scripting:

       

      function WebApplet_PreInvokeMethod (MethodName)
      {
      var oBS;
      var inPS;
      var outPS;
      var goalPS;

      var applet = this;
      var BC = applet.BusComp();
      oBS = TheApplication().GetService("Workflow Process Manager");
      var RowId = BC.GetFieldValue("Id");

      if (MethodName == "EventMethodRunPolicyAutomationSmokeTest") {
       
         
        
        inPS = TheApplication().NewPropertySet();
        outPS = TheApplication().NewPropertySet();

        inPS.SetProperty("ProcessName", "Policy Automation Assess Workflow");
        inPS.SetProperty("Object Id", RowId);
        inPS.SetProperty("Configuration Name", "AdminSmokeTest");
        oBS.InvokeMethod("RunProcess", inPS, outPS);
       
        BC.InvokeMethod("RefreshRecord");
       
        // Get to the answer by type
        goalPS = SelectFirst(outPS, "Result");
        goalPS = SelectFirst(goalPS, "ListOfPolicy Automation Response");
        goalPS = SelectFirst(goalPS, "response");
        goalPS = SelectFirst(goalPS, "ListOfentity");
        goalPS = SelectFirst(goalPS, "entity");
        goalPS = SelectFirst(goalPS, "ListOfentity-instance");
        goalPS = SelectFirst(goalPS, "entity-instance");
        goalPS = SelectFirst(goalPS, "ListOfattribute");
       
        // get the attribute with the name 'validity_text'
        goalPS = SelectFirstWithPropertyValue(goalPS, "attribute", "name", "validity_text");

        if (goalPS.PropertyExists("value")) {
         TheApplication().RaiseErrorText("Smoke test succeeded.  Result: " + goalPS.GetProperty("value"));
        } else {
         TheApplication().RaiseErrorText("Smoke test succeeded but returned no result.  Perhaps the mapping is incorrect?");
        }
        return (CancelOperation);
      }
      else if (MethodName == "RunPolicyAutomationIOSmokeTest") {

        inPS = TheApplication().NewPropertySet();
        outPS = TheApplication().NewPropertySet();
         
        inPS.SetProperty("ProcessName", "Policy Automation Assess IO");
        inPS.SetProperty("MappingName", "AdminSmokeTestIO");
        inPS.SetProperty("ObjectContextID", RowId);
        oBS.InvokeMethod("RunProcess", inPS, outPS);
       
        var employeeIO =  outPS.GetChild(0);
       
        var isValid = employeeIO.GetChild(0).GetChild(0).GetProperty("Is Valid");
        var validityText = employeeIO.GetChild(0).GetChild(0).GetProperty("Validity Text");
       
        TheApplication().RaiseErrorText("Smoke test succeeded.  Result: " + validityText);
       
        return (CancelOperation);
      }
      else
      {
        return (ContinueOperation);
      }



      }

        • 1. Re: Invoking issue OPA Determinations from Siebel Client 8.2
          frank.hampshire

          I would suggest stepping thorugh the code in the Debugger to see what happens. If nothing at all is happening, I would suggest that neither of the Events are being activated.

           

          On a failed call, you would usually expect an error message.

          • 2. Re: Invoking issue OPA Determinations from Siebel Client 8.2
            Oracle Fusion Middleware Development Team

            Thanks Frank for your response. I tried below but still no success. Please try at your end and suggest.

            I will mail you complete log observed in this case for your reference.

             

             

            Tried Below:

             

            1)   Debugging Siebel Workflow Process at Runtime

            Sometimes it happens that you perform some operation, which needs to trigger a workflow process (synchronous / asynchronous) and you realised that it has not performed as per the expectation and want to see what exactly it has done. Workflow is a collection of some steps which gets executed sequentially, so you might need to track what it has done in each step and in which step some problem has occured.

            Siebel provides a way to debug a already deployed workflow at the runtime and its very easy as you can do it in web client itself.
            What you need to do is :

            1. 1. Navigate to "Administration-Business Process -> Workflow Deployment -> Active Workflow Processes" view.
            2. 2. Query for the Workflow Process in the bottom applet.
            3. 3. Change the "Monitoring - Level" for the workflow process to "4 - Debug".
            4. 4. Now go and perform the same action again which will trigger this workflow.
            5. 5. If it again errored out or not performed as per the expectation and you want to track it execution step by step, navigate to : "Administration-Business Process -> Workflow Instance Monitor" view.
            6. 6. Query for the Workflow Process in upper applet. System will show all the instances executed for that workflow in the bottom applet. Sort the instances via "Start Date" descending.
            7. 7. Navigate to "Step Instances" view.
            8. 8. Now you can see, what all process properties were in each step of the workflow and make out what went wrong.

            Isn't easy to have any workflow running in Debug mode at the runtime?

             

            Observation:

                For the above, nothing is visible in Step 7/8 when I debug and view at runtime.

            2) Using the Process Simulator with Different Workflow Modes

            http://docs.oracle.com/cd/E14004_01/books/BPFWorkflow/testing4.html

            Followed the steps mentioned in the above link. “Siebel.exe” client is invoked.. with message

            “Preparing simulator …..please wait”   the control is not coming back to Siebel Tools to debug and check watch window.

            Finally got message as “Siebel Tools” not responding and got Killed”.

            Note: For the above two, I am using Siebel Tools locally and I have configured local repository SRF and created local DBF

            3) Tried below also, but no luck

            http://siebelunleashed.com/siebel-crm-workflow-debugging-through-logs/

            4) DEBUG LOG Level Settings made as per below URL:

            http://siebel-answers.blogspot.in/2007/09/siebel-logs-how-useful-are-they.html

            Observed below log content: Please suggest what went wrong. <<<<< SENDING LOG FILE in mail to you as it's big , got it from log level 4 >>>>>>>