Hello,
I would like to add a script to my processdefinition task that will write a task name to a metadata field of an applied document when the task gets completed. I found out that you could use this: taskInstance.id to refer to task name. Anyway if I try this I get error it being null. This is my script:
<script>
bpm_package.children[0].properties[te:taskName]=taskinstance.id
bpm_package.children[0].save();
</script>
Any help would be appreciated.