R – Sharepoint Designer – Creating a simple Workflow, check status of another Workflow

sharepointsharepoint-designerworkflow

I'm trying to create a simple workflow using the Sharepoint Designer. We already have one user-defined workflow, called Internal Approval. This creates a column with the same name.
Basically, my workflow should perform:
Conditions:

if Internal Approval equals Approved 
   and Status equals Draft //custom field I want to set, this works

The problem, after a quick debug, is that the Internal Approval does not equal to Approved nor contains it, Internal Approval equals 16.
The question: what is this number, and can I rely on it always being 16 for an approved workflow?
Or better, how can I check a if another workflow was approved?

Best Answer

May be this could help you Workflow Status

Reference Article from MSDN, just type case the above Enum to Integer you will get the values.

Also to filter based on the Workflow Status in the View. Refer