0 Replies Latest reply: Dec 24, 2008 7:38 AM by 551200 RSS

    how to get the filename from content with java?

    551200
      Hi, i am connecting with Oracle Content from BPEL Process.

      now i need to get the filename that was copied into content, anyone know how to get that??

      the code i am using to connect, and working OK is this:

      try
      {                                                                                  
      //get the workflow id.
      String workflowid =(String) getVariableData("workflowid");
      addAuditTrailEntry("wf id", workflowid);

      // get the workflow parameters
      String filesendpoint = (String) getVariableData("filesendpoint");
      addAuditTrailEntry("filesendpoint",filesendpoint );

      String user = (String) getVariableData("connectasuser");
      addAuditTrailEntry("connectasuser",user );
      // action =
      // new BusinessProcess.NotifyUserOfChangeWorkflowAction(workflowid);
      // addAuditTrailEntry("debug10","debug10" );

      oracle.ifs.fdk.RemoteLoginManagerServiceLocator rlmsl =
      new oracle.ifs.fdk.RemoteLoginManagerServiceLocator();
      rlmsl.setMaintainSession(true);

      addAuditTrailEntry("debug11","debug11" );



      // initialize the RemoteLoginManager
      oracle.ifs.fdk.RemoteLoginManager s_RLM =
      rlmsl.getRemoteLoginManager(new java.net.URL("https://contentdev.nblenergy.com/content" + "/ws/RemoteLoginManager"));

      addAuditTrailEntry("debug12","debug12" );
      // establish a session
      oracle.ifs.fdk.NamedValue[] properties= s_RLM.login("kofax","welcome1", null, null);


      addAuditTrailEntry("properties",properties);





      }
      catch(Throwable ex)
      {addAuditTrailEntry("Others",ex);                               
             ex.printStackTrace();                         
                                
            }


      Thanks!!
      Pablo.