I tried many a times but failed to do so, then i wrote to a person from Activiti group regading the issue. He told its a bug in this version of Activiti i.e Activiti 5.12
and they are going to fix this "bug" in the next release. To give the exact details they have already resolved the JIRA
task that i had raised.
Lets wait for next release to get this issue resolved.