AnsweredAssumed Answered

Problem in start workflow from script written in Process Definition

Question asked by yogeshpj on Jun 26, 2014
Hi All,

I am getting attached error while starting workflow from the script written in processdefinition.


<blockcode>
                       var doc_pack = bpm_package.children[0];
                        var wfdef = workflow.getDefinitionByName("activiti$activitiReview");
         var wfparams = new Object();
         wfparams["bpm:workflowDescription"] = "Start workflow - ";
         wfparams["bpm:assignee"] = people.getPerson(initiator.properties.userName);
      
         var wfpackage = workflow.createPackage();
         wfpackage.addNode(doc_pack);
                        wfdef.startWorkflow(wfpackage,wfparams);

</blockcode>


This problem is happening only in 4.2 version.
In 4.1 it is working fine.
Can anyone help me?

Attachments

Outcomes