Camunda experssion access to extensionElements

73 Views Asked by At

I am new in camunda and I want to write a expression and want access to extensionElements like processInstaceId and formKey. how can I do this? please guide me.

1

There are 1 best solutions below

0
On

Not sure what is formKey, but

in groovy script process instance - execution

in java you can take it like this:

import org.camunda.bpm.engine.impl.context.Context
import org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity;

ExecutionEntity execution=Context.getBpmnExecutionContext().getProcessInstance();