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 Resources 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.
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 havent included the other steps involving this procedure.