Recently while designing a composite application I came across a requirement to instantiate a composite process from a stand-alone application. In my case it was needed to instantiate a Guided Procedure process from a stand-alone Web Dynpro Java application. But while starting the process also some input parameters need to be passed from the calling application. This can be achieved easily by using the GP API. Also the GP process instantiated needs to be opened to the user in the Enterprise Portal as well as soon as it is started, which can be achieved by the portal navigation API. To start with first we need to create the GP runtime Web Dynpro application page in portal content directory. In Netweaver CE 7.1 navigate to the Web Dynpro Applications node in PCD and copy the application *sap.com/caf~eu~gp~ui~rt *in the required PCD location. In Netweaver 7.0 create a Web Dynpro java iview pointing to the application *Runtime *under the namespace *sap.com/caf~eu~gp~ui~rt. *We’ll navigate to this iview or page to open the GP runtime process view.
To instantiate the GP process the process template id is required which can be obtained from the GP design time. Open the GP process in the design time and copy the process ID present under the Instantiation tab.