AnsweredAssumed Answered

Passing Map to tasklistener expression method in workflow

Question asked by monika on Jun 29, 2012
Latest reply on Jul 2, 2012 by frederikheremans1
I am using a method in my expression of activiti:tasklistener which is taking Map<String,Object> as a parameter.
Instead of passing this map inside the initail variable map, i want to create this map inside the workflow itself and want a way to edit and update its variables also inside workflow.
Is there any way to do this through activiti?

The code snippet is as below:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns=""
   xmlns:xsi="" xmlns:activiti=""
   xmlns:bpmndi="" xmlns:omgdc=""
   xmlns:omgdi="" typeLanguage=""
   expressionLanguage="" targetNamespace="">
   <collaboration id="Collaboration">
      <participant id="pool1" name="Pool" processRef="process_pool1"></participant>
   <process id="TestProcess" name="Test Process">
      <startEvent id="startevent" name="Start"></startEvent>
      <userTask id="ApprovalTaskForManager" name="Create approval task"
            <activiti:taskListener event="create"
               expression="${approvalTaskListener.processApproval("approvalActions")}" />


Here my ("approvalActions") is a map which i dont want to pass in the initial variable map rather want to create in workflow itself. is there any way to do that?