Get inputParameter in TaskListener

Hi,
I have a process P1 with a userTask T1 linked to an external form F1.
The User send some variables V1,V2…(a JSON with Post http://…/task/taskId/complete).

Also,I put an InputParameter “status”:

    <bpmn:userTask id="Activity_t1" name="name1" camunda:candidateGroups="g1">
          <bpmn:extensionElements>
            <camunda:taskListener delegateExpression="${backTaskListener}" event="complete" />
            <camunda:inputOutput>
              <camunda:inputParameter name="status">VAL_OK</camunda:inputParameter>
            </camunda:inputOutput>
          </bpmn:extensionElements>
          <bpmn:incoming>Flow_1bbov1c</bpmn:incoming>
          <bpmn:outgoing>Flow_020kxlv</bpmn:outgoing>
        </bpmn:userTask>

In My backTaskListener

public void notify(DelegateTask delegateTask) {
 TaskService taskService = delegateTask.getProcessEngineServices().getTaskService();
 
 String v1= (String) taskService.getVariables(delegateTask.getId()).get("v1");
 logger.debug("v1:"+v1);// works fine, print v1:value of v1

works fine

But

    String status= (String) taskService.getVariables(delegateTask.getId()).get("status");
     logger.debug("status:"+status);// print  status:null

doesn’t work( print null ) .
Any idea?

Hi @camunda_beginner,

Have a look at below post