ScriptTaskListener implements TaskListener
–>public void notify(DelegateTask delegateTask)
—->DelegateTask extends VariableScope
public interface VariableScope –> Object getVariable(String variableName)
Therefore, delegateTask.getVariable("initiator") will return the Task Initiator.
I expect it is an ActivitiScriptNode, so you may have to do a getNodeRef call on the returned object.
HTH, let me know if I am being a little too terse ;-).
regards,
Mark