AnsweredAssumed Answered

Correct workflow name

Question asked by irene08 on Oct 2, 2012
Latest reply on Oct 10, 2012 by afaust
Hi! Good Day!

Do you know the right workflow name of 'Parallel Review Workflow' and 'Parallel Group Review Workflow' or do you know how to call this? I will execute a javascript and I'm having a hard time in knowing the right workflow name to call. Thank you so much for your help.

/*IRENE-Tagging file from reviewed to approval*/
     <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
                  <activiti:field name="script">
                     <activiti:string>
          if (workflowname = activiti$activitiparallelreview || workflowname = activiti$activitiparallelgroupreview)
                if (wf_requiredApprovePercent = 100 && wf_actualPercent = 100)
            {
             logger.log(“Irene…Reading the if statement”);
             cm:generalclassifiable=”Approval”;
             logger.log(“enabling the approval”);
            }
             if (wf_requiredApprovePercent == wf_actualPercent)
            {
             logger.log(“Irene…Reading the 2nd if statement”);
             cm:generalclassifiable=”Approval”;
                                 logger.log(“enabling the approval.. 2nd if statement”);
                                }
          </activiti:string>
                  </activiti:field>
    </activiti:taskListener>
/*IRENE*/

Thank you again.
Irene :)

Outcomes