AnsweredAssumed Answered

using task properties in a workflow script

Question asked by heck on Jan 24, 2012
Latest reply on Feb 21, 2012 by mitpatoliya
Sorry the short post, but i can really boil down the question to:

How can i put information into a taskInstance (from a webscript) that i can use in the next workflow ScriptTask.


task = worklfow.getTask(id); = "blabla";

activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
               <activiti:field name="script">
                     <![CDATA[<import resource="classpath:alfresco/extension/templates/webscripts/UBXLib/UBXUtils.js">]]>
                     logger.error("Workflow: reviewTask, complete");
content = task.getVariableLocal('wf_reviewComment');
                        addComment(node, title, content);

I really cant list all the ways i tried, I could not get it working.

Is this supposed to work anyhow or do i get the concept wrong?

Using community edition 4.0b

Thanks a lot for any help

Best Regards
Matthias Heckmann