As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var task = workflow.getTaskById(args['taskId']); // taskId is the PooledTask's id, jbpm$###. logger.log(task.getId()); // shows the id properly logger.log("TASK PROP: " + task.properties['cm:owner']); // this property doesn't seem to exist. logger.log("TASK PROP: " + task.properties['{http://www.alfresco.org/model/content/1.0}owner']); // this property doesn't seem to exist. var props = task.getProperties() // This function I got from the wiki doesn't return anything, it returned null.
Map<QName, Serializable> params = new HashMap<QName, Serializable>(); params.put(ContentModel.PROP_OWNER, owner); WorkflowTask updatedTask = workflowService.updateTask(taskId, params, null, null);