Fixing condition in workflow service

Change-Id: I50d335ef071852a42a7e0fc43c277692cf5e9337
Merge "Fixing condition in workflow service"