0 Replies Latest reply on Apr 4, 2011 8:05 PM by avi_nyc

    real world Workspace customization issues

    avi_nyc

      Background: We are creating a subset of workspace functionalities in a JSP application which will interact with LC Server over web services only without the use of Workspace APIs(which are combination of Flex UI APIs, Flex Domain APIs and Java Task Manager APIs). We want to directly use TaskManager APIs for that.

       

      ISSUE 1:  We are trying to invoke the Long-lived process from a JSP page
      using web  services but the process in not getting invoked.
      Here is the client JSP code.  Please also refer the attachment which has
      the web service proxy java  files:

       

      <%@ page import="com.adobe.idp.services.*" %>
      <%@ page  import="javax.xml.ws.Holder" %>
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML  4.01 Transitional//EN"><%@page
      language="java" contentType="text/html;  charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%>

       

      <%@page import="org.w3c.dom.Document"%><html>
      <head>
      <title>index</title>
      <meta  http-equiv="Content-Type" content="text/html;  charset=ISO-8859-1">
      </head>
      <body>
      SUCCESFUl!!
      <%
      String remoteURL;
      AIServerProcessesOrderNewSuppliesService service =  new
      AIServerProcessesOrderNewSuppliesService();
      AIServerProcessesOrderNewSupplies  document =
      service.getOrderNewSupplies();
      // Holder<BLOB> finalDoc =  new Holder<BLOB>();
      Holder<String> outVar = new  Holder<String>();
      InvokeResponse responseFor =  new
      InvokeResponse();
      XML xml = new XML();
      //document.invoke("passed  something", finalDoc,
      outVar);
      try
      {
      // get the image  from the database
      //BLOB blob = finalDoc.value;
      // remoteURL =  blob.getRemoteURL();
      document.invokeAsync(xml);
      System.out.println(responseFor.toString());
      }
      catch (Exception  e)
      {
      e.printStackTrace();
      throw e;
      }
      %>
      </body>
      </html>

       

      I don't see any error in JSP and  it doesn't throw any error but the
      server process is not getting invoked.  Please refer the attachment
      (MyLongLivedProcess.JPG)

       

      ISSUE 2:
      I  don't want to use workspace. And we also don't want to customize  the
      workspace. Actually, we need a single JSP that will be able to  do
      following stuff:
      1. Show all the tasks assigned to the currently  loggedin user.
      2. On click of the task, open the form associated with the  current
      selected task in browser/jsp.

       

      So, please tell me what APIs  should I use in my JSP for above mentioned
      functionalities. Please share a  dummy jsp that will do that.

       

      ISSUE 3:
      When a user logs in the  workspace, then he gets the actions associated
      with the particular tasks  below the form. E.g. approve, submit,
      complete, deny etc.
      But I want these  actions inside my form. Reason for that is that we are
      not using the Flex UI  of workspace. Infact we are creating a simple JSP
      that will render the  form.

       

       

      If you can provide some eclipse java project with required jars, a  JSP
      with above functionalities and a PDF form that solve issue number 3  then
      it will be great way to start.