cancel
Showing results for 
Search instead for 
Did you mean: 

Guided procedure Runtime parameter

Former Member
0 Kudos

Hi all,

I'm chewing a hard candy with a guided procedure requirement, I need to read from a WS type CO some meta data from the current instance of a GP.

What am I trying to get are the performer name and creation date in the second action of a block.

I've created a custom role where customer can select the preferable user to him (Runtime actor).

All interfaces I found on the API doc needed the processId parameter to work, I think that this is not a problem if a could find the way to pass from the Gp this parameter.

I'm trying to use IGPRuntimeManager.getProcessInstance method, but processId is needed.

I'll appreciate any help

Thanks in advance.

Ramien.-

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ramien,

I suppose you have acces to the executionContext of GP...

You can use the following method to get the process Id:

String processId = executionContext.getProcessId();

Regards

Sundeep

Former Member
0 Kudos

Hey,

It works...I placed that sentence on my code and worked fine. Now I could retreive the processId of a GP running instance from any CO.

Thanks a lot

Ra.-

Answers (0)