AnsweredAssumed Answered

workflow error

Question asked by adhi27 on Aug 4, 2015
Latest reply on Aug 26, 2015 by voula_11
i have problem in my workflow

this is the error
org.activiti.engine.ActivitiException: Exception while invoking TaskListener: Exception while invoking TaskListener: 07040022 Failed to execute supplied script: null


and this is the Bpmn


  <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[// check Assignee
var assignee = task.getVariable('wfCompnetOC_assignee');
logger.log("Your Assignee is "+assignee);

// set assignee
execution.setVariable('assigneeGlobal', assignee);

var assigneeGlobal = execution.getVariable('assigneeGlobal');

// Set Description
execution.setVariable('bpm_workflowDescription', 'Opportunity Create');
//set group psse Manager
execution.setVariable('psseManager','WF_SO_USR_PSSE_MGR');
var groupGlobal = execution.getVariable('psseManager');
logger.log('Group Global '+groupGlobal);
// call workflow
logger.log("Script Triggered");

var nodeRef = companyhome.childByNamePath("Registering Opportunity");
var nodeRefNew = nodeRef.nodeRef;
logger.log("Node Old "+nodeRef);
logger.log("NodeRef "+nodeRefNew);
var wf = actions.create("start-workflow");
wf.parameters.workflowName = "activiti$wfCompnetOA";
wf.parameters["wfCompnetOA:opportunityId"] = execution.getVariable('wfCompnetOC_opportunityId');
wf.parameters["bpm:workflowDescription"] = "Workflow Opportunity Create";
wf.parameters["wfCompnetOA:deskripsiOpportunityId"] = execution.getVariable('wfCompnetOC_deskripsiOpportunityId');
wf.parameters["wfCompnetOA:groupAssignee"] = groupGlobal;
wf.parameters["wfCompnetOA:pathCogsFolder"] = execution.getVariable('cogsFolder');
wf.parameters["wfCompnetOA:pathBoqFolder"] = execution.getVariable('boqFolder');
wf.parameters["wfCompnetOA:pathSowFolder"] = execution.getVariable('sowFolder');
wf.parameters["wfCompnetOA:pathProposalFolder"] = execution.getVariable('proposalFolder');
wf.parameters["wfCompnetOA:assignee"] = assigneeGlobal;
wf.execute(nodeRefNew);
logger.log("Executed Group Already");]]></activiti:string>
          </activiti:field>


can help me please

Outcomes