Hello,
I have a process where i create some user with name, email as information. Those information are fill in a form then a want to get the current email in a connector link out of the form in order to make some sql query.
Thx
Hello,
I have a process where i create some user with name, email as information. Those information are fill in a form then a want to get the current email in a connector link out of the form in order to make some sql query.
Thx
If you simply want to get the current process instance id in a [Groovy] Script connector, there is a dropdown menu where you can access useful variables. "processInstanceId" is one of them.
Even if you're not specifically using the Script Connector, most of the other connectors will let you use the Groovy script editor and you can access the process variables through there. For example, if you wanted to use the the MySQL database query connector, you can use the script editor to create your query and you can reference your process' processInstanceId within the script.
Hi,
From within a custom connector implementation you can get the process id through the Bonita engine ExecutionContext: getExecutionContext().getProcessDefinitionId();
If by process id you were referring to process instance id just call getExecutionContext().getProcessInstanceId();
Best
Thank for all your answers,
I realize that what i want to know was the persistenceId of the current process;
Is there a similar method to get that ?
Best