AnsweredAssumed Answered

How to extract qnameType from JS?

Question asked by redomancer on Dec 16, 2009
Latest reply on Dec 16, 2009 by redomancer is written that WorkflowTaskItem supports property qnameType.
This means that I must be able to get task name with namespace (for example, qnameType must return {}adhocTask). The problem is that this variable is empty!

Here is my JS script located in Data Dictionary folder and executed on custom action ("id" aka node ref and "taskid" are passed in):

var id = args["id"];
var taskId = args["taskId"];
var task = workflow.getTaskById(taskId);
var taskType = task.qnameType;
var result = "<script>location.href = 'http://myserver/mypage?documentid=" + id + "&taskid=" + taskId + "&type=" + taskType + "';</script>";

Object "task" is not null as I can extract the name via getName() (method described here:

How to extract qnameType? I need to pass parameters to my page where back link will be created in form like:

How to get this qnameType parameter correctly?