Skip to Content

The GP Processes you have developed need to be presented to the end user as a portal content. Let’s see how it can be done in a few simple steps.

First create an iView in Portal Content of type Java Web Dynpro and use the following Web Dynpro application provided by SAP: AInstantiation under namespace sap.com/caf~eu~gp~ui~inst.
In the Application Parameter property of the iView specify the process id of the GP process in the parameter process.template.id e.g. process.template.id=A7A896EFADF811DBC0640016353AC84F&process.autostart=t
You can also set the process.autostart=t if you want to start the process without asking the parameters and role assignment from the initiator. You can get the GP process id from the Instantiation tab of the GP process design time.

Now you can attach the iView to a workset or page and attach that to a role to be displayed to the user. When the user clicks on the link of the iView the process will start. For the processor of the subsequent actions the link may automatically appear in their UWL if you have configured the UWL according to the following document/weblog: How to Configure UWL with the GP Engine or Guided Procedures:  Runtime in Universal Worklist Alternatively work item notifications can also be sent to the processors’ as mails. Please refer the following weblog for this : How to get Work items @ your Outlook Inbox

To report this post you need to login first.

39 Comments

You must be Logged on to comment or reply to a post.

  1. Former Member
    Hi,

    This Blog is very useful, i have implemented it but i can’t find Process id under Ainstantiation
    while creating Portal iView.Can u give soultion ?

    It’s urgent..

    Thanks
    roshini

    (0) 
    1. Dipankar Saha Post author
      The process template id of the GP process can be found under the Instantiation tab in GP process design time. Copy and paste the id in the iview’s parameter field as described in the blog.

      Thanks,
      Dipankar

      (0) 
      1. Hi Dipankar,

        I try to give this GP process iView to anonymous user. It did not work. It gives me an error message:

        “com.sap.tc.webdynpro.clientserver.session.SessionExpiredLongJumpException: Application session has expired…..”

        I’ve set the page and iView to anonymous.

        It only work for authenticated users. Did I miss out anything?

        Rgds,
        Hapizorr

        (0) 
        1. Dipankar Saha Post author
          Hi,
          You can’t assign a GP process to an anonymous user as each of the process steps should be executed and assigned to a specific user/group/role.
          Thanks,
          Dipankar
          (0) 
          1. Ashish Shah
            Hi Dipankar,

            I have created an iview to present my prosess to end user and added that in a role, when the end user clicks on that role he gets this error message.

            “Page not found or not available”.

            Where as when i log in , i can see that iview with out any error message. ( i am Gp developer .. i have all GP roles ).

            Do i need to assign any other role to the end user?

            Regards,
            Ashish Shah

            (0) 
  2. Former Member
    I have the autostart set to true and click on the preview button and it still goes to the initiate process functions.  I had to assign roles and go through the Edit Basic Data screen. 

    Am I doing something wrong?  Is this only bypassed when running in within the portal?

    (0) 
    1. Dipankar Saha Post author
      Hi,
      You need to set the basic roles (admin, overseer,etc) as well as the actions’ roles in the GP process itself by directly assigning a user/group/role or by dynamic assignment. If those roles are not set you’ll get the assign roles screen even if you check process.autostart=true.
      -Dipankar
      (0) 
  3. Former Member
    Hi Dipankar,
    i followed your blog and created a Iview for my GP process. Also set the autoStart property = t. I have defined custom roles in my process which are assigned to different users. Role assignment is done at designtime while defining process. Now  first user initiates the process through the Iview and completes action1. Action2 is assigned to second user. The problem is second user is not able to execute the action assigned to him. The action2 remains disabled. Can you help me in solving this?

    Regards,
    Rashmi

    (0) 
    1. Dipankar Saha Post author
      Hi,
      Check if the correct role is assigned to action 2. Also check if the callable object in action 2 is giving any error. You can check the process parameters for debugging from NWA -> Monitoring -> GP Monitoring.

      Thanks,
      Dipankar

      (0) 
  4. Former Member
    Hi Dipankar,

    your blog has helped me to understand about the webdynpro iview. Can you please suggest me if i am having a VC application? Since i have created a iviews in VC I am unable to follow your steps.I am unable to find the right property to give the GP process id in VC iview properties. Can you please suggest regarding that?

    Regards,
    Nutan

    (0) 
    1. Dipankar Saha Post author
      Hi,
      This blog explains how a GP process can be instantiated using the standard AInstationtion iView delivered by SAP. This is irrespective of whether your GP process has any Web Dynpro iView, VC iView or any other UI or service call. Follow the steps explained in this blog and you can open any GP process using a portal iView link. Please note that while opening a GP process we are not directly opening the UI present in the GP process as process steps, instead a standard iView which instantiates the GP process and opens up the first process step – whatever it is.

      Thanks,
      Dipankar

      (0) 
      1. Former Member
        Hi Dipankar,
        Thanks for your quick response.But I am very new in portal so unable to understand
        “Please note that while opening a GP process we are not directly opening the UI present in the GP process as process steps, instead a standard iView which instantiates the GP process and opens up the first process step”
        Please give the steps for this.

        Regards
        Nutan

        (0) 
        1. Dipankar Saha Post author
          When you instantiates and open a GP process from the GP runtime workcenter the process iViews are not opened directly instead in a standard GP container provided by SAP (the left panes, toolbar, etc are part of that container). So in the same way my blog describes how to open the GP process in that standard container but clicking an iView link instead of opening it from the GP workcenter. This iView link you can place it in any page, workset or role in EP. When you open the GP process like this it’ll automatically open up the corresponding process steps and its UI.

          Thanks,
          Dipankar

          (0) 
          1. Former Member
            Hi Dipankar,
            Thanks for the help.Sorry for the silliest question.Previously after seeing the Webdynpro I got confused but later on when i started then i got the process mentioned in the blog.

            Regards,
            Nutan

            (0) 
  5. Former Member
    Hi Dipankar,
          Thats a nice blog from you, I have a small question to be asked.
          I am creating a process wherein, I have web dynpro callable objects defined.

    Want I require is, I need the first action to be initiated from a normal browser, rather than from a portal screen. Is that possible

    Regards,
    Mathan MP

    (0) 
    1. Dipankar Saha Post author
      Hi,
      Open the GP process in design time. Open the Instantiation tab. Check the Automatically Start Process checkbox and click on generate instantiation URL. Add the server host name and port before the URL generated. You can start the GP process using this URL from a normal browser.

      Thanks,
      Dipankar

      (0) 
  6. Former Member
    Can you help me with this step:

    “First create an iView in Portal Content of type Java Web Dynpro and use the following Web Dynpro application provided by SAP: AInstantiation under namespace sap.com/caf~eu~gp~ui~inst.”

    There’s no Java Web Dynpro option, only ABAP. What am I doing wrong?

    Thanks and regards,
    Aydin

    (0) 
    1. Dipankar Saha Post author
      Hi,
      Are you using NW CE 7.1? Then you can find the Web Dynpro application page I mentioned in the blog under the node Web Dynpro Application node in pcd. You just copy that page and paste it under your content folder in pcd. In CE 7.1 you can’t create a Web Dynpro iview but copy the deployed ones in your folder.

      Thanks,
      Dipankar

      (0) 
      1. Former Member
        Hi Dipankar,

        thanks for your answer.
        Yes I’m using NW CE 7.1 and I’m new to the NW Portal. I copied the AInstatiation app under caf~eu~gp~ui~inst did “Paste as PCD Object” into a new folder. Then a form opens. For Page Id I filled in my Process Id (correct?). Then when I choose Open->Page on the new created Object, I get this message:
        “This page originates from a single application view in an external repository, therefore you cannot access or modify its content or layout.
        You can edit page and application properties in the Property Editor.”
        What do I have to do?

        Thanks for your help and regards,
        Aydin

        (0) 
        1. Dipankar Saha Post author
          Hi,
          You need to add process.template.id=A7A896EFADF811DBC0640016353AC84F&process.autostart=t in the Application Parameters property of the Web Dynpro page.

          Thanks,
          Dipankar

          (0) 
          1. Former Member
            Hi Dipankar,

            I added that and when I now click on “Preview” the process is initiated, but when I click on “Open -> Page”, the same message as above comes.
            Is this a normal behaviour?

            Thanks and regards,
            Aydin

            (0) 
            1. Dipankar Saha Post author
              Hi,
              Save the page after adding the process template id in the app property. Then if you want to test you can preview it from pcd. But if you want to run it as an end user you need to add the page under a workset or role, so that the end user will get the page link in the portal under the specified role/workset. Clicking on the page link which will appear in the left navigation pane will instantiate the process.

              Thanks,
              Dipankar

              (0) 
  7. Former Member
    Hi Dipankar,

    very nice blog you have.

    I have a question about starting the WebDynpro iView.

    I wanna initiate & start a process by WebDynpro iView as you described. In testing mode the process works fine. My first action is a VC form, which appears correctly if I start the process using the runtime with manual parameter input.

    When I start the preview of the WebDynpro iView I only see the information “Process has been initiated”, but without the form from the first action in my process which is assignet to the user. all parameters submited fine and the process is instantiated allways correctly. Only problem is the form, which doensn’t appear in WebDynpro iView.
    I suppose my problem is in missing redirection to the runtime to display the process. Does I need a second iView for that?

    Thanks a lot for a hint.

    Michael

    (0) 
    1. Dipankar Saha Post author
      If you have used the AInstantiation Web Dynpro application iView and set the process.autostart=t along with the process template id correctly in the application parameter of the iView, the only reason I can think of your process not showing up is the processor of the first action of the process is not the same user with which your are testing the iView preview. Please login with the same user (or the user having the role which is configured as the processor of the first action of the process) and click on the AInstantiation iView link setting it under a workset/role. The process must start and show up by this. I’ve used it several times without any issue.

      Thanks,
      Dipankar

      (0) 
      1. Former Member
        Hi Dipankar,

        thank you very much for your answer. I checked my roles for the action, but it’s all set to “Initiator”. The user who starts the process from dynpro has J2EE_admin and GP Superadmin roles. I think it should working too, but it doesn’t for some reason. It occurs even with the SAP delivered example processes. Maybe I have a problem in my configuration with the portal. Therfore I have been opend a new thread under https://forums.sdn.sap.com/thread.jspa?threadID=818479&tstart=0 – not to flooding your blog. I posted my configuration there.

        Thanks a lot.
        Michael

        (0) 
  8. Former Member
    hi sir,
    This blog was very helpful i did all the settings as u described in the blog but when i click on that iView it is asking to add the roles what could be the problems i already give process.autostart=t…..pls help me it is very urgent
    Warm regards
    Shanto Aloor
    (0) 
    1. Dipankar Saha Post author
      Hi,
      Please define the roles for the processor of the actions of the process in the Default Roles tab of the process design time.

      Thanks,
      Dipankar

      (0) 
  9. Former Member
    Hi Dipankar,
      I have created a workflow successfully.It is also coming to the approver’s UWL but I am unable open it from the UWL.It is giving the error “Could not not retrive process instance-contact your system administrator”.But I am able to open it from the GP->task required my action.
    Please help

    Indranil

    (0) 
  10. Former Member
    Hi Dipankar..

    I am following the steps as per your blog..
    I am working on CE 7.1..I do not get the iview of type JavaWebdynpro while i create a iview in the Portal Content…

    Also I have included only VC iviews as callable objects in process..

    Please can you tell me if this is the right approach..and also what type of iview should I create in the Portal content.

    Thanks,
    Vaishali.

    (0) 
      1. Former Member
        Hi Dipankar,

        Thanks a lot for the Reply..
        I have added the webdynpro iview to the my folder in the portal content. I have added the appropriate parameters in the webdynpro page..The process gets instantiated while I do a preview of it..
        I assign the webdynpro iview to the workset\Role…And assigned the role to another user called customer…
        When I login into portal as a customer…I get a “page not found error” while I click on the link..
        Please can you let me know where I could be possibly going wrong!!

        Thanks,
        Vaishali

        (0) 
        1. Dipankar Saha Post author
          Please check whether you have added the customer role as the processor of the first action of your GP process.
          -Dipankar
          (0) 
  11. Former Member
    Sir,
    In my project i want to initiate a  process from a webdynpro java application , to multiple users.
    The scenario is as follows
    1.user will enter a form and click submit button(This application is a seperate wdj application and can’t be included in the work flow).
    2.On clicking that button a process should initiate and go to the UWL of multiple users.
    3.And if any of that persons open that application from his UWL , The other users can’t do on the same applicatio.
    pls give me some solutions for this
    With Regards
    Shanto Aloor
    (0) 
    1. Dipankar Saha Post author
      Hi,
      Follow the blog to instantiate a GP process from Web Dynpro. Do not use the navigate api, you don’t want the user to view the process at that time. Use the processor of the first action as a role/group instead of a specific user. The task will appear in the UWL of all users in that role. If any user open that task and process it, it’ll be gone from the UWL of other users.

      Thanks,
      Dipankar

      (0) 
  12. Former Member
    Hi,

    Thanks for such a helpfull blog.
    However, we want to hide the attachments link that appears in this application. I am guessing this means customizing the application.
    Please guide me.
    Regards,
    Preksha.

    (0) 
  13. Ashish Shah
    Hi Dipankar,

    I have created an iview to present my prosess to end user and added that in a role, when the end user clicks on that role he gets this error message.

    “Page not found or not available”.

    Where as when i log in , i can see that iview with out any error message. ( i am Gp developer .. i have all GP roles ).

    Do i need to assign any other role to the end user?

    Regards,
    Ashish Shah

    (0) 
    1. Dipankar Saha Post author
      Hi,
      This seems to be a PCD location issue only. Copy the PCD location of the iView from the Content Directory and replace the PCD: wih ROLES:// and use that for the navigation.

      Thanks,
      Dipankar

      (0) 

Leave a Reply