SAP Knowledge Base Article - Public

3242737 - Counting the number of rejected approvals in Workflow Accelerator using JavaScript

Symptom

What is the JavaScript logic to capture the number of times a task got rejected? Ideally we are looking for a counter to capture the number of times a task got rejected.



Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Resolution

Create a variable e.g. times_rejected of type number. Reuse this variable in the JavaScript task.

Adjust your workflow as shown:


Keywords

KBA , BPI-SIG-CA-AWF , Approval Workflow for SAP Signavio , How To

Product

SAP Signavio Process Manager all versions ; Signavio Process Manager all versions

Attachments

counter_java.jpg