Hi,
In a Java delegate class, I would like to know if available variables (execution.getVariables()) came from the form of the previous flow element (i.e: start event or user task).
I’m able to retrieve the previous flow element with the following code :
FlowNode currentElem = (FlowNode) execution.getCurrentFlowElement();
FlowElement previousElem = ((SequenceFlow) currentElem.getIncomingFlows().get(0)).getSourceFlowElement();
At first glance, having the previous flow element “of the form” should not be enough to get the instance definition of the form (or something like that, sorry for the wrong terminology)… Indeed, I can get the FORM_KEY (previousElem.getFormKey()), but this is the one enterred by the end user in the UI modeler, not the internal reference of the form used, right?
Finally, in this use case, how can I get the form definition / instance (in order to know the input names which are used as variable name)?
Thanks