Oleg_Kiselyov:
If I start the process through Camunda TaskList, I enter the contract number and click start then in the listener with the command
delegateExecution.getVariable (“contract”) getting null.
How do I get the value of a variable submitted through a TaskList form?
You need to start the process instance asynchronously. Enabling asynchronous continuations using property camunda:asyncBefore="true"
will provide save point and it will persist the form variables. So that you can access those form variables from Listeners/Delegates.
<bpmn:startEvent id="Event_1j8phgu" name="E-Commerce Login" camunda:asyncBefore="true">
<bpmn:outgoing>Flow_0zjpes6</bpmn:outgoing>
</bpmn:startEvent>
Refer the below post:
@oronzo_lezzi You can’t access form variables of start event in the execution listener of start event itself.
Because form variables are not persisted at this point of time.
Maybe you can try marking the start event as async: Before = true . If it not works, change the listener to the event type= end in the start event and also keep asynBefore=true