GEL Script Parameters - how to set project id as a parameter
search cancel

GEL Script Parameters - how to set project id as a parameter

book

Article ID: 56440

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

I would like to write a GEL Script and include it into a process which will be started from a project at a certain point (manually by the Project Manager).

Within the GEL Script, I need to call a web service to receive the project details. Therefore I need to know the project ID. I can set it as a parameter, but I would like to get this value dynamically and not as a static id for all instances.

So, I need the projectID from the current project, on which I started the process. Is this possible?

Resolution

Following parameters are available to any custom action gel script that is associated with a process. All of the built-in parameters have a "gel_" prefix. All of these parameters are of data type - numeric.

  • Object Instance Id: This is always -1 if there is no object associated with a process. If there is an object associated with the process then this will return the appropriate object instance id. ${gel_objectInstanceId}
  • Process Id: The process identifier. ${gel_processId} All instances of this process will share this same identifier.
  • Process Instance Id: The instance identifier of the process ${gel_processInstanceId} - all instances will get a unique value for this parameter.