Skip to Content

If you look at the current ways to initiate a Guided Procedure (GP) process , you will find that that they all require the instance id, which is a cryptic string (5254ED00A4A811DBA284000C2929AF6E).

How do you expect users (a BPX for example) to be able to remember this string?  Of course, if the user has the access to the GP run-time that this isn’t necessary – the user can start the instance using the User Interface.  What about, however, users who don’t have access to the runtime or those users / services that just have a web-service interface.  What about accessing it via its folder structure? – I worked in various projects that involved the use of resources in a Knowledge Management environment where one of the common ways to access a resource is via its path (of course, this is related to the Resource’s RID).

What about using a process’ path to get the process id?

The code below shows how to do this using Web Dynpro (Thanks to Claudiu Tatulea and Mihaela Blum for doing all the development work based on my minimal description). We have created a simple web-service with an “IN” parameter being the path variable and the “OUT” parameter being the process ID.

Here is the gallery structure in the GP Designtime environment.

Here is the process ID.

And here is the web-service viewed in the Web-Services Navigator.

Code

There are two methods in the web-service:

  • getProcessID  is the heart of the web-service and returns the process-id
  • getCategoryFromPath returns the category from the path parameter in the web-service

The creation of the web-service is easy for a Web Dynpro developer, so I haven’t included the other steps involving this procedure.

To report this post you need to login first.

2 Comments

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

  1. Andre Truong
    Actually there’s one more way to start a GP process. Not mentioned in the document on different ways to start a GP process is via a web page or an interactive PDF form.

    Interesting idea you had with this service. It could be useful if you don’t want to hardcode the processid in your application. Nice.

    (0) 
  2. Joseph BERTHE
    Hi,

    First thanks for your blog because it helps me very much.

    I would like to add one information about the Path of the process. Because in the blog it was very well explain.

    So, to get the path you have to:
    1- Click on your Process
    2- Open…
    3- In the Basic Data, check out the Folder field :
    Root\Folder1\Folder2
    4- Then to get your path do:
    /Folder1/Folder2/Process Name

    So this is the path you have to use.

    Regards

    (0) 

Leave a Reply