Symptom
Sometimes the approval workflow fails at the ScriptTask where accessing diagram images. The troubled script as below;
require('files').getContent(modelImage).buffer
Resolution
The diagram names have special characters which cannot be handled in Javascripts as same as others, like en-dash(–) or apostrophe(’).
You need to add some error handling in the script or fix the diagram name to hyphen(-) and quote(').
Keywords
signavio,process,governance,process_governance,workflow,approval,case,script,task,scripttask,pg,file,name,apostrophe,special,characters,character,single,quote,quotes,hyphen , KBA , BPI-SIG-PG-JS , JavaScript for SAP Signavio Process Governance , Problem
Product
SAP Signavio Process Governance all versions